[OSM-dev] shp2osm.pl

Frederik Ramm frederik at remote.org
Wed Sep 30 07:56:55 BST 2009


Anthony wrote:
> In the longer term, I'd like to merge nodes throughout the entire file 
> when they are duplicated in more than one polygon. 

Simply stuff every node you create into a hash the key of which is 
"lat|lon", then retrieve the existing negative ID from that hash for new 
nodes if one is already present - done.


More information about the dev mailing list