Skip to main content

Geometry Classes and Operations (opendatacube)

Project description

Documentation Status Test Status Test Coverage Conda Version Join Discord for support

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.5.2.tar.gz (144.1 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.5.2-py3-none-any.whl (159.6 kB view details)

Uploaded Python 3

File details

Details for the file odc_geo-0.5.2.tar.gz.

File metadata

  • Download URL: odc_geo-0.5.2.tar.gz
  • Upload date:
  • Size: 144.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for odc_geo-0.5.2.tar.gz
Algorithm Hash digest
SHA256 6e3df040a6e2681e2438c97107a5143ea9c7182ce82e073b93caa117bef44329
MD5 442bfd404813b2b10c5a4b959bde1638
BLAKE2b-256 4543b463f4d1662b4c6a85256a93bbedb73fdad60f1a7896332266e72816d230

See more details on using hashes here.

Provenance

The following attestation bundles were made for odc_geo-0.5.2.tar.gz:

Publisher: main.yml on opendatacube/odc-geo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: odc_geo-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 159.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for odc_geo-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f2467753a0a8502ba6947746ec63b9e3285fc9b8691bc1088949bc0ec0b40cd5
MD5 c776fac59139298b23e6af4d2c569254
BLAKE2b-256 c9addbbefc7e8c97d8107cdcdd3ea80ee7a7b711a545fa72293eb822437717be

See more details on using hashes here.

Provenance

The following attestation bundles were made for odc_geo-0.5.2-py3-none-any.whl:

Publisher: main.yml on opendatacube/odc-geo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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