Skip to content

Commit

Permalink
fix: specify and check bands TDE-533 (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
amfage authored Oct 31, 2022
1 parent 20f5f34 commit d4e512f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/files/file_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ def check_color_interpretation(self, gdalinfo: Dict[str, Any]) -> None:
def validate(self, gdalinfo_result: Dict[Any, Any]) -> None:
if self.is_valid():
self.check_no_data(gdalinfo_result)
# self.check_band_count(gdalinfo_result)
# self.check_color_interpretation(gdalinfo_result)
self.check_band_count(gdalinfo_result)
self.check_color_interpretation(gdalinfo_result)
gdalsrsinfo_tif_command = ["gdalsrsinfo", "-o", "wkt"]
try:
gdalsrsinfo_tif_result = run_gdal(gdalsrsinfo_tif_command, self.path)
Expand Down
6 changes: 6 additions & 0 deletions scripts/gdal/gdal_preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
"-q",
"-a_srs",
"EPSG:2193",
"-b",
"1",
"-b",
"2",
"-b",
"3",
"-of",
"COG",
"-co",
Expand Down

0 comments on commit d4e512f

Please sign in to comment.