Closed smnorris closed 3 years ago
Note that the script uses the Erase
tool - it also requires an Advanced ArcGIS license.
To replicate the existing analysis, all that is necessary is snapping lower priority lines to reference lines and then removing the shared paths.
This can likely be done in PostGIS by:
To improve upon existing analysis, we could:
For other possibilities, see:
ArcGIS integrate functionality more or less replicated with PostGIS as noted above. The results are by no means identical but are reasonably similar and could be further improved.
increasing line vertex density (ST_Segmentize) Done for reference roads - this works for the reference roads but experimenting with increasing the vertex density in the roads to be inserted produced much lower quality results from ST_Snap
iterate through all lower priority road sources, snap lower priority road vertex to higher priority roads vertexes, snapping only to nearest neighbour Done but unfortunately snapping has to be done to all nearby features, the road networks are not clean enough to snap to just the nearest neighbour - often a feature in a lower priority source will span several features in the reference roads
insert difference between lower priority roads and reference roads into output Done
Additionally, lower priority roads are now cleaned up slightly: dangling nodes are snapped to same source features within 7m and the resulting features are re-noded before snapping to higher priority roads is done.
I'm happy enough with PostGIS output to close this for now and move improvement ideas to a different issue.
Process the road data using open tools.
The ArcGIS integrate tool is very handy and works well for this purpose. However, it requires an ArcGIS licence (and thus must be run on Windows). Investigate possible alternatives.