Skip to content

Commit

Permalink
Converter alerts in case of duplicate poi names
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbig committed Sep 28, 2016
1 parent 4cff795 commit 1d42da6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions converter/convertkml.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
if (empty($place->Polygon)) continue;

$poi = parsePoly($place);
if (isset($folder_pois[$poi['n']])) {
die('Error: duplicate poi name '.$poi['n']."\n");
}
$folder_pois[$poi['n']] = $poi;
}

Expand Down

0 comments on commit 1d42da6

Please sign in to comment.