Skip to main content

Read WKB rasters to Numpy arrays.

Project description

WKB-Raster

Read WKB rasters to Numpy arrays.

.. code:: python

from wkb_raster import read_wkb_raster

raster = read_wkb_raster(binary)
raster['bands'][0]

Usage with PostGIS Rasters. Use `ST_AsBinary
<http://postgis.net/docs/manual-dev/RT_ST_AsBinary.html>`_
to return the WKB representation of the raster.

.. code:: sql
SELECT ST_AsBinary(rast) FROM rasters;

Wrap the returned buffer in `cStringIO.StringIO` to
pass it to `read_wkb_raster`.

Links
`````

* `Raster WKB RFC
<http://trac.osgeo.org/postgis/browser/trunk/raster/doc/RFC2-WellKnownBinaryFormat>`_
* `GitHub <https://github.com/nathancahill/wkb-raster>`_

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

WKB-Raster-0.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page