PBFReadParse

class pydriosm.reader.PBFReadParse[source]

Read/parse PBF data.

Examples:

>>> from pydriosm.reader import PBFReadParse

>>> PBFReadParse.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

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

Methods

get_pbf_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_pbf_layer_names(pbf_pathname[, verbose])

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

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

Parse a PBF data file (by GDAL).

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

Parse a layer of a PBF data file.

transform_pbf_layer_field(layer_data, layer_name)

Parse data of a layer of PBF data.