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.2a1.tar.gz (167.7 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.2a1-py3-none-any.whl (137.6 kB view details)

Uploaded Python 3

File details

Details for the file odc-geo-0.4.2a1.tar.gz.

File metadata

  • Download URL: odc-geo-0.4.2a1.tar.gz
  • Upload date:
  • Size: 167.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for odc-geo-0.4.2a1.tar.gz
Algorithm Hash digest
SHA256 c18409cf941f40f6e0b9a14d357aef828915f5b5ec5eec336aeb873101006bad
MD5 a339bb6771559d809a238654cf36b46f
BLAKE2b-256 fc605f1371f241671dbe607c4a88bfd831b756349b96ec899dc8fcc0f8bd1b57

See more details on using hashes here.

File details

Details for the file odc_geo-0.4.2a1-py3-none-any.whl.

File metadata

  • Download URL: odc_geo-0.4.2a1-py3-none-any.whl
  • Upload date:
  • Size: 137.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for odc_geo-0.4.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f11a8b89640cb01bdf8aef21da731ef2426e52e1fa452605105b8e58eb04962
MD5 6c4e1051466c7649e22d80bdfffac00f
BLAKE2b-256 9dffa01206a1028bfaedcdf948a6eaa09e608ace15e7c42ff4561f4169190225

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