PBFReadParse.get_pbf_layer_geom_types
- classmethod PBFReadParse.get_pbf_layer_geom_types(shape_name=False)[source]
A dictionary cross-referencing the names of PBF layers and their corresponding geometric objects defined in Shapely, or names.
- Parameters:
shape_name (bool) – whether to return the names of geometry shapes, defaults to
False
- Returns:
a dictionary with keys and values being, respectively, PBF layers and their corresponding geometric objects defined in Shapely
- Return type:
dict
Examples:
>>> from pydriosm.reader import PBFReadParse >>> PBFReadParse.get_pbf_layer_geom_types() {'points': shapely.geometry.point.Point, 'lines': shapely.geometry.linestring.LineString, 'multilinestrings': shapely.geometry.multilinestring.MultiLineString, 'multipolygons': shapely.geometry.multipolygon.MultiPolygon, 'other_relations': shapely.geometry.collection.GeometryCollection} >>> PBFReadParse.get_pbf_layer_geom_types(shape_name=True) {'points': 'Point', 'lines': 'LineString', 'multilinestrings': 'MultiLineString', 'multipolygons': 'MultiPolygon', 'other_relations': 'GeometryCollection'}