semantique.extent.SpatialExtent

semantique.extent.SpatialExtent#

class semantique.extent.SpatialExtent(obj, **kwargs)[source]#

Dict-like representation of a spatial extent.

Parameters:
  • obj – One or more spatial features that together form the boundaries of the spatial extent. Should be given as an object that can be read by the initializer of geopandas.GeoDataFrame. This includes geopandas.GeoDataFrame objects themselves.

  • **kwargs – Additional keyword arguments forwarded to the initializer of geopandas.GeoDataFrame.

__init__(obj, **kwargs)[source]#

Methods

__init__(obj, **kwargs)

from_feature(obj, **kwargs)

Alternative initialization from a GeoJSON Feature object.

from_featurecollection(obj, **kwargs)

Alternative initialization from a GeoJSON FeatureCollection object.

from_geojson(obj, **kwargs)

Alternative initialization from any GeoJSON dictionary.

from_geometry(obj, **kwargs)

Alternative initialization from a GeoJSON Geometry object.

rasterize(resolution[, crs])

Rasterize the spatial extent into an array.

Attributes

crs

Coordinate reference system in which the spatial coordinates are expressed.

features

Spatial features comprising the spatial extent.