{"library":"odc-geo","title":"ODC Geo - Geometry Classes and Operations","description":"odc-geo provides geometry classes and operations for geospatial data, built on top of Shapely, Rasterio, and Xarray. It is part of the Open Data Cube ecosystem. Version 0.5.1 released 2025-04-27. Release cadence: irregular, major changes every few months.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install odc-geo"],"cli":null},"imports":["from odc.geo import GeoBox","from odc.geo import Geometry","from odc.geo import BoundingBox","from odc.geo.crs import CRS","from odc.geo import xr_zeros"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from odc.geo import GeoBox, CRS\nfrom odc.geo.xr import xr_zeros\nimport os\n\n# Define a GeoBox\ncrs = CRS('EPSG:4326')\ngeobox = GeoBox.from_bbox((-10, 10, 10, -10), crs=crs, resolution=0.1)\nprint(geobox)\n\n# Create an xarray DataArray with geospatial info\nda = xr_zeros(geobox)\nprint(da)\n\n# Basic reproject (if dask available)\nif 'PYTEST_CURRENT_TEST' not in os.environ:\n    da_reproj = da.odc.reproject('EPSG:3857', resolution=100)\n    print(da_reproj)","lang":"python","description":"Create a GeoBox from bounding box, generate a zero-filled DataArray, and reproject.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}