PBF

class pydriosm.reader._pbf.PBF[source]

Read/parse PBF data.

Examples:

>>> from pydriosm.reader._pbf import PBF

>>> PBF.LAYER_GEOM
{'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}

Attributes

LAYER_GEOM

Layer names of an OSM PBF file and their corresponding geometric objects defined in Shapely.

Methods

get_layer_geom_types([shape_name])

A dictionary cross-referencing the names of PBF layers and their corresponding geometric objects defined in Shapely, or names.

get_layer_names(path_to_file[, verbose, ...])

Get names (and indices) of all available layers in a PBF data file.

read_layer(layer[, readable, expand, ...])

Parse a layer of a PBF data file.

read_pbf(path_to_file[, readable, expand, ...])

Parse a PBF data file (by GDAL).

transform_pbf_layer_field(layer_data, layer_name)

Parse data of a layer of PBF data.