datacube.utils.geometry.Geometry

class datacube.utils.geometry.Geometry(geo, crs=None)[source]

2D Geometry with CRS

Instantiate with a GeoJSON structure

If 3D coordinates are supplied, they are converted to 2D by dropping the Z points.

__init__(geo, crs=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(geo[, crs]) Initialize self.
buffer(distance[, quadsecs])
contains(*args) Contains(Geometry self, Geometry other) -> bool
crosses(*args) Crosses(Geometry self, Geometry other) -> bool
difference(*args) Difference(Geometry self, Geometry other) -> Geometry
disjoint(*args) Disjoint(Geometry self, Geometry other) -> bool
interpolate(distance) Returns a point distance units along the line or None if underlying geometry doesn’t support this operation.
intersection(*args) Intersection(Geometry self, Geometry other) -> Geometry
intersects(*args) Intersects(Geometry self, Geometry other) -> bool
overlaps(*args) Overlaps(Geometry self, Geometry other) -> bool
segmented(resolution) Possibly add more points to the geometry so that no edge is longer than resolution
simplify(tolerance)
symmetric_difference(*args) SymDifference(Geometry self, Geometry other) -> Geometry
to_crs(crs[, resolution, wrapdateline]) Convert geometry to a different Coordinate Reference System
touches(*args) Touches(Geometry self, Geometry other) -> bool
union(*args) Union(Geometry self, Geometry other) -> Geometry
within(*args) Within(Geometry self, Geometry other) -> bool

Attributes

area
boundary
boundingbox
centroid
convex_hull
coords
envelope
is_empty
is_valid
json
length
points
type
wkt