Skip to content

Commit

Permalink
nodata - default for byte changed (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
cayetanobv authored Nov 21, 2024
1 parent 2d24a54 commit 8707349
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ cython_debug/

# Custom
carto_credentials.json
raster_loader/tests/fixtures/*.tif.aux.xml

# written by setuptools_scm
*/_version.py
Expand Down
2 changes: 1 addition & 1 deletion raster_loader/io/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"int16": -32768,
"int32": -2147483648,
"int64": -9223372036854775808,
"uint8": 255,
"uint8": 0,
"uint16": 65535,
"uint32": 4294967295,
"uint64": 18446744073709551615,
Expand Down
8 changes: 4 additions & 4 deletions raster_loader/tests/bigquery/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def test_rasterio_to_table_overwrite(*args, **kwargs):
return_value={
"bounds": [0, 0, 0, 0],
"block_resolution": 5,
"nodata": 255,
"nodata": 0,
"block_width": 256,
"block_height": 256,
"bands": [
Expand All @@ -482,7 +482,7 @@ def test_rasterio_to_table_overwrite(*args, **kwargs):
"version": "0.0.3",
},
'colorinterp': 'red',
'nodata': '255',
'nodata': '0',
'colortable': None,
}
],
Expand Down Expand Up @@ -628,7 +628,7 @@ def test_rasterio_to_table_invalid_raster(*args, **kwargs):
return_value={
"bounds": [0, 0, 0, 0],
"block_resolution": 5,
"nodata": 255,
"nodata": 0,
"block_width": 256,
"block_height": 256,
"bands": [
Expand All @@ -649,7 +649,7 @@ def test_rasterio_to_table_invalid_raster(*args, **kwargs):
"version": "0.0.3",
},
'colorinterp': 'red',
'nodata': '255',
'nodata': '0',
'colortable': None,
}
],
Expand Down
8 changes: 4 additions & 4 deletions raster_loader/tests/snowflake/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def test_rasterio_to_table_overwrite(*args, **kwargs):
return_value={
"bounds": [0, 0, 0, 0],
"block_resolution": 5,
"nodata": 255,
"nodata": 0,
"block_width": 256,
"block_height": 256,
"bands": [
Expand All @@ -459,7 +459,7 @@ def test_rasterio_to_table_overwrite(*args, **kwargs):
"top_values": [1, 2, 3],
"version": "0.0.3",
},
"nodata": "255",
"nodata": "0",
"colorinterp": 'red',
"colortable": None,
}
Expand Down Expand Up @@ -606,7 +606,7 @@ def test_rasterio_to_table_invalid_raster(*args, **kwargs):
return_value={
"bounds": [0, 0, 0, 0],
"block_resolution": 5,
"nodata": 255,
"nodata": 0,
"block_width": 256,
"block_height": 256,
"bands": [
Expand All @@ -626,7 +626,7 @@ def test_rasterio_to_table_invalid_raster(*args, **kwargs):
"top_values": [1, 2, 3],
"version": "0.0.3",
},
"nodata": "255",
"nodata": "0",
"colorinterp": 'red',
"colortable": None,
}
Expand Down

0 comments on commit 8707349

Please sign in to comment.