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.7rc2.tar.gz (187.8 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.7rc2-py3-none-any.whl (149.7 kB view details)

Uploaded Python 3

File details

Details for the file odc_geo-0.4.7rc2.tar.gz.

File metadata

  • Download URL: odc_geo-0.4.7rc2.tar.gz
  • Upload date:
  • Size: 187.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for odc_geo-0.4.7rc2.tar.gz
Algorithm Hash digest
SHA256 b6335d21130f870600a73e0ba3357c607b13760c3f60b8d3ea746f8fc39a92be
MD5 bdc50b7f3f2455c9b9afa7a40ab8431d
BLAKE2b-256 48f763f8a3b00f2d197861da9cd1d856598aa80b02ea5230e6c30c71cae8be84

See more details on using hashes here.

File details

Details for the file odc_geo-0.4.7rc2-py3-none-any.whl.

File metadata

  • Download URL: odc_geo-0.4.7rc2-py3-none-any.whl
  • Upload date:
  • Size: 149.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for odc_geo-0.4.7rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8483becedf868cec39b11048a807d502f42f5ca0145880c2b57d29a85c93a75
MD5 7055b52e0101a882057236db2b9bdc02
BLAKE2b-256 41215c04da43701d6a31bd7d409b5bbab1af1de377b6b9bcb4f354413ec9a82e

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