fixed duplicate target problems

This commit is contained in:
Arndt 2015-10-17 18:23:54 +02:00
parent 11871ee4d7
commit 27a4c65e11
2 changed files with 55 additions and 0 deletions

View file

@ -247,6 +247,14 @@ public class WayLinker extends MapCreatorBase
int maxLon = minLon + 5000000;
int maxLat = minLat + 5000000;
// cleanup duplicate targets
for ( OsmNodeP n : nodesList )
{
if ( n == null || n.getFirstLink() == null || n.isTransferNode() )
continue;
n.checkDuplicateTargets();
}
// write segment data to individual files
{
int nLonSegs = ( maxLon - minLon ) / 1000000;