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 includesgeopandas.GeoDataFrameobjects themselves.**kwargs – Additional keyword arguments forwarded to the initializer of
geopandas.GeoDataFrame.
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
Coordinate reference system in which the spatial coordinates are expressed.
Spatial features comprising the spatial extent.