Index
This module contains joiners, used to match spatial data with regions used in analysis.
All methods for spatial embedding (available in srai
) are designed to operate on regions, not on
individual spatial features. This means that we need to match spatial features with our given
regions. This can be done in different ways, all of which are available under a common Joiner
interface.
¶
Bases: ABC
Abstract class for joiners.
¶
abstractmethod
Join features to regions.
PARAMETER | DESCRIPTION |
---|---|
regions |
regions with which features are joined
TYPE:
|
features |
features to be joined
TYPE:
|
Returns: GeoDataFrame with an intersection of regions and features, which contains a MultiIndex and optionally a geometry with the intersection
Source code in srai/joiners/_base.py
¶
Bases: Joiner
Intersection Joiner.
Intersection Joiner allows to join two GeoDataFrames and find all overlapping geometries. It does not apply any grouping or aggregation.
¶
Join features to regions based on an 'intersects' predicate.
Does not apply any grouping to regions.
PARAMETER | DESCRIPTION |
---|---|
regions |
regions with which features are joined
TYPE:
|
features |
features to be joined
TYPE:
|
return_geom |
whether to return geometry of the joined features. Defaults to False.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
GeoDataFrame
|
GeoDataFrame with an intersection of regions and features, which contains |
GeoDataFrame
|
a MultiIndex and optionaly a geometry with the intersection |