[gdal-dev] WKB Representation of Raster Data

Even Rouault even.rouault at spatialys.com
Wed Jan 14 10:51:37 PST 2015


Selon Daniel Wiesmann <daniel.wiesmann at gmail.com>:

> 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?
>

I'm not aware of a standard for that.

> 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.

This is documented there :
http://trac.osgeo.org/postgis/wiki/WKTRaster/Documentation01

>
> Thank you in advance for your help,
>
> Daniel
>


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list