BBBikeReader.get_shp_pathname¶
- BBBikeReader.get_shp_pathname(subregion_name, layer_name=None, feature_name=None, data_dir=None)[source]¶
Get path(s) to shapefile(s) for a geographic (sub)region (by searching a local data directory).
- Parameters:
subregion_name (str) – name of a geographic (sub)region (case-insensitive) that is available on Geofabrik free download server
layer_name (str | None) – name of a .shp layer (e.g.
'railways'), defaults toNonefeature_name (str | None) – name of a feature (e.g.
'rail'); ifNone(default), all available features includeddata_dir (str | None) – directory where the search is conducted; if
None(default), the default directory
- Returns:
path(s) to shapefile(s)
- Return type:
list
See examples for
pydriosm.reader.GeofabrikReader.get_shp_pathname().