base
Base class for OSM loaders.
¶
Bases: Loader
, ABC
Abstract class for loaders.
¶
abstractmethod
Load data for a given area.
PARAMETER | DESCRIPTION |
---|---|
area |
Shapely geometry with the area of interest.
TYPE:
|
tags |
OSM tags filter.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
GeoDataFrame
|
gpd.GeoDataFrame: GeoDataFrame with the downloaded data. |
Source code in srai/loaders/osm_loaders/_base.py
¶
Prepare an area for the loader.
Loader expects a GeoDataFrame input, but users shouldn't be limited by this requirement. All Shapely geometries will by transformed into GeoDataFrame with proper CRS.
PARAMETER | DESCRIPTION |
---|---|
area |
Area to be parsed into GeoDataFrame.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
GeoDataFrame
|
gpd.GeoDataFrame: Sanitized GeoDataFrame. |