Return isotile grid as raster from /isochrone
#4581
Replies: 3 comments 7 replies
-
I love it! IMO it's even more meaningful than contours, which can even be generated in QGIS/other software from this grid (as you noted earlier). No idea about our own GeoTIFF implementation either, I could imagine it's quite a bit of work. I'm a bit reserved about adding GDAL as runtime dependency, although it's surely the most stable (and available) geo library out there. It's just quite huge and monolithic for a single driver.. If it's a serious concern, we could also guard this with a |
Beta Was this translation helpful? Give feedback.
-
@dnesbitt61 always used to mention this as an idea iirc prime server doesn't stop you from returning whatever content type you like. also gdals geotiff driver supports compression natively in its container. better to just use that. I don't think it makes sense to compress it again for the http transport as it would make little added difference |
Beta Was this translation helpful? Give feedback.
-
also tiff in general supports adding metadata tags so we can send some info about units resolution there if that could help |
Beta Was this translation helpful? Give feedback.
-
I recently thought it could be a good addition to offer the possibility to return the isotile grid in some way or another, instead of the contours that are formed from it.
This is an example output of a quick and dirty implementation that uses GDAL to write a GeoTIFF:
There's no particular reason I chose GeoTIFF specifically except for
And the only reason I chose GDAL was just pure lazyness 😄 But if this feature is something that people desire, I'd be willing to spend some time to polish up what I have. The output format doesn't need to be a standardized format of course, I could also imagine returning e.g. a protobuf message that contains the pixel array and some information about its origin and pixel size. If adding GDAL as a dependency is an issue, maybe it's not so difficult to write a simple GeoTIFF serializer (haven't looked into this).
Looking forward to hearing your thoughts!
Beta Was this translation helpful? Give feedback.
All reactions