Skip to main content

An open-source tool for downloading, reading and PostgreSQL-based I/O of OpenStreetMap data.

Project description

PyDriosm

A Python package for downloading, reading and PostgreSQL-based I/O of OpenStreetMap data.

Python Version License ReadTheDocs Documentation GitHub Actions Workflow Status Codacy - Code Quality DOI

PyDriosm is an open-source Python package designed to simplify the acquisition and management of OpenStreetMap (OSM) data. It provides automated utilities for downloading and parsing data extracts from Geofabrik and BBBike in several popular formats, including Protocolbuffer Binary Format (PBF), Shapefiles and GeoPackage (GPKG).

Beyond data retrieval, the package integrates a robust I/O interface for PostgreSQL databases. This allows users to import parsed OSM data directly into a relational database, facilitating complex spatial querying and efficient data manipulation. By handling the complexities of source scraping, file parsing and schema mapping, pydriosm provides a streamlined workflow for researchers and developers working with large-scale geographic datasets.

Core features:

  • Automated downloads: Direct access to Geofabrik and BBBike subregion extracts.
  • Format support: Parse regional data of PBF, Shapefiles and GeoPackage files into standard Pandas DataFrames or GeoDataFrames.
  • PostgreSQL integration: Streamlined geometry I/O for efficient database storage.
  • Multi-region processing: Tools for merging regional data layers into unified datasets.

Installation

To install the latest release of pydriosm from PyPI via pip:

$ pip install --upgrade pydriosm

For more information, see the Installation.

Quick start

For a concise guide with practical examples, please check out the Quick Start tutorial, which demonstrates how to use pydriosm to download, parse and perform storage I/O operations on OSM data using a PostgreSQL database.

Documentation

The complete PyHelpers Documentation is available in [HTML] [PDF] formats.

It is hosted on ReadTheDocs and provides detailed examples, tutorials and comprehensive references to help users get the most out of pydriosm.

Cite as

Fu, Q. (2020). PyDriosm: An open-source tool for downloading, reading and PostgreSQL-based I/O of OpenStreetMap data. Zenodo. doi:10.5281/zenodo.4281194

@software{qian_fu_pydriosm_4281194,
  author    = {Fu, Qian},
  title     = {{PyDriosm: An open-source tool for downloading, reading and PostgreSQL-based I/O of OpenStreetMap data}},
  year      = {2020},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.4281194},
  license   = {GPLv3},
  url       = {https://github.com/mikeqfu/pydriosm}
}

(Please also refer to the export options from Zenodo to reference the specific version of pydriosm as appropriate.)

License

Acknowledgement

The development of pydriosm, including the example code that demonstrates how to use the package, heavily relies on freely available OpenStreetMap data. The author would like to express sincere gratitude to all the OpenStreetMap contributors for their invaluable contributions in making this data accessible to the community.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydriosm-2.4.0.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydriosm-2.4.0-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file pydriosm-2.4.0.tar.gz.

File metadata

  • Download URL: pydriosm-2.4.0.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pydriosm-2.4.0.tar.gz
Algorithm Hash digest
SHA256 178efb89c9857386d7b71b0d769dcaa8e74a451d7818bb59508ef43ed98d4130
MD5 2b13fbbf6f9a1ff1aafb0a3d3a0c6d8c
BLAKE2b-256 37ee059b09091640b777656ccd594a484607dd68eb694d543c2e8a7150a4eb3e

See more details on using hashes here.

File details

Details for the file pydriosm-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: pydriosm-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pydriosm-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee5f03460a5c4552d93c7117caffb5daf5aea5ddd1203095dadaf3a199dd8349
MD5 c2ee7c793dfd2d1f524ff2a1dbc24635
BLAKE2b-256 1871c81ec9de624396296aeba492868687db5364d05fa6df0d2388dc24275c1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page