[gdal-dev] WKB Representation of Raster Data

Daniel Wiesmann daniel.wiesmann at gmail.com
Wed Jan 14 09:57:34 PST 2015


Hello Everyone

I am working on integration of Raster data into the Django web-framework 
leveraging GDAL. For this I have written some GDAL C-Bindings through 
ctypes in python.

https://github.com/django/django/blob/master/django/contrib/gis/gdal/prototypes/raster.py

For reading and storing data to a database, I would like to add the 
possibility to convert a raster into a WKB format. For geometries, GDAL 
has the "OGR_G_ExportToWkb" function for OGR:

http://gdal.org/ogr__api_8h.html#ad5c94ae76c09774dba8725c24daeefd6

However, If I am not mistaken there is nothing similar for rasters. I 
have written function that converts a raster into a PostGIS Raster WKB 
buffer in python, but I am not sure if this is the best approach:

https://github.com/geodesign/django/blob/gdalraster/django/contrib/gis/gdal/raster/rasters.py#L466

So my questions are the following:

Is the inclusion of WKB raster export/import part of the GDAL Roadmap?

Do you know any other WKB representation for raster data other than 
PostGIS Raster?

If yes, which WKB format would you find most appropriate here?

Do you happen to know where PostGIS Raster is documented? I understand 
how it is constructed, but I had to piece it together from the source 
code and the user documentattion.

Thank you in advance for your help,

Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150114/11ca23a1/attachment.html>


More information about the gdal-dev mailing list