Skip to content
Snippets Groups Projects
Commit bbbb4afe authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Fixed the same Bug with out of Bounds Nodes for the water.osm

parent 9ecceb73
No related branches found
No related tags found
No related merge requests found
/de/
No preview for this file type
......@@ -56,17 +56,17 @@ public class Shape2Osm implements Runnable {
FilenameUtils.getBaseName(sourceShape.getName()) + ".water.osm");
String content = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + "<osm version=\"0.6\">\n"
+ " <node timestamp=\"1969-12-31T23:59:59Z\" changeset=\"-1\" id=\"32951459320\" version=\"1\" lon=\""
+ (bbox.minLongitude - ((bbox.maxLongitude - bbox.minLongitude) / 2.0)) + "\" lat=\""
+ (bbox.minLatitude - ((bbox.maxLatitude - bbox.minLatitude) / 2.0)) + "\" />\n"
+ bbox.minLongitude + "\" lat=\""
+ bbox.minLatitude + "\" />\n"
+ " <node timestamp=\"1969-12-31T23:59:59Z\" changeset=\"-1\" id=\"32951459321\" version=\"1\" lon=\""
+ (bbox.minLongitude - ((bbox.maxLongitude - bbox.minLongitude) / 2.0)) + "\" lat=\""
+ (bbox.maxLatitude + ((bbox.maxLatitude - bbox.minLatitude) / 2.0)) + "\" />\n"
+ bbox.minLongitude + "\" lat=\""
+ bbox.maxLatitude + "\" />\n"
+ " <node timestamp=\"1969-12-31T23:59:59Z\" changeset=\"-1\" id=\"32951459322\" version=\"1\" lon=\""
+ (bbox.maxLongitude + ((bbox.maxLongitude - bbox.minLongitude) / 2.0)) + "\" lat=\""
+ (bbox.maxLatitude + ((bbox.maxLatitude - bbox.minLatitude) / 2.0)) + "\" />\n"
+ bbox.maxLongitude + "\" lat=\""
+ bbox.maxLatitude + "\" />\n"
+ " <node timestamp=\"1969-12-31T23:59:59Z\" changeset=\"-1\" id=\"32951459323\" version=\"1\" lon=\""
+ (bbox.maxLongitude + ((bbox.maxLongitude - bbox.minLongitude) / 2.0)) + "\" lat=\""
+ (bbox.minLatitude - ((bbox.maxLatitude - bbox.minLatitude) / 2.0)) + "\" />\n"
+ bbox.maxLongitude + "\" lat=\""
+ bbox.minLatitude + "\" />\n"
+ " <way timestamp=\"1969-12-31T23:59:59Z\" changeset=\"-1\" id=\"32951623372\" version=\"1\">\n"
+ " <nd ref=\"32951459320\" />\n" + " <nd ref=\"32951459321\" />\n"
+ " <nd ref=\"32951459322\" />\n" + " <nd ref=\"32951459323\" />\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment