This library helps user create raster files directly off postgis tables, rasterization and fishnet analysis.
Project description
postgis2raster
converts postgis vector geometry to Gdal Rasters
Eaxmple of Fishnets
Single Band Circle
postgis2raster.analysis_circle(
table='mytable',
output_raster='myimage.tif',
query_x=16.55268272,
query_y=40.82717010,
radius=2500,
cell_size=30
)
Multi Band Circle
postgis2raster.analysis_circle(
table='mytable',
output_raster='myimage.tif',
query_x=16.55268272,
query_y=40.82717010,
radius=2500,
cell_size=30,
classes_to_bands=True
)
Single Band Polygon
postgis2raster.analysis_polygon(
table='mytable',
output_raster='myimage.tif',
query_x=16.55268272,
query_y=40.82717010,
height=5000,
width=5000,
cell_size=30
)
Multi Band Polygon
postgis2raster.analysis_polygon(
table='mytable',
output_raster='myimage.tif',
query_x=16.55268272,
query_y=40.82717010,
height=5000,
width=5000,
cell_size=30,
classes_to_bands=True
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
postgis2raster-0.2.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for postgis2raster-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dcc97fbf01d5ed7277fedb6886a9e9cf34f8730fe5eaedf3f54f33f740aa684 |
|
MD5 | 4f89e7b63ce0ed38dd507f776f2a20d9 |
|
BLAKE2b-256 | 94f2ab008cd15ac2a5185667b11b8d9935347aa73e4d09aa435ab4cd645832e8 |