<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-text-html" lang="x-unicode"> <font size="-1">Hello
        Everyone<br>
        <br>
        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.</font><br>
      <font size="-1"><font size="-1"><font size="-1"><br>
            <a class="moz-txt-link-freetext"
href="https://github.com/django/django/blob/master/django/contrib/gis/gdal/prototypes/raster.py">https://github.com/django/django/blob/master/django/contrib/gis/gdal/prototypes/raster.py</a></font></font><br>
        <br>
        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 "</font><font size="-1">OGR_G_ExportToWkb"

        function for OGR:<br>
      </font><br>
      <font size="-1"><font size="-1"><a class="moz-txt-link-freetext"
href="http://gdal.org/ogr__api_8h.html#ad5c94ae76c09774dba8725c24daeefd6">http://gdal.org/ogr__api_8h.html#ad5c94ae76c09774dba8725c24daeefd6</a><br>
        </font></font><br>
      <font size="-1"><font size="-1"><font size="-1">However, If I am
            not mistaken there is nothing similar for rasters. </font></font>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:<br>
        <br>
        <a class="moz-txt-link-freetext"
href="https://github.com/geodesign/django/blob/gdalraster/django/contrib/gis/gdal/raster/rasters.py#L466">https://github.com/geodesign/django/blob/gdalraster/django/contrib/gis/gdal/raster/rasters.py#L466</a><br>
        <br>
        So my questions are the following:</font><br>
      <br>
      <font size="-1"><font size="-1">Is the inclusion of WKB raster
          export/import part of the GDAL Roadmap?<br>
          <br>
        </font>Do you know any other WKB representation for raster data
        other than PostGIS Raster?<br>
        <br>
        If yes, which WKB format would you find most appropriate here?<br>
        <br>
        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.<br>
      </font><font size="-1"><br>
        Thank you in advance for your help,<br>
        <br>
        Daniel<br>
      </font> </div>
  </body>
</html>