gicait / geoserver-rest

Python library for management of geospatial data in GeoServer.
https://geoserver-rest.readthedocs.io
MIT License
197 stars 79 forks source link

Allow for ASCII raster files when using create_coveragestyle() #65

Closed loganbrunner closed 3 years ago

loganbrunner commented 3 years ago

When trying to submit an ASCII raster file to create_coveragestyle, the ASCII file (.asc) is not a valid extension in the raster_value function in Calculation_gdal.py.

Running the commands as in gdal to get the necessary raster parameters (min value, max value, and file name) works fine, so I think this should be possible to allow this file type as well (and could be added to the valid_extension array.

If not, is there any other workaround to this other than generating a .tif file?

loganbrunner commented 3 years ago

Looking into this further, GeoServer might not actually support the ASCII files. So this issue could be irrelevant.

https://docs.geoserver.org/latest/en/user/data/raster/index.html