Geometry Classes and Operations (opendatacube)
Project description
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.
Origins
This repository contains geometry related code extracted from Open Datacube.
For details and motivation see ODC-EP-06 enhancement proposal.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file odc_geo-0.4.8.tar.gz
.
File metadata
- Download URL: odc_geo-0.4.8.tar.gz
- Upload date:
- Size: 188.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 035928ef446392ef47cd93d5f765b8a399a1c467403466f29457d9eb161009bb |
|
MD5 | 2a674c65a35197440ea0839ee04e8a8e |
|
BLAKE2b-256 | 7a5186d7217fbd0947bc2eab012139d050b629a274831b613589bff9253b09c9 |
File details
Details for the file odc_geo-0.4.8-py3-none-any.whl
.
File metadata
- Download URL: odc_geo-0.4.8-py3-none-any.whl
- Upload date:
- Size: 150.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c799b40166931d4a15141dcb97883b0a8df0c78b3ac03ae8fcbaf678d7b9024 |
|
MD5 | d26e1e947a6eb1ac0b35d7a33bc5fa2d |
|
BLAKE2b-256 | 3c03986bca6148ac96ca9b71ba751785d928dcb2b9010745e95e2646315b6e61 |