Skip to main content

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
)

Single band circle

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
)

Multi band circle

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
)

Single band circle

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
)

Multi band circle

Project details


Release history Release notifications | RSS feed

This version

0.2

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)

Uploaded Source

Built Distribution

postgis2raster-0.2-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

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