PBFReadParse.read_pbf_layer
- classmethod PBFReadParse.read_pbf_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
False
expand (bool) – whether to expand dict-like data into separate columns, defaults to
False
parse_geometry (bool) – whether to represent the
'geometry'
field in a shapely.geometry format, defaults toFalse
parse_properties (bool) – whether to represent the
'properties'
field in a tabular format, defaults toFalse
parse_other_tags (bool) – whether to represent a
'other_tags'
(of'properties'
) in a dict format, defaults toFalse
number_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 the method
PBFReadParse.read_pbf()
.