BBBikeReader

class pydriosm.reader.BBBikeReader(data_dir=None, max_tmpfile_size=None)[source]

Read BBBike exports of OpenStreetMap data.

Parameters:
  • data_dir (str | None) – (a path or a name of) a directory where a data file is; if None (default), a folder osm_bbbike under the current working directory

  • max_tmpfile_size (int | None) – defaults to None, see also gdal_configurations

Variables:
  • downloader (BBBikeDownloader) – instance of the class BBBikeDownloader

  • name (str) – name of the data resource

  • url (str) – url of the homepage to the BBBike free download server

Examples:

>>> from pydriosm.reader import BBBikeReader

>>> bbr = BBBikeReader()

>>> bbr.NAME
'BBBike'

Attributes

DEFAULT_DOWNLOAD_DIR

str: Default download directory.

FILE_FORMATS

set: Valid file formats.

Methods

read_csv_xz(subregion_name[, data_dir, ...])

Read a compressed CSV (.csv.xz) data file of a geographic (sub)region.

read_geojson_xz(subregion_name[, data_dir, ...])

Read a .geojson.xz data file of a geographic (sub)region.

read_osm_pbf(subregion_name[, data_dir, ...])

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

read_shp_zip(subregion_name[, layer_names, ...])

Read a shapefile of a geographic (sub)region.