Skip to main content

Geometry Classes and Operations (opendatacube)

Project description

Documentation Status Test Status Test Coverage Conda Version

This library combines geometry shape classes from shapely with CRS from pyproj to provide projection aware Geometry. It exposes all the functionality provided by shapely modules, but will refuse operations between geometries defined in different projections. Geometries can be brought into a common projection with Geometry.to_crs method.

Based on that foundation a number of data types and utilities useful for working with geospatial metadata are implemented. Of particular importance is GeoBox. It is an abstraction for a geo-registered bounded pixel plane where a linear mapping from pixel coordinates to the real world is defined.

To make working with geo-registered raster data easier an integration with xarray is provided. Importing odc.geo.xr enables .odc. accessor on every xarray.Dataset and xarray.DataArray that exposes geospatial information of the raster loaded with Open Datacube or rioxarray. Methods for attaching geospatial information to xarray objects in a robust way are also provided. Geospatial information attached in this way survives most operations you might do on the data: basic mathematical operations, type conversions, cropping, serialization to most formats like zarr, netcdf, GeoTIFF.

For more details see Documentation.

Map with GeoBoxes

Origins

This repository contains geometry related code extracted from Open Datacube.

For details and motivation see ODC-EP-06 enhancement proposal.

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

odc-geo-0.1.1.tar.gz (78.2 kB view details)

Uploaded Source

Built Distribution

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

odc_geo-0.1.1-py3-none-any.whl (81.7 kB view details)

Uploaded Python 3

File details

Details for the file odc-geo-0.1.1.tar.gz.

File metadata

  • Download URL: odc-geo-0.1.1.tar.gz
  • Upload date:
  • Size: 78.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for odc-geo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 233b1e1fd9adc2cf839d7ec651c530001e75a7c8827acbfdeeefd13c6bdd6316
MD5 f2b23646b65ae213d47c1192af739010
BLAKE2b-256 2bfe412f6f0610d946ce2c954c91c93772fd72a0def425f55974bbfc13149dc5

See more details on using hashes here.

File details

Details for the file odc_geo-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: odc_geo-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 81.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for odc_geo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 68094bf5bc6d73d20de2c0bb7a3497d16e67a3d58601a4b94baebabc3b493474
MD5 fb099c2e926ff4b76f435b40501d8eb3
BLAKE2b-256 5ae117d5b33434ab4c52e01bbdfcafac49c38ac0d3d74b91122dec6a33d7440b

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