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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for odc-geo-0.4.2.tar.gz
Algorithm Hash digest
SHA256 4086988797e84b1ee578e46c6efe99488b6998e1b3d4747c31f3c8ef24e785ee
MD5 4704fdf4b814ed2818cab2fdea1ff5d6
BLAKE2b-256 3e1eeb16722e1189285b0e9b64eb23ef60a2c920165a9a3d5bd5a36fc497564d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for odc_geo-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec7f3baea9461afda2eee670848bdb9ba776d236ddf2a8df7dabaa1326c2edba
MD5 8f0d01ee597729c2ae6ae26065c02a22
BLAKE2b-256 ae2b71c3d3ef3de8aa0464d3974d8b15505416aa9d8861003ced6de00557ed32

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