Skip to content

Commit

Permalink
Update GeoTile.py gt not recongize error
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtekson authored Dec 13, 2023
1 parent 13dedf7 commit 3c03dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geotile/GeoTile.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def save_tiles(
meta.update({"dtype": dtype or self.get_dtype(self.tile_data)})

# first check nodata is not None and nodata is instance of numeric value; issue #64
if(gt.meta['nodata'] is not None and isinstance(gt.meta['nodata'], (int, float))):
if(meta['nodata'] is not None and isinstance(meta['nodata'], (int, float))):
# solve nodata related issue #56
if ((np.isnan(meta['nodata'])) and (meta['dtype'] in _int_dtypes)):
meta.update({'nodata': None})
Expand Down

0 comments on commit 3c03dec

Please sign in to comment.