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.4.10.tar.gz (192.8 kB view details)

Uploaded Source

Built Distribution

odc_geo-0.4.10-py3-none-any.whl (155.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: odc_geo-0.4.10.tar.gz
  • Upload date:
  • Size: 192.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for odc_geo-0.4.10.tar.gz
Algorithm Hash digest
SHA256 5670a797c4243e9379b20905ea37ff23ad287e7fa37c672dc53546923daf6d52
MD5 f24011826f38710fb6d08f1218b43e55
BLAKE2b-256 53f6f22d9728ed1652f092bdb8e0f04cf68f7212d273ad118225a252fc8cbfb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: odc_geo-0.4.10-py3-none-any.whl
  • Upload date:
  • Size: 155.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for odc_geo-0.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ab5f26f56883a11286a9583c04d30190e35a2702e8aa72fa3b4b438bea851b19
MD5 73e37fb927432666f93f97e3bd5d67ee
BLAKE2b-256 99e2311fb383d9534eef7bfbe858fad931b6e3dbe85843c50592f50063c3bc83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page