GeofabrikReader

class pydriosm.reader.GeofabrikReader(max_tmpfile_size=5000)[source]

A class representation of a tool for reading Geofabrik data extracts.

Parameters

max_tmpfile_size (int or None) – defaults to 5000, see also pydriosm.settings.gdal_configurations()

Example:

>>> from pydriosm.reader import GeofabrikReader

>>> geofabrik_reader = GeofabrikReader()

>>> print(geofabrik_reader.Name)
Geofabrik OpenStreetMap data extracts

Methods

get_path_to_osm_pbf(subregion_name[, data_dir])

Get the absolute local path to a PBF (.osm.pbf) data file for a geographic region.

get_path_to_osm_shp(subregion_name[, …])

Get the absolute path(s) to .shp file(s) for a geographic region (by searching a local data directory).

merge_subregion_layer_shp(layer_name, …[, …])

Merge shapefiles for a specific layer of two or multiple geographic regions.

read_osm_pbf(subregion_name[, data_dir, …])

Read a PBF (.osm.pbf) data file of a geographic region.

read_shp_zip(subregion_name[, layer_names, …])

Read a .shp.zip data file of a geographic region.