reader

Read OpenStreetMap (OSM) data extracts.

Classes

GeofabrikReader([max_tmpfile_size, data_dir])

Read Geofabrik data extracts.

BBBikeReader([max_tmpfile_size, data_dir])

Read BBBike data extracts.

Parsers for .osm.pbf / .osm.bz2 file

get_osm_pbf_layer_names(path_to_osm_pbf)

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

parse_osm_pbf_layer(pbf_layer_data, geo_typ, …)

Parse data of a layer of PBF data.

parse_osm_pbf(path_to_osm_pbf[, …])

Parse a PBF data file.

Parsers for .shp / .shp.zip file

unzip_shp_zip(path_to_shp_zip[, …])

Unzip a .shp.zip file.

read_shp_file(path_to_shp[, method, emulate_gpd])

Parse a shapefile.

get_epsg4326_wgs84_crs_ref([as_str])

Get reference of EPSG Projection 4326 - WGS 84 (EPSG:4326) for the setting of CRS for saving shapefile data.

get_epsg4326_wgs84_prj_ref()

Get reference of EPSG Projection 4326 - WGS 84 (EPSG:4326) for saving shapefile projection data.

make_pyshp_fields(shp_data, field_names, …)

Make fields data for writing shapefiles by pyshp.

write_to_shapefile(shp_data, path_to_shp[, …])

Save .shp data as a shapefile by pyshp.

parse_layer_shp(path_to_layer_shp[, …])

Parse a layer of OSM shapefile data.

merge_shps(paths_to_shp_files, …[, method])

Merge multiple shapefiles.

merge_layer_shps(paths_to_shp_zip_files, …)

Merge shapefiles over a layer for multiple geographic regions.

Parsers for .xz file

parse_csv_xz(path_to_csv_xz[, col_names])

Parse a compressed CSV (.csv.xz) data file.

parse_geojson_xz(path_to_geojson_xz[, fmt_geom])

Parse a compressed Osmium GeoJSON (.geojson.xz) data file.