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 the .odc. accessor on every xarray.Dataset and xarray.DataArray. This exposes geospatial information of a 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.4.0a3.tar.gz (149.4 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.4.0a3-py3-none-any.whl (121.5 kB view details)

Uploaded Python 3

File details

Details for the file odc-geo-0.4.0a3.tar.gz.

File metadata

  • Download URL: odc-geo-0.4.0a3.tar.gz
  • Upload date:
  • Size: 149.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for odc-geo-0.4.0a3.tar.gz
Algorithm Hash digest
SHA256 d6e9c9084dbcda51ca67bb14cfe13f59af87f77afe6fa0627e0fd1d834c07101
MD5 c3d11bf97baf5e4db68b9cdce9455819
BLAKE2b-256 c73298733fbc2da92417e1c78ceab9b99457e4275e4893f05c65eff6757834c0

See more details on using hashes here.

File details

Details for the file odc_geo-0.4.0a3-py3-none-any.whl.

File metadata

  • Download URL: odc_geo-0.4.0a3-py3-none-any.whl
  • Upload date:
  • Size: 121.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for odc_geo-0.4.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 86659b35c902ba1695d1f4b341ddb1e49abd91b0300d2ee4e51694be1e120b8a
MD5 048cf12f9ff42acb8fd59099377c0723
BLAKE2b-256 5f5dea1efc8e6d6b830b8b7294c23aeb85e5641f6489356a10ee3ebb7118ee17

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