Skip to content

test map projection option in array_to_raster

Created by: thareUSGS

https://github.com/USGS-Astrogeology/plio/blob/a55f6d73b238887d0df4e5b6fc829fd96a28f4be/plio/io/tests/test_io_gdal.py#L187 It would be good to add a test for testing map projections during file creation in Plio.

In Pyhat we are running into issues writing map projections from CRISM files. In QGIS, the Python try, except isn't enough to be able to continue writing the files without a projection. Thus the file fails creation. For more see: https://github.com/USGS-Astrogeology/pyhat_qgis/issues/6

@AustinSanders stated perhaps we need to enable Python gdal bindings to raise exceptions by setting gdal.UseExceptions(). Does this need to be defined in Plio also?