BBBikeReader
- class pydriosm.reader.BBBikeReader(max_tmpfile_size=5000, data_dir=None)
Read BBBike exports of OpenStreetMap data.
- Parameters:
max_tmpfile_size (int or None) – defaults to
5000
, see alsogdal_configurations
data_dir (str or None) – (a path or a name of) a directory where a data file is; if
None
(default), a folderosm_bbbike
under the current working directory
- 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
str: Default download directory.
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.