Skip to content

AtelierLibre/osmnx_tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Notebooks testing the OSMnx geometries module

This is a set of notebooks used during the development of the new geometries module for OSMnx.

Initial study

Demonstrates the ability of geometries to convert OSM nodes, ways and multipolygon relations to Shapely points, linestrings, polygons and multipolygons.

Comparisons between pois, footprints and geometries modules

Compare the results of the pois, footprints and geometries modules.

Notes

  • These notebooks will not work in the latest version of the geometries branch as pois and footprints have been deprecated and are both now interfaces to geometries.

Visual comparisons with openstreetmap.org

Uses a helper function provided alongside the notebooks to apply colours matching the OpenStreetMap Carto stylesheets to the results from geometries to allow for a visual comparison of results with openstreetmap.org.

Comparisons with overpass-turbo.eu

Run similar queries through the new geometries module and overpass-turbo.eu using overpass-turbo.eu as an external benchmark to give confidence that the numbers returned are accurated. There are occasional minor differences but generally the results are very comparable.

Notes

  • The geometries module strictly processes multipolygon relations. An equivalent query using the overpass-turbo.eu wizard would look like (type:node or type:way or (type:relation and type=multipolygon)) and amenity=school in Berlin.

Conversion of XMLs

Test the ability to extract geometries from OpenStreetMap XMLs

Notes

  • XMLs often seem to include 'clipped' partial geometries (e.g. only including one node for a way that starts inside but finishes outside the bounding shape). This makes them a good test for error handling but can lead to unexpected results as incomplete geometries are discarded.
  • The entirety of an XML file has to be processed before any polygon or tag filter is applied. This means quite a large amount of data may need to be processed to extract quite a small amount of data from a relatively small area. This can limit the parsing of XMLs to quite small areas but good results are possible if they contain complete geometries.

About

Notebooks for testing OSMnx's geometries module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published