OSM Scientific Tools
This page has the purpose of collecting and sharing information about:
- Scientific computing on OSM vector data;
- Geo-statistical analysis tools;
- Data mining on OSM;
- Tools and techniques for road network analysis.
Getting a local copy of OSM vector data
To run scientific analyses of OSM data, it is highly recommended to download a local copy of the vector data, without overloading the project's web infrastructure. OSM vector data is available in a variety of formats. Depending on the particular task, certain formats can be more appropriate than others.
- OSM XML: general purpose format.
- PBF is a binary format that supports fast access to OSM features.
- For the analysis of geometries, PostGIS is a suitable DBMS. OSM vector data can be easily imported into PostGIS with Osm2postgresql.
Processing Libraries and Tools
The following languages can be used to perform scientific computation and analysis of OSM vector data:
- Python: Numpy is suitable for statistical processing; see articles filed in Category:Python for OSM-specific Python tools.
R is a popular open-source platform to perform geo-statistical analyses. Several packages have been developed to process OSM data:
- OpenStreetMap R package
- A tutorial to process OSM data on R: OpenStreetMap on R
- osmar R package
- A tutorial on how to process OSM data as vector data with R: The osmar vignette
The following Semantic Web projects can support the processing of OSM vector data from a semantic perspective: