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

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.

Files for postgis2raster, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size postgis2raster-0.2-py3-none-any.whl (2.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size postgis2raster-0.2.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page