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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file postgis2raster-0.2.tar.gz.

File metadata

  • Download URL: postgis2raster-0.2.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for postgis2raster-0.2.tar.gz
Algorithm Hash digest
SHA256 a6aebfa7805a0d10be0f679a2e87e6214c56f94f818b796d9a70b9dd93867fad
MD5 7ed8e940da9d7e70bcb75b9002f4d69c
BLAKE2b-256 2fa65a42d7c472417190bbfa42fd3f4bb43acac5918d2a9fd004c12aeb738273

See more details on using hashes here.

File details

Details for the file postgis2raster-0.2-py3-none-any.whl.

File metadata

  • Download URL: postgis2raster-0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for postgis2raster-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4dcc97fbf01d5ed7277fedb6886a9e9cf34f8730fe5eaedf3f54f33f740aa684
MD5 4f89e7b63ce0ed38dd507f776f2a20d9
BLAKE2b-256 94f2ab008cd15ac2a5185667b11b8d9935347aa73e4d09aa435ab4cd645832e8

See more details on using hashes here.

Supported by

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