PBF.read_layer¶
- classmethod PBF.read_layer(layer, readable=True, expand=False, parse_geometry=False, parse_properties=False, parse_other_tags=False, number_of_chunks=None)[source]¶
Parse a layer of a PBF data file.
- Parameters:
layer (osgeo.ogr.Layer) – a layer of a PBF data file, loaded by GDAL/OGR
readable (bool) – whether to parse each feature in the raw data, defaults to
Falseexpand (bool) – whether to expand dict-like data into separate columns, defaults to
Falseparse_geometry (bool) – whether to represent the
'geometry'field in a shapely.geometry format, defaults toFalseparse_properties (bool) – whether to represent the
'properties'field in a tabular format, defaults toFalseparse_other_tags (bool) – whether to represent a
'other_tags'(of'properties') in a dict format, defaults toFalsenumber_of_chunks (int | None) – number of chunks, defaults to
None
- Returns:
parsed data of the given OSM PBF layer
- Return type:
dict
See also
Examples for
PBF.read_pbf().