Question

How to convert extract from OpenStreetMap into a routable dataset?

  • 4 March 2019
  • 2 replies
  • 10 views

Badge +10

I have downloaded the OpenStreetMap file for Australia and successfully extracted the road geometry (tagged as "highway").

I want to use this as the Network input for the ShortestPathFinder transformer.

What other transformations should I do to clean up the dataset? For example, the line geometries are typically not broken at intersections, but I think that they should be.


2 replies

Userlevel 4
Badge +13

Hi @nicholas You can check the topology with a TopologyBuilder or use an Intersector to check for nodes which have only one element in the list - meaning that they're dangles. An Intersector also creates intersections, of course. You might also want to use the LineExtender, Snapper, and/or the AnchoredSnapper to fix any gaps in the network.

Userlevel 4

If you end up using the TopologyBuilder or Intersector to break up geometries at intersections, just be careful when considering e.g. bridges and tunnels, otherwise the ShortestPathFinder may give you some improbable results.

Reply