API Reference
odc.geo
|
Immutable container for anything X/Y. |
Convert to tuple in X,Y order. |
|
Convert to tuple in Y,X order. |
|
Convert to tuple in Longitude,Latitude order. |
|
Convert to tuple in Latitude,Longitude order. |
|
Access X value. |
|
Access Y value. |
|
Access Longitude value (X). |
|
Access Latitude value (Y). |
|
Interpret as |
|
Interpret as |
|
|
Resolution for X/Y dimensions. |
|
2d shape. |
|
2d index. |
|
Construct from X,Y order. |
|
Construct from Y,X order. |
|
Resolution for square pixels with inverted Y axis. |
|
Construct resolution from X,Y order. |
|
Construct resolution from Y,X order. |
|
Shape from width/height. |
|
Normalise shape representation. |
|
Construct 2d index in X,Y order. |
|
Construct 2d index in Y,X order. |
odc.geo.crs
|
Wrapper around |
CRS Mismatch Error. |
|
|
Normalise CRS representation. |
|
Normalise CRS representation, raise error if input is |
|
Helper method for converting resolution between meters/degrees. |
CRS
|
EPSG Code of the CRS or |
|
Generate WKT representation of this CRS. |
|
Build coordinate transformer to other projection. |
List of dimension units of the CRS. |
|
List of dimension names of the CRS. |
odc.geo.geobox
|
Defines the location and resolution of a rectangular grid of data, including it's |
|
Partition GeoBox into sub geoboxes. |
|
Apply affine transform on pixel side. |
|
Bounding box of |
|
Flip along X axis. |
|
Flip along Y axis. |
|
Boundary of a |
|
Intersection of geoboxes. |
|
Union of geoboxes as a geobox. |
|
Pad geobox. |
|
Expand GeoBox such that width and height are multiples of supplied number. |
|
Rotate GeoBox around the center. |
|
Compute |
|
Shift GeoBox in pixel plane. |
|
Compute |
|
Change GeoBox shape. |
GeoBox
Alignment of pixel boundaries in CRS units. |
|
|
Produce a tile buffered by |
Query coordinates. |
|
Query coordinates. |
|
Coordinate Reference System of the GeoBox. |
|
List of dimension names of the GeoBox. |
|
List of dimension names of the GeoBox. |
|
|
Construct |
GeoBox extent in EPSG:4326. |
|
Check if geobox is "empty". |
|
Resolution, pixel size in CRS units. |
|
Shape in pixels |
|
Linear mapping from pixel space to CRS. |
Coordinate
|
Return number of occurrences of value. |
|
Return first index of value. |
Alias for field number 2 |
|
Alias for field number 1 |
|
Alias for field number 0 |
GeoboxTiles
Access base Geobox |
|
Query chunk shape for a given chunk. |
|
Intersect with a bounding box. |
|
Number of tiles along each dimension. |
|
|
Return tile indexes overlapping with a given geometry. |
odc.geo.geom
|
2D Geometry with CRS. |
|
Convert geometry to a different Coordinate Reference System. |
|
Render geometry to GeoJSON. |
|
Bounding box, defining extent in cartesian coordinates. |
|
Create a 2D Box (Polygon). |
|
Create a 2D LineString (Connected set of lines). |
|
Create a 2D Point. |
|
Create a 2D Polygon. |
|
Construct |
|
Create a 2D MultiLineString (Multiple disconnected sets of lines). |
|
Create a 2D MultiPoint Geometry. |
|
Create a 2D MultiPolygon. |
|
Create a 2D Polygon from an affine transform. |
|
Chop a geometry along the antimeridian. |
|
Tweak Geometry in the vicinity of longitude discontinuity. |
|
Compute common CRS. |
|
Adds points so they are at most resolution units apart. |
|
Check for intersection. |
|
Return the bounding box of a geometry. |
|
Compute longitude of the center point of a geometry. |
|
Project vertical line along some longitude into a given CRS. |
|
Returns a sequence of Geometry[Line] objects. |
|
Compute intersection of boudning boxes. |
|
Compute union of bounding boxes. |
|
Compute intersection of multiple (multi)polygons. |
|
Compute union of multiple (multi)polygons efficiently. |
odc.geo.roi
|
Points along axis aligned polygon. |
|
Get boundary points from a 2d roi. |
|
Return center point of an |
|
Build ROI from sample points. |
|
Compute intersection of two ROIs. |
|
Check if ROI is "empty". |
|
Check if ROI covers the entire region. |
|
Normalise ROI. |
|
Pad ROI on each side, with clamping. |
|
Shape of an array after cropping with |
|
Compute ROI for a scaled down image. |
|
Compute shape of the overview image. |
|
Compute ROI for a scaled up image. |
odc.geo.gridspec
|
Definition for a regular spatial grid. |
|
Construct |
|
Construct |
Pixel boundary alignment. |
|
List of dimension names of the grid spec. |
|
Tile shape in pixels (Y,X order, like numpy). |
|
|
Compute tile index from a point. |
|
Tile geobox. |
|
Lookup |
|
Query tiles overlapping with bounding box. |
|
Query tiles overlapping with a given polygon. |
|
Render to GeoJSON. |