PyDriosm: an open-source tool for downloading, reading and PostgreSQL-based I/O of OpenStreetMap data
Description
PyDriosm is an open-source tool for researchers/practitioners to easily download and read OpenStreetMap (OSM) data in popular file formats such as protobuf binary format (PBF) and shapefile, which are available for free download from Geofabrik and BBBike. The package also provides a convenient way for PostgreSQL-based I/O and storage of parsed OSM data.
This release:
2.0.1 (19 November 2020)
- Optimized import statements for the modules downloader and reader.
Release history:
2.0.0 (19 November 2020)
Note that this release is a highly modified version and not compatible with any previous versions.
- Featured with the following three new modules:
- downloader, modified from the former download_GeoFabrik and download_BBBike, for downloading data;
- reader, modified from the former read_GeoFabrik, for reading the data;
- ios, modified from the former osm_psql and dump_GeoFabrik, for PostgreSQL-based I/O and storage of the data.
- Renamed the rest of the modules, fixed known bugs and added a number of new functions/classes.
1.0.20 (27 January 2020)
Note that 1.0.19 had been removed from GitHub Releases.
- Removed the function split_list() from the module utils.
- Improved the following class and functions with bug fixes:
- OSM in the module osm_psql;
- regulate_input_subregion_name() in download_GeoFabrik;
- read_pbf() and read_pbf() in the module read_GeoFabrik;
- psql_osm_pbf_data_extracts() in dump_GeoFabrik.
1.0.18 (9 January 2020)
- Integrated the function collect_bbbike_subregion_download_catalogue() into collect_bbbike_download_catalogue() in the module download_BBBike.
- Modified the module download_GeoFabrik, allowing it to download data of a deep or shallow set of subregions.
- Improved the following functions with bug fixes:
- get_subregion_table() in the module download_GeoFabrik
- find_osm_shp_file(), merge_multi_shp() and read_pbf() in the module read_GeoFabrik
- Added a new module update.
- Added default parameters for PostgreSQL database connection.
1.0.17 (29 November 2019)
- Improved the following functions with bug fixes:
- collect_subregion_info_catalogue() and get_default_pathname() in the module download_GeoFabrik;
- merge_multi_shp(), read_shp_zip() and read_pbf() in the module read_GeoFabrik.
1.0.16 (6 October 2019)
- Fixed some known bugs.
1.0.15 (29 August 2019)
Note that 1.0.14, 1.0.13 and 1.0.12 had been removed from GitHub Releases.
- Improved the functions: extract_shp_zip(), read_shp() and read_shp_zip() with bug fixes in the module read_GeoFabrik.
- Added a new method OSM.db_exists(), allowing OSM.create_db() to check whether a database exists.
- Updated the LICENSE.
1.0.11 (4 April 2019)
Note that 1.0.10 and 1.0.9 had been removed from GitHub Releases.
- Fixed a minor bug for creating a default data directory.
- Improved the following functions (with bug fixes):
- get_default_pathname() in the module download_GeoFabrik;
- parse_layer_data() in the module read_GeoFabrik;
- dump_osm_pbf_data_by_layer() in the module osm_psql;
- psql_osm_pbf_data_extracts() in the module dump_GeoFabrik, with a new parameter
database_name
for specifying a database name when dumping data to a PostgreSQL server.
- Added a function regulate_table_name(), which regulates PostgreSQL table names, to the module osm_psql.
1.0.8 (18 Mar 2019)
Note that 1.0.6 and 1.0.7 had been removed from GitHub Releases.
- Made some major changes (with potential bug fixes).
- Fixed minor bugs in the following functions:
- parse_layer_data() and read_shp_zip() in the module read_GeoFabrik;
- retrieve_subregions() and psql_subregion_osm_data_extracts() in the module dump_GeoFabrik.
- Added a function regulate_input_data_dir() to the module utils.
1.0.5 (11 March 2019)
Note that 1.0.4, 1.0.3, 1.0.2 and 1.0.1 had been removed from GitHub Releases.
- Integrated the function read_parsed_osm_pbf() into read_pbf() in the module read_GeoFabrik.
- Improved the following functions
- dump_osm_pbf_data() in the module osm_psql, with a new parameter
chunk_size
allowing users to parse/read/dump data in a chunk-wise way; - psql_subregion_osm_data_extracts() in the module dump_GeoFabrik;
- gdal_configurations() in the module settings.
- dump_osm_pbf_data() in the module osm_psql, with a new parameter
- Added new function:
- retrieve_subregions(), which retrieves a list of subregions of a given (sub)region name, to the module dump_GeoFabrik;
- split_list() to the module utils.
1.0.0 (4 March 2019)
This is a release of a brand-new version.
Note that the initial releases (of early versions up to 0.2.9) had been permanently deleted.
Files
mikeqfu/pydriosm-2.0.1.zip
Files
(1.8 MB)
Name | Size | Download all |
---|---|---|
md5:1a99e711eac2cab7371dd3f5edc1478c
|
1.8 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/mikeqfu/pydriosm/tree/2.0.1 (URL)