[PATCH v3] sea polygons

Here is an improved version of the sea polygon patch which also handles shorelines intersecting the boundary of the map (set by the <bounds> element). I have tested it with Ireland - there are still some islands which are "flooded", so the patch should not be considered "final". Best wishes Christian Index: src/uk/me/parabola/mkgmap/reader/osm/Way.java =================================================================== --- src/uk/me/parabola/mkgmap/reader/osm/Way.java (Revision 1124) +++ src/uk/me/parabola/mkgmap/reader/osm/Way.java (Arbeitskopie) @@ -76,6 +76,10 @@ } } + public boolean isClosed() { + return points.get(0).equals(points.get(points.size()-1)); + } + /** * A simple representation of this way. * @return A string with the name and start point Index: src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java =================================================================== --- src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java (Revision 1124) +++ src/uk/me/parabola/mkgmap/reader/osm/MultiPolygonRelation.java (Arbeitskopie) @@ -1,11 +1,10 @@ package uk.me.parabola.mkgmap.reader.osm; import java.util.ArrayList; -import java.util.Collection; +import java.util.Iterator; import java.util.List; import java.util.Map; -import uk.me.parabola.imgfmt.Utils; import uk.me.parabola.imgfmt.app.Coord; /** @@ -16,15 +15,19 @@ */ public class MultiPolygonRelation extends Relation { private Way outer; - private final Collection<Way> inners = new ArrayList<Way>(); + private List<Way> outers = new ArrayList<Way>(); + private List<Way> inners = new ArrayList<Way>(); + private Map<Long, Way> myWayMap; /** * Create an instance based on an exsiting relation. We need to do * this because the type of the relation is not known until after all * its tags are read in. * @param other The relation to base this one on. + * @param wayMap Map of all ways. */ - public MultiPolygonRelation(Relation other) { + public MultiPolygonRelation(Relation other, Map<Long, Way> wayMap) { + myWayMap = wayMap; setId(other.getId()); for (Map.Entry<Element, String> pairs: other.getRoles().entrySet()){ addElement(pairs.getValue(), pairs.getKey()); @@ -33,10 +36,12 @@ if (value != null && pairs.getKey() instanceof Way) { Way way = (Way) pairs.getKey(); - if (value.equals("outer")) - outer = way; - else if (value.equals("inner")) + if (value.equals("outer")){ + outers.add(way); + } + else if (value.equals("inner")){ inners.add(way); + } } } @@ -45,18 +50,63 @@ } /** Process the ways in this relation. + * Joins way with the role "outer" * Adds ways with the role "inner" to the way with the role "outer" */ public void processElements() { - if (outer != null) - { + + if (outers != null) + { + // copy first outer way + Iterator<Way> it = outers.iterator(); + if (it.hasNext()){ + // duplicate outer way and remove tags for cascaded multipolygons + Way tempWay = it.next(); + outer = new Way(-tempWay.getId()); + outer.copyTags(tempWay); + for(Coord point: tempWay.getPoints()){ + outer.addPoint(point); + } + myWayMap.put(outer.getId(), outer); + if (tempWay.getTags() != null){ + tempWay.getTags().removeAll(); + } + it.remove(); + } + + // if we have more than one outer way, we join them if they are parts of a long way + it = outers.iterator(); + while (it.hasNext()){ + Way tempWay = it.next(); + if (tempWay.getPoints().get(0) == outer.getPoints().get(outer.getPoints().size()-1)){ + for(Coord point: tempWay.getPoints()){ + outer.addPoint(point); + } + if (tempWay.getTags() != null){ + tempWay.getTags().removeAll(); + } + it.remove(); + it = outers.iterator(); + } + } + for (Way w: inners) { - if (w != null) { - List<Coord> pts = w.getPoints(); - int[] insert = findCpa(outer.getPoints(), pts); - if (insert[0] > 0) - insertPoints(pts, insert[0], insert[1]); - pts.clear(); + if (w != null && outer!= null) { + int[] insert = findCpa(outer.getPoints(), w.getPoints()); + insertPoints(w, insert[0], insert[1]); + + // remove tags from inner way that are available in the outer way + if (outer.getTags() != null){ + for (Map.Entry<String, String> mapTags: outer.getTags().getKeyValues().entrySet()){ + String key = mapTags.getKey(); + String value = mapTags.getValue(); + if (w.getTag(key) != null){ + if (w.getTag(key).equals(value)){ + w.deleteTag(key); + } + } + } + } } } } @@ -64,22 +114,43 @@ /** * Insert Coordinates into the outer way. - * @param inList List of Coordinates to be inserted + * @param way Way to be inserted * @param out Coordinates will be inserted after this point in the outer way. * @param in Points will be inserted starting at this index, * then from element 0 to (including) this element; */ - private void insertPoints(List<Coord> inList, int out, int in){ + private void insertPoints(Way way, int out, int in){ List<Coord> outList = outer.getPoints(); + List<Coord> inList = way.getPoints(); int index = out+1; - for (int i = in; i < inList.size(); i++) + for (int i = in; i < inList.size(); i++){ outList.add(index++, inList.get(i)); - for (int i = 0; i <= in; i++) + } + for (int i = 0; i < in; i++){ outList.add(index++, inList.get(i)); - - //with this line commented we get triangles, when uncommented some areas disappear - // at least in mapsource, on device itself looks OK. - outList.add(index,outList.get(out)); + } + + if (outer.getPoints().size() < 32){ + outList.add(index++, inList.get(in)); + outList.add(index, outList.get(out)); + } + else{ + // we shift the nodes to avoid duplicate nodes (large areas only) + int oLat = outList.get(out).getLatitude(); + int oLon = outList.get(out).getLongitude(); + int iLat = inList.get(in).getLatitude(); + int iLon = inList.get(in).getLongitude(); + if (Math.abs(oLat - iLat) > Math.abs(oLon - iLon)){ + int delta = (oLon > iLon)? -1 : 1; + outList.add(index++, new Coord(iLat + delta, iLon)); + outList.add(index, new Coord(oLat + delta, oLon)); + } + else{ + int delta = (oLat > iLat)? 1 : -1; + outList.add(index++, new Coord(iLat, iLon + delta)); + outList.add(index, new Coord(oLat, oLon + delta)); + } + } } /** Index: src/uk/me/parabola/mkgmap/reader/osm/xml/Osm5XmlHandler.java =================================================================== --- src/uk/me/parabola/mkgmap/reader/osm/xml/Osm5XmlHandler.java (Revision 1124) +++ src/uk/me/parabola/mkgmap/reader/osm/xml/Osm5XmlHandler.java (Arbeitskopie) @@ -19,9 +19,12 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.IdentityHashMap; +import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.SortedMap; +import java.util.TreeMap; import uk.me.parabola.imgfmt.app.Area; import uk.me.parabola.imgfmt.app.Coord; @@ -65,6 +68,7 @@ private final Map<String, Long> fakeIdMap = new HashMap<String, Long>(); private final List<Node> exits = new ArrayList<Node>(); private final List<Way> motorways = new ArrayList<Way>(); + private final List<Way> shoreline = new ArrayList<Way>(); private static final int MODE_NODE = 1; private static final int MODE_WAY = 2; @@ -92,6 +96,7 @@ private final boolean ignoreTurnRestrictions; private final boolean linkPOIsToWays; private final boolean routing; + private final boolean generateSea; private final Double minimumArcLength; private final String frigRoundabouts; @@ -105,6 +110,7 @@ } linkPOIsToWays = props.getProperty("link-pois-to-ways", false); ignoreBounds = props.getProperty("ignore-osm-bounds", false); + generateSea = props.getProperty("generate-sea", false); routing = props.containsKey("route"); String rsa = props.getProperty("remove-short-arcs", null); if(rsa != null) @@ -370,6 +376,8 @@ if("motorway".equals(highway) || "trunk".equals(highway)) motorways.add(currentWay); + if(generateSea && "coastline".equals(currentWay.getTag("natural"))) + shoreline.add(currentWay); currentWay = null; // ways are processed at the end of the document, // may be changed by a Relation class @@ -399,7 +407,7 @@ String type = currentRelation.getTag("type"); if (type != null) { if ("multipolygon".equals(type)) - currentRelation = new MultiPolygonRelation(currentRelation); + currentRelation = new MultiPolygonRelation(currentRelation, wayMap); else if("restriction".equals(type)) { if(ignoreTurnRestrictions) @@ -446,6 +454,10 @@ } coordMap = null; + + if (generateSea) + generateSeaPolygon(shoreline); + for (Relation r : relationMap.values()) converter.convertRelation(r); @@ -707,7 +719,7 @@ } currentWay.addPoint(co); co.incHighwayCount(); // nodes (way joins) will have highwayCount > 1 - if(minimumArcLength != null) + if (minimumArcLength != null || generateSea) nodeIdMap.put(co, id); } } @@ -746,4 +758,267 @@ return fakeIdVal; } } + + private void generateSeaPolygon(List<Way> shoreline) { + + Area seaBounds; + if (bbox != null) + seaBounds = bbox; + else + seaBounds = mapper.getBounds(); + + log.info("generating sea, seaBounds=", seaBounds); + int minLat = seaBounds.getMinLat(); + int maxLat = seaBounds.getMaxLat(); + int minLong = seaBounds.getMinLong(); + int maxLong = seaBounds.getMaxLong(); + Coord nw = new Coord(minLat, minLong); + Coord ne = new Coord(minLat, maxLong); + Coord sw = new Coord(maxLat, minLong); + Coord se = new Coord(maxLat, maxLong); + + long seaId = (1L << 62) + nextFakeId++; + Way sea = new Way(seaId); + sea.addPoint(nw); + sea.addPoint(sw); + sea.addPoint(se); + sea.addPoint(ne); + sea.addPoint(nw); + sea.addTag("natural", "sea"); + log.info("sea: ", sea); + wayMap.put(seaId, sea); + + long multiId = (1L << 62) + nextFakeId++; + Relation seaRelation = new GeneralRelation(multiId); + seaRelation.addTag("type", "multipolygon"); + seaRelation.addElement("outer", sea); + + List<Way> islands = new ArrayList(); + + // handle islands (closes shoreline components) first (they're easy) + Iterator<Way> it = shoreline.iterator(); + while (it.hasNext()) { + Way w = it.next(); + if (w.isClosed()) { + islands.add(w); + it.remove(); + } + } + concatenateWays(shoreline); + // there may be more islands now + it = shoreline.iterator(); + while (it.hasNext()) { + Way w = it.next(); + if (w.isClosed()) { + log.debug("island after concatenating\n"); + islands.add(w); + it.remove(); + } + } + + for (Way w : islands) { + seaRelation.addElement("inner", w); + } + + SortedMap<EdgeHit, Way> hitMap = new TreeMap<EdgeHit, Way>(); + for (Way w : shoreline) { + List<Coord> points = w.getPoints(); + Coord pStart = points.get(0); + Coord pEnd = points.get(points.size()-1); + + EdgeHit hStart = getEdgeHit(seaBounds, pStart); + EdgeHit hEnd = getEdgeHit(seaBounds, pEnd); + if (hStart == null || hEnd == null) { + log.error(String.format("Non-closed coastline segment does not hit bounding box - expect strange results: %d (%s) %d (%s) %s\n", + nodeIdMap.get(pStart), pStart.toDegreeString(), + nodeIdMap.get(pEnd), pEnd.toDegreeString(), + pStart.toOSMURL())); + } + else { + log.debug("hits: ", hStart, hEnd); + hitMap.put(hStart, w); + hitMap.put(hEnd, null); + } + } + + if (hitMap.size() > 0) { + Way w = new Way((1L << 62) + nextFakeId++); + Iterator<EdgeHit> it1; + it1=hitMap.keySet().iterator(); + EdgeHit hit = it1.next(); + while (hit != null) { + Way seg = hitMap.get(hit); + if (seg != null) { + log.info("adding shoreline ", w); + w.getPoints().addAll(seg.getPoints()); + if (it1.hasNext()) + hit = it1.next(); + else + hit = null; + } + else { + EdgeHit h1 = it1.next(); + Coord p; + p = hit.getPoint(seaBounds); + log.debug("way: ", hit, p); + w.addPoint(p); + if (hit.edge < h1.edge) { + log.info("joining: ", hit, h1); + for (int i=hit.edge; i<h1.edge; i++) { + hit = new EdgeHit(i, 1.0); + p = hit.getPoint(seaBounds); + log.debug("way: ", hit, p); + w.addPoint(p); + } + } + else if (hit.edge > h1.edge) { + log.info("joining: ", hit, h1); + for (int i=hit.edge; i<4; i++) { + hit = new EdgeHit(i, 1.0); + p = hit.getPoint(seaBounds); + log.debug("way: ", hit, p); + w.addPoint(p); + } + for (int i=0; i<h1.edge; i++) { + hit = new EdgeHit(i, 1.0); + p = hit.getPoint(seaBounds); + log.debug("way: ", hit, p); + w.addPoint(p); + } + } + w.addPoint(h1.getPoint(seaBounds)); + hit = h1; + } + } + seaRelation.addElement("inner", w); + } + + seaRelation = new MultiPolygonRelation(seaRelation, wayMap); + relationMap.put(multiId, seaRelation); + seaRelation.processElements(); + } + + /** + * Specifies where an edge of the bounding box is hit. + */ + private static class EdgeHit implements Comparable<EdgeHit> + { + int edge; + double t; + + EdgeHit(int edge, double t) { + this.edge = edge; + this.t = t; + } + + public int compareTo(EdgeHit o) { + if (edge < o.edge) + return -1; + else if (edge > o.edge) + return +1; + else if (t < o.t) + return -1; + else if (t > o.t) + return 1; + else + return 0; + } + + Coord getPoint(Area a) { + log.debug("getPoint: ", this, a); + switch (edge) { + case 0: + return new Coord(a.getMinLat(), (int) (a.getMinLong() + t * (a.getMaxLong()-a.getMinLong()))); + + case 1: + return new Coord((int)(a.getMinLat() + t * (a.getMaxLat()-a.getMinLat())), a.getMaxLong()); + + case 2: + return new Coord(a.getMaxLat(), (int)(a.getMaxLong() - t * (a.getMaxLong()-a.getMinLong()))); + + case 3: + return new Coord((int)(a.getMaxLat() - t * (a.getMaxLat()-a.getMinLat())), a.getMinLong()); + + default: + throw new RuntimeException("illegal state"); + } + } + + public String toString() { + return "EdgeHit " + edge + "@" + t; + } + } + + private EdgeHit getEdgeHit(Area a, Coord p) + { + return getEdgeHit(a, p, 10); + } + + private EdgeHit getEdgeHit(Area a, Coord p, int tolerance) + { + int lat = p.getLatitude(); + int lon = p.getLongitude(); + int minLat = a.getMinLat(); + int maxLat = a.getMaxLat(); + int minLong = a.getMinLong(); + int maxLong = a.getMaxLong(); + + log.info(String.format("getEdgeHit: (%d %d) (%d %d %d %d)", lat, lon, minLat, minLong, maxLat, maxLong)); + if (lat <= minLat+tolerance) { + return new EdgeHit(0, ((double)(lon - minLong))/(maxLong-minLong)); + } + else if (lon >= maxLong-tolerance) { + return new EdgeHit(1, ((double)(lat - minLat))/(maxLat-minLat)); + } + else if (lat >= maxLat-tolerance) { + return new EdgeHit(2, ((double)(maxLong - lon))/(maxLong-minLong)); + } + else if (lon <= minLong+tolerance) { + return new EdgeHit(3, ((double)(maxLat - lat))/(maxLat-minLat)); + } + else + return null; + } + + private void concatenateWays(List<Way> ways) { + Map<Coord, Way> beginMap = new HashMap(); + + for (Way w : ways) { + if (!w.isClosed()) { + List<Coord> points = w.getPoints(); + beginMap.put(points.get(0), w); + } + } + + int merged = 1; + while (merged > 0) { + merged = 0; + for (Way w1 : ways) { + if (w1.isClosed()) continue; + + List<Coord> points1 = w1.getPoints(); + Way w2 = beginMap.get(points1.get(points1.size()-1)); + if (w2 != null) { + log.info("merging: ", ways.size(), w1.getId(), w2.getId()); + List<Coord> points2 = w2.getPoints(); + Way wm; + if (w1.getId() < (1L << 62)) { + wm = new Way((1L << 62) + nextFakeId++); + ways.remove(w1); + ways.add(wm); + wm.getPoints().addAll(points1); + beginMap.put(points1.get(0), wm); + } + else { + wm = w1; + } + wm.getPoints().addAll(points2); + ways.remove(w2); + beginMap.remove(points2.get(0)); + merged++; + break; + } + } + } + } } Index: src/uk/me/parabola/mkgmap/reader/osm/Element.java =================================================================== --- src/uk/me/parabola/mkgmap/reader/osm/Element.java (Revision 1124) +++ src/uk/me/parabola/mkgmap/reader/osm/Element.java (Arbeitskopie) @@ -86,6 +86,7 @@ * element. */ public void copyTags(Element other) { + if (other.tags != null) tags = other.tags.copy(); } @@ -97,4 +98,8 @@ if (this.name == null) this.name = name; } + + public Tags getTags() { + return tags; + } } Index: src/uk/me/parabola/mkgmap/reader/osm/Tags.java =================================================================== --- src/uk/me/parabola/mkgmap/reader/osm/Tags.java (Revision 1124) +++ src/uk/me/parabola/mkgmap/reader/osm/Tags.java (Arbeitskopie) @@ -16,7 +16,9 @@ */ package uk.me.parabola.mkgmap.reader.osm; +import java.util.HashMap; import java.util.Iterator; +import java.util.Map; /** * Store the tags that belong to an Element. @@ -120,7 +122,7 @@ } return null; } - + /** * Make a deep copy of this object. * @return A copy of this object. @@ -271,4 +273,22 @@ put(e.key, e.value); } } -} + + public void removeAll() { + for (int i = 0; i < capacity; i++){ + keys[i] = null; + values[i] = null; + } + size = 0; + } + + public Map<String, String> getKeyValues() { + Map<String, String> tagMap = new HashMap<String, String>(); + for (int i = 0; i < capacity; i++) + if (keys[i] != null && values[i] != null) + tagMap.put(keys[i], values[i]); + return tagMap; + } + + +} \ No newline at end of file Index: resources/styles/default/polygons =================================================================== --- resources/styles/default/polygons (Revision 1124) +++ resources/styles/default/polygons (Arbeitskopie) @@ -54,6 +54,7 @@ natural=mud [0x51 resolution 20] natural=scrub [0x4f resolution 20] natural=water [0x3c resolution 20] +natural=sea [0x32 resolution 10] natural=wood [0x50 resolution 18] place=village [0x03 resolution 18]

2009/8/8 Christian Gawron <christian.gawron@gmx.de>:
Here is an improved version of the sea polygon patch which also handles shorelines intersecting the boundary of the map (set by the <bounds> element).
I have tested it with Ireland - there are still some islands which are "flooded", so the patch should not be considered "final".
Hi Christian, This works amazingly well. Danke dir! As you say, it's not quite perfect - I haven't looked in enough detail to find the flooded islands, but I have seen that at lower zoom levels, there are artefacts of "land" in grid-patterns in the sea, presumably on the interfaces of your sea polygons. Nothing to get worked up about, though. I'll be converting the map for use in Road Trip, which should allow me to grab screen shots, though I suppose you can probably see everything I can. I'll keep playing, but for now I'm very happy! Dermot -- -------------------------------------- Iren sind menschlich

OK, I've located a flooded island, I've grabbed a screenshot to illustrate the artefacts I described in my last mail. This is all fairly tolerable stuff, so I'm going to keep using the patched version. Dermot -- -------------------------------------- Iren sind menschlich

Testing results: 1. coastline.osm from cloudmade - sea areas ae generated except for islands with incomplete coastlines! 2. smaller osm file with incomplete coastline - all areas blue 3. philippine.osm splitted to 8 .osm.gz - mkgmap process incomplete time java -Xmx1512m -jar /home/maning/osm/routable_garmin/mkgmap/trunk/dist/mkgmap.jar --code-page=1252 --tdbfile --latin1 --country-abbr=PHI --country-name=PHILIPPINES --remove-short-arcs --route --road-name-pois --add-pois-to-areas --location-autofill=2 --family-id=639 --family-name="OSM_PHIL" --overview-mapname=40000001 --series-name="OSM_PHIL" --description="OSM_PHIL" --generate-sea /home/maning/osm/20090713/split_file/*.osm.gz SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25362802 (8.75082/123.23167) 25357549 (8.75082/123.22667) http://www.openstreetmap.org/?lat=8.75082&lon=123.23167&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25384684 (11.00126/120.77509) 25382032 (11.00212/120.76698) http://www.openstreetmap.org/?lat=11.00126&lon=120.77509&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25387627 (11.06499/119.73418) 25379361 (11.06499/119.73334) http://www.openstreetmap.org/?lat=11.06499&lon=119.73418&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25385540 (10.69667/120.26583) 25386877 (10.69667/120.25916) http://www.openstreetmap.org/?lat=10.69667&lon=120.26583&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407757 (11.00440/120.82420) 25407607 (11.00467/120.81835) http://www.openstreetmap.org/?lat=11.00440&lon=120.82420&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25412434 (9.59418/121.24917) 25408487 (9.59083/121.23750) http://www.openstreetmap.org/?lat=9.59418&lon=121.24917&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25410226 (10.75373/121.06964) 25410600 (10.75654/121.06601) http://www.openstreetmap.org/?lat=10.75373&lon=121.06964&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407126 (10.96981/120.95033) 25409456 (10.96981/120.94784) http://www.openstreetmap.org/?lat=10.96981&lon=120.95033&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407836 (10.79877/121.04159) 25402097 (10.79877/121.02743) http://www.openstreetmap.org/?lat=10.79877&lon=121.04159&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25424704 (9.59499/121.25917) 25410956 (9.59499/121.25834) http://www.openstreetmap.org/?lat=9.59499&lon=121.25917&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25405808 (10.72193/120.90516) 25411997 (10.72193/120.90349) http://www.openstreetmap.org/?lat=10.72193&lon=120.90516&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 353175334 (11.82938/121.49177) 353175368 (11.82949/121.47289) http://www.openstreetmap.org/?lat=11.82938&lon=121.49177&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25467849 (12.03207/121.95414) 25466837 (12.03207/121.94747) http://www.openstreetmap.org/?lat=12.03207&lon=121.95414&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25460738 (11.23249/120.93501) 25467032 (11.23249/120.92917) http://www.openstreetmap.org/?lat=11.23249&lon=120.93501&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25466438 (11.99033/121.39483) 25464047 (11.99065/121.38315) http://www.openstreetmap.org/?lat=11.99033&lon=121.39483&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25484039 (5.87627/119.97351) 25482252 (5.87917/119.97418) http://www.openstreetmap.org/?lat=5.87627&lon=119.97351&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482807 (5.86166/119.97585) 25482526 (5.86166/119.97169) http://www.openstreetmap.org/?lat=5.86166&lon=119.97585&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482436 (5.44167/120.73584) 25482249 (5.44167/120.73084) http://www.openstreetmap.org/?lat=5.44167&lon=120.73584&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25484350 (5.22501/120.30918) 25483099 (5.22417/120.30752) http://www.openstreetmap.org/?lat=5.22501&lon=120.30918&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482846 (5.25166/119.93586) 25483744 (5.24333/119.93502) http://www.openstreetmap.org/?lat=5.25166&lon=119.93586&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482950 (5.39999/120.59001) 25482674 (5.39999/120.58918) http://www.openstreetmap.org/?lat=5.39999&lon=120.59001&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25483220 (5.82666/120.77835) 25483251 (5.82666/120.77500) http://www.openstreetmap.org/?lat=5.82666&lon=120.77835&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482392 (5.91916/120.12003) 25482997 (5.92000/120.11752) http://www.openstreetmap.org/?lat=5.91916&lon=120.12003&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25483416 (5.39000/120.36919) 25484097 (5.38834/120.36336) http://www.openstreetmap.org/?lat=5.39000&lon=120.36919&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482546 (5.29249/120.57250) 25484040 (5.29249/120.56585) http://www.openstreetmap.org/?lat=5.29249&lon=120.57250&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25493526 (6.51751/121.77499) 25487650 (6.51751/121.77418) http://www.openstreetmap.org/?lat=6.51751&lon=121.77499&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25489332 (6.21000/120.84667) 25485286 (6.21000/120.84583) http://www.openstreetmap.org/?lat=6.21000&lon=120.84667&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25486431 (6.61583/121.51499) 25486413 (6.61334/121.51166) http://www.openstreetmap.org/?lat=6.61583&lon=121.51499&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25488011 (6.17584/120.96250) 25490139 (6.17584/120.96001) http://www.openstreetmap.org/?lat=6.17584&lon=120.96250&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25491254 (6.53332/121.75583) 25488772 (6.53332/121.75499) http://www.openstreetmap.org/?lat=6.53332&lon=121.75583&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25488150 (6.73249/122.39918) 25489349 (6.73249/122.39834) http://www.openstreetmap.org/?lat=6.73249&lon=122.39918&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25493946 (6.16166/121.00666) 25492403 (6.16166/121.00584) http://www.openstreetmap.org/?lat=6.16166&lon=121.00666&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25493475 (6.27667/121.97249) 25491403 (6.27667/121.97084) http://www.openstreetmap.org/?lat=6.27667&lon=121.97249&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25485643 (6.73333/121.46499) 25487693 (6.73333/121.45834) http://www.openstreetmap.org/?lat=6.73333&lon=121.46499&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25517415 (5.48917/120.93917) 25537803 (5.48917/120.93334) http://www.openstreetmap.org/?lat=5.48917&lon=120.93917&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25514818 (6.81416/121.54417) 25511790 (6.81333/121.54334) http://www.openstreetmap.org/?lat=6.81416&lon=121.54417&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25536758 (6.88916/121.59084) 25536706 (6.88916/121.58666) http://www.openstreetmap.org/?lat=6.88916&lon=121.59084&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25512782 (6.87916/122.04499) 25536609 (6.87916/122.04334) http://www.openstreetmap.org/?lat=6.87916&lon=122.04499&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25520936 (5.48834/120.85667) 25539998 (5.48834/120.85500) http://www.openstreetmap.org/?lat=5.48834&lon=120.85667&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25513371 (6.76168/122.36667) 25511594 (6.76168/122.36583) http://www.openstreetmap.org/?lat=6.76168&lon=122.36667&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25515812 (5.48750/120.92417) 25540736 (5.48750/120.91666) http://www.openstreetmap.org/?lat=5.48750&lon=120.92417&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25561240 (6.05166/121.44416) 25559059 (6.04918/121.44334) http://www.openstreetmap.org/?lat=6.05166&lon=121.44416&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25563588 (5.99167/121.66667) 25557738 (5.99167/121.66500) http://www.openstreetmap.org/?lat=5.99167&lon=121.66667&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25558232 (6.10501/120.96082) 25566906 (6.10501/120.95001) http://www.openstreetmap.org/?lat=6.10501&lon=120.96082&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25558173 (5.99416/121.52334) 25560373 (5.99416/121.52166) http://www.openstreetmap.org/?lat=5.99416&lon=121.52334&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25567025 (5.78166/121.16667) 25564285 (5.78171/121.14905) http://www.openstreetmap.org/?lat=5.78166&lon=121.16667&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25571419 (6.01750/121.90166) 25558379 (6.01750/121.89917) http://www.openstreetmap.org/?lat=6.01750&lon=121.90166&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26075546 (5.17166/120.27169) 26075100 (5.17166/120.26918) http://www.openstreetmap.org/?lat=5.17166&lon=120.27169&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26071841 (5.22417/120.63668) 26073648 (5.22417/120.63417) http://www.openstreetmap.org/?lat=5.22417&lon=120.63668&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26076899 (5.18250/120.34336) 26072026 (5.18250/120.34085) http://www.openstreetmap.org/?lat=5.18250&lon=120.34336&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26078823 (5.01500/120.21152) 26073367 (5.01500/120.20418) http://www.openstreetmap.org/?lat=5.01500&lon=120.21152&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25594395 (5.06332/120.25753) 26071979 (5.06332/120.25169) http://www.openstreetmap.org/?lat=5.06332&lon=120.25753&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25593711 (5.16250/120.26253) 26077889 (5.16250/120.26169) http://www.openstreetmap.org/?lat=5.16250&lon=120.26253&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26073531 (5.15083/120.28253) 26078557 (5.15083/120.27918) http://www.openstreetmap.org/?lat=5.15083&lon=120.28253&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26073086 (5.08251/120.28334) 25592917 (5.08251/120.28253) http://www.openstreetmap.org/?lat=5.08251&lon=120.28334&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26103169 (6.13917/120.47668) 26096990 (6.13917/120.47168) http://www.openstreetmap.org/?lat=6.13917&lon=120.47668&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26100186 (6.10333/120.50918) 26094433 (6.10333/120.50086) http://www.openstreetmap.org/?lat=6.10333&lon=120.50918&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26088448 (6.05250/120.48502) 26088604 (6.05334/120.48002) http://www.openstreetmap.org/?lat=6.05250&lon=120.48502&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26223447 (11.57386/123.33396) 26220681 (11.57470/123.32812) http://www.openstreetmap.org/?lat=11.57386&lon=123.33396&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26226628 (11.42615/123.26576) 26221150 (11.42780/123.25160) http://www.openstreetmap.org/?lat=11.42615&lon=123.26576&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26226583 (11.23584/123.21167) 26225045 (11.23833/123.20167) http://www.openstreetmap.org/?lat=11.23584&lon=123.21167&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26216777 (11.42844/123.18292) 26222166 (11.42761/123.17792) http://www.openstreetmap.org/?lat=11.42844&lon=123.18292&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26217947 (11.46237/123.22469) 26221567 (11.46237/123.20637) http://www.openstreetmap.org/?lat=11.46237&lon=123.22469&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26215856 (11.61060/123.35207) 26215046 (11.61060/123.34623) http://www.openstreetmap.org/?lat=11.61060&lon=123.35207&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26273248 (11.54667/119.84833) 26278335 (11.54667/119.84668) http://www.openstreetmap.org/?lat=11.54667&lon=119.84833&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26274794 (11.63583/119.96834) 26275724 (11.63583/119.96167) http://www.openstreetmap.org/?lat=11.63583&lon=119.96834&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26273533 (11.43666/120.16917) 26275804 (11.43666/120.16668) http://www.openstreetmap.org/?lat=11.43666&lon=120.16917&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26276046 (11.67418/120.04417) 26276584 (11.67250/120.04334) http://www.openstreetmap.org/?lat=11.67418&lon=120.04417&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26274921 (11.64834/120.11084) 26277097 (11.64918/120.11001) http://www.openstreetmap.org/?lat=11.64834&lon=120.11084&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26276662 (12.78622/122.06304) 26273353 (12.78540/122.04233) http://www.openstreetmap.org/?lat=12.78622&lon=122.06304&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26298944 (12.36262/119.90517) 26293890 (12.36237/119.89646) http://www.openstreetmap.org/?lat=12.36262&lon=119.90517&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26299439 (11.74417/120.17168) 26297305 (11.74417/120.17084) http://www.openstreetmap.org/?lat=11.74417&lon=120.17168&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 27056324 (11.04124/123.20641) 27068628 (11.04124/123.20141) http://www.openstreetmap.org/?lat=11.04124&lon=123.20641&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299436332 (4.64468/119.46535) 299436357 (4.64878/119.45540) http://www.openstreetmap.org/?lat=4.64468&lon=119.46535&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299436583 (4.89529/119.40596) 299436594 (4.87581/119.40647) http://www.openstreetmap.org/?lat=4.89529&lon=119.40596&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299436764 (4.86263/119.41557) 299436770 (4.84774/119.41437) http://www.openstreetmap.org/?lat=4.86263&lon=119.41557&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299437026 (4.64228/119.39308) 299437030 (4.64812/119.39909) http://www.openstreetmap.org/?lat=4.64228&lon=119.39308&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299437060 (4.62260/119.38313) 299437063 (4.61576/119.39068) http://www.openstreetmap.org/?lat=4.62260&lon=119.38313&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 304783278 (9.27654/120.81807) 304783297 (9.28100/120.81706) http://www.openstreetmap.org/?lat=9.27654&lon=120.81807&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 304787589 (7.84231/118.43745) 304787612 (7.84956/118.43745) http://www.openstreetmap.org/?lat=7.84231&lon=118.43745&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 316796770 (10.90936/121.01312) 316796778 (10.90987/121.01621) http://www.openstreetmap.org/?lat=10.90936&lon=121.01312&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 353175666 (11.97593/121.56007) 353175756 (11.99042/121.55812) http://www.openstreetmap.org/?lat=11.97593&lon=121.56007&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25569562 (6.14333/121.79667) 25487586 (6.15833/121.79667) http://www.openstreetmap.org/?lat=6.14333&lon=121.79667&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25487222 (6.40417/121.96667) 25492040 (6.40417/121.96416) http://www.openstreetmap.org/?lat=6.40417&lon=121.96667&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26078582 (5.04916/119.85335) 26076369 (5.04916/119.85170) http://www.openstreetmap.org/?lat=5.04916&lon=119.85335&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407401 (10.44583/119.80666) 25405467 (10.44583/119.80582) http://www.openstreetmap.org/?lat=10.44583&lon=119.80666&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26296998 (11.96250/120.09917) 26298180 (11.96250/120.09833) http://www.openstreetmap.org/?lat=11.96250&lon=120.09917&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25519287 (5.36832/125.37417) 25537154 (5.36832/125.36999) http://www.openstreetmap.org/?lat=5.36832&lon=125.37417&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26218851 (12.59001/125.14501) 26221655 (12.59001/125.14168) http://www.openstreetmap.org/?lat=12.59001&lon=125.14501&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26324762 (10.75145/125.96748) 26326885 (10.75847/125.94630) http://www.openstreetmap.org/?lat=10.75145&lon=125.96748&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26331744 (10.97553/125.64566) 26332556 (10.97553/125.63649) http://www.openstreetmap.org/?lat=10.97553&lon=125.64566&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26326364 (10.92384/125.83899) 26331596 (10.92283/125.83590) http://www.openstreetmap.org/?lat=10.92384&lon=125.83899&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26322596 (9.85167/125.94999) 26327666 (9.85583/125.93834) http://www.openstreetmap.org/?lat=9.85167&lon=125.94999&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26327504 (10.69098/125.77099) 26321471 (10.69098/125.74932) http://www.openstreetmap.org/?lat=10.69098&lon=125.77099&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26327995 (9.90834/125.27500) 26324872 (9.92917/125.30251) http://www.openstreetmap.org/?lat=9.90834&lon=125.27500&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26332902 (9.93166/125.30251) 26331738 (9.90834/125.26667) http://www.openstreetmap.org/?lat=9.93166&lon=125.30251&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26137008 (13.77578/120.31218) 355857074 (13.77542/120.31119) http://www.openstreetmap.org/?lat=13.77578&lon=120.31218&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26181890 (13.64549/120.42099) 26170175 (13.68017/120.31366) http://www.openstreetmap.org/?lat=13.64549&lon=120.42099&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26141708 (13.67154/120.27139) 355857600 (13.67184/120.26736) http://www.openstreetmap.org/?lat=13.67154&lon=120.27139&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 355857441 (13.67987/120.30570) 26175623 (13.62751/120.41580) http://www.openstreetmap.org/?lat=13.67987&lon=120.30570&zoom=17 SEVERE (Main): java.util.concurrent.ExecutionException: java.util.NoSuchElementException java.util.concurrent.ExecutionException: java.util.NoSuchElementException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:289) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Caused by: java.util.NoSuchElementException at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1115) at java.util.TreeMap$KeyIterator.next(TreeMap.java:1171) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.generateSeaPolygon(Osm5XmlHandler.java:860) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endDocument(Osm5XmlHandler.java:459) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:740) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1122) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:491) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525) at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:80) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:148) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:168) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:166) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Exiting - if you want to carry on regardless, use the --keep-going option real 22m47.259s user 19m25.413s sys 0m7.268s On Sat, Aug 8, 2009 at 9:23 PM, Dermot McNally<dermotm@gmail.com> wrote:
OK, I've located a flooded island, I've grabbed a screenshot to illustrate the artefacts I described in my last mail. This is all fairly tolerable stuff, so I'm going to keep using the patched version.
Dermot
-- -------------------------------------- Iren sind menschlich
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Another test: This time, I used the unsplitted data for the whole Phil. The process was completed. Small islands with incomplete coastlines are "flooded" with sea water. I am using cloudmade's extract. I notice incomplete coastlines in most of my cloudmade downloads, although, I'm quite sure the dbase is OK. It also seems to have better memory management now :) sample syntax below: time java -Xmx1512m -jar /home/maning/osm/routable_garmin/mkgmap/trunk/dist/mkgmap.jar --code-page=1252 --tdbfile --latin1 --country-abbr=PHI --country-name=PHILIPPINES --remove-short-arcs --route --road-name-pois --add-pois-to-areas --location-autofill=2 --family-id=639 --family-name="OSM_PHIL" --overview-mapname=40000001 --series-name="OSM_PHIL" --description="OSM_PHIL" --style-file=/home/maning/osm/routable_garmin/svn/styles/experimental_master_style --generate-sea /home/maning/osm/cloudmade/20090729/philippines.osm SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25362802 (8.75082/123.23167) 25357549 (8.75082/123.22667) http://www.openstreetmap.org/?lat=8.75082&lon=123.23167&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25384684 (11.00126/120.77509) 25382032 (11.00212/120.76698) http://www.openstreetmap.org/?lat=11.00126&lon=120.77509&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25387627 (11.06499/119.73418) 25379361 (11.06499/119.73334) http://www.openstreetmap.org/?lat=11.06499&lon=119.73418&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25385540 (10.69667/120.26583) 25386877 (10.69667/120.25916) http://www.openstreetmap.org/?lat=10.69667&lon=120.26583&zoom=17 SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407757 (11.00440/120.82420) 25407607 (11.00467/120.81835) http://www.openstreetmap.org/?lat=11.00440&lon=120.82420&zoom=17 On Sat, Aug 8, 2009 at 11:42 PM, maning sambale<emmanuel.sambale@gmail.com> wrote:
Testing results:
1. coastline.osm from cloudmade - sea areas ae generated except for islands with incomplete coastlines! 2. smaller osm file with incomplete coastline - all areas blue 3. philippine.osm splitted to 8 .osm.gz - mkgmap process incomplete
time java -Xmx1512m -jar /home/maning/osm/routable_garmin/mkgmap/trunk/dist/mkgmap.jar --code-page=1252 --tdbfile --latin1 --country-abbr=PHI --country-name=PHILIPPINES --remove-short-arcs --route --road-name-pois --add-pois-to-areas --location-autofill=2 --family-id=639 --family-name="OSM_PHIL" --overview-mapname=40000001 --series-name="OSM_PHIL" --description="OSM_PHIL" --generate-sea /home/maning/osm/20090713/split_file/*.osm.gz SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25362802 (8.75082/123.23167) 25357549 (8.75082/123.22667) http://www.openstreetmap.org/?lat=8.75082&lon=123.23167&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25384684 (11.00126/120.77509) 25382032 (11.00212/120.76698) http://www.openstreetmap.org/?lat=11.00126&lon=120.77509&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25387627 (11.06499/119.73418) 25379361 (11.06499/119.73334) http://www.openstreetmap.org/?lat=11.06499&lon=119.73418&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25385540 (10.69667/120.26583) 25386877 (10.69667/120.25916) http://www.openstreetmap.org/?lat=10.69667&lon=120.26583&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407757 (11.00440/120.82420) 25407607 (11.00467/120.81835) http://www.openstreetmap.org/?lat=11.00440&lon=120.82420&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25412434 (9.59418/121.24917) 25408487 (9.59083/121.23750) http://www.openstreetmap.org/?lat=9.59418&lon=121.24917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25410226 (10.75373/121.06964) 25410600 (10.75654/121.06601) http://www.openstreetmap.org/?lat=10.75373&lon=121.06964&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407126 (10.96981/120.95033) 25409456 (10.96981/120.94784) http://www.openstreetmap.org/?lat=10.96981&lon=120.95033&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407836 (10.79877/121.04159) 25402097 (10.79877/121.02743) http://www.openstreetmap.org/?lat=10.79877&lon=121.04159&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25424704 (9.59499/121.25917) 25410956 (9.59499/121.25834) http://www.openstreetmap.org/?lat=9.59499&lon=121.25917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25405808 (10.72193/120.90516) 25411997 (10.72193/120.90349) http://www.openstreetmap.org/?lat=10.72193&lon=120.90516&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 353175334 (11.82938/121.49177) 353175368 (11.82949/121.47289) http://www.openstreetmap.org/?lat=11.82938&lon=121.49177&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25467849 (12.03207/121.95414) 25466837 (12.03207/121.94747) http://www.openstreetmap.org/?lat=12.03207&lon=121.95414&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25460738 (11.23249/120.93501) 25467032 (11.23249/120.92917) http://www.openstreetmap.org/?lat=11.23249&lon=120.93501&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25466438 (11.99033/121.39483) 25464047 (11.99065/121.38315) http://www.openstreetmap.org/?lat=11.99033&lon=121.39483&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25484039 (5.87627/119.97351) 25482252 (5.87917/119.97418) http://www.openstreetmap.org/?lat=5.87627&lon=119.97351&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482807 (5.86166/119.97585) 25482526 (5.86166/119.97169) http://www.openstreetmap.org/?lat=5.86166&lon=119.97585&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482436 (5.44167/120.73584) 25482249 (5.44167/120.73084) http://www.openstreetmap.org/?lat=5.44167&lon=120.73584&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25484350 (5.22501/120.30918) 25483099 (5.22417/120.30752) http://www.openstreetmap.org/?lat=5.22501&lon=120.30918&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482846 (5.25166/119.93586) 25483744 (5.24333/119.93502) http://www.openstreetmap.org/?lat=5.25166&lon=119.93586&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482950 (5.39999/120.59001) 25482674 (5.39999/120.58918) http://www.openstreetmap.org/?lat=5.39999&lon=120.59001&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25483220 (5.82666/120.77835) 25483251 (5.82666/120.77500) http://www.openstreetmap.org/?lat=5.82666&lon=120.77835&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482392 (5.91916/120.12003) 25482997 (5.92000/120.11752) http://www.openstreetmap.org/?lat=5.91916&lon=120.12003&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25483416 (5.39000/120.36919) 25484097 (5.38834/120.36336) http://www.openstreetmap.org/?lat=5.39000&lon=120.36919&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482546 (5.29249/120.57250) 25484040 (5.29249/120.56585) http://www.openstreetmap.org/?lat=5.29249&lon=120.57250&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25493526 (6.51751/121.77499) 25487650 (6.51751/121.77418) http://www.openstreetmap.org/?lat=6.51751&lon=121.77499&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25489332 (6.21000/120.84667) 25485286 (6.21000/120.84583) http://www.openstreetmap.org/?lat=6.21000&lon=120.84667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25486431 (6.61583/121.51499) 25486413 (6.61334/121.51166) http://www.openstreetmap.org/?lat=6.61583&lon=121.51499&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25488011 (6.17584/120.96250) 25490139 (6.17584/120.96001) http://www.openstreetmap.org/?lat=6.17584&lon=120.96250&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25491254 (6.53332/121.75583) 25488772 (6.53332/121.75499) http://www.openstreetmap.org/?lat=6.53332&lon=121.75583&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25488150 (6.73249/122.39918) 25489349 (6.73249/122.39834) http://www.openstreetmap.org/?lat=6.73249&lon=122.39918&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25493946 (6.16166/121.00666) 25492403 (6.16166/121.00584) http://www.openstreetmap.org/?lat=6.16166&lon=121.00666&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25493475 (6.27667/121.97249) 25491403 (6.27667/121.97084) http://www.openstreetmap.org/?lat=6.27667&lon=121.97249&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25485643 (6.73333/121.46499) 25487693 (6.73333/121.45834) http://www.openstreetmap.org/?lat=6.73333&lon=121.46499&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25517415 (5.48917/120.93917) 25537803 (5.48917/120.93334) http://www.openstreetmap.org/?lat=5.48917&lon=120.93917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25514818 (6.81416/121.54417) 25511790 (6.81333/121.54334) http://www.openstreetmap.org/?lat=6.81416&lon=121.54417&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25536758 (6.88916/121.59084) 25536706 (6.88916/121.58666) http://www.openstreetmap.org/?lat=6.88916&lon=121.59084&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25512782 (6.87916/122.04499) 25536609 (6.87916/122.04334) http://www.openstreetmap.org/?lat=6.87916&lon=122.04499&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25520936 (5.48834/120.85667) 25539998 (5.48834/120.85500) http://www.openstreetmap.org/?lat=5.48834&lon=120.85667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25513371 (6.76168/122.36667) 25511594 (6.76168/122.36583) http://www.openstreetmap.org/?lat=6.76168&lon=122.36667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25515812 (5.48750/120.92417) 25540736 (5.48750/120.91666) http://www.openstreetmap.org/?lat=5.48750&lon=120.92417&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25561240 (6.05166/121.44416) 25559059 (6.04918/121.44334) http://www.openstreetmap.org/?lat=6.05166&lon=121.44416&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25563588 (5.99167/121.66667) 25557738 (5.99167/121.66500) http://www.openstreetmap.org/?lat=5.99167&lon=121.66667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25558232 (6.10501/120.96082) 25566906 (6.10501/120.95001) http://www.openstreetmap.org/?lat=6.10501&lon=120.96082&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25558173 (5.99416/121.52334) 25560373 (5.99416/121.52166) http://www.openstreetmap.org/?lat=5.99416&lon=121.52334&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25567025 (5.78166/121.16667) 25564285 (5.78171/121.14905) http://www.openstreetmap.org/?lat=5.78166&lon=121.16667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25571419 (6.01750/121.90166) 25558379 (6.01750/121.89917) http://www.openstreetmap.org/?lat=6.01750&lon=121.90166&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26075546 (5.17166/120.27169) 26075100 (5.17166/120.26918) http://www.openstreetmap.org/?lat=5.17166&lon=120.27169&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26071841 (5.22417/120.63668) 26073648 (5.22417/120.63417) http://www.openstreetmap.org/?lat=5.22417&lon=120.63668&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26076899 (5.18250/120.34336) 26072026 (5.18250/120.34085) http://www.openstreetmap.org/?lat=5.18250&lon=120.34336&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26078823 (5.01500/120.21152) 26073367 (5.01500/120.20418) http://www.openstreetmap.org/?lat=5.01500&lon=120.21152&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25594395 (5.06332/120.25753) 26071979 (5.06332/120.25169) http://www.openstreetmap.org/?lat=5.06332&lon=120.25753&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25593711 (5.16250/120.26253) 26077889 (5.16250/120.26169) http://www.openstreetmap.org/?lat=5.16250&lon=120.26253&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26073531 (5.15083/120.28253) 26078557 (5.15083/120.27918) http://www.openstreetmap.org/?lat=5.15083&lon=120.28253&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26073086 (5.08251/120.28334) 25592917 (5.08251/120.28253) http://www.openstreetmap.org/?lat=5.08251&lon=120.28334&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26103169 (6.13917/120.47668) 26096990 (6.13917/120.47168) http://www.openstreetmap.org/?lat=6.13917&lon=120.47668&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26100186 (6.10333/120.50918) 26094433 (6.10333/120.50086) http://www.openstreetmap.org/?lat=6.10333&lon=120.50918&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26088448 (6.05250/120.48502) 26088604 (6.05334/120.48002) http://www.openstreetmap.org/?lat=6.05250&lon=120.48502&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26223447 (11.57386/123.33396) 26220681 (11.57470/123.32812) http://www.openstreetmap.org/?lat=11.57386&lon=123.33396&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26226628 (11.42615/123.26576) 26221150 (11.42780/123.25160) http://www.openstreetmap.org/?lat=11.42615&lon=123.26576&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26226583 (11.23584/123.21167) 26225045 (11.23833/123.20167) http://www.openstreetmap.org/?lat=11.23584&lon=123.21167&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26216777 (11.42844/123.18292) 26222166 (11.42761/123.17792) http://www.openstreetmap.org/?lat=11.42844&lon=123.18292&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26217947 (11.46237/123.22469) 26221567 (11.46237/123.20637) http://www.openstreetmap.org/?lat=11.46237&lon=123.22469&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26215856 (11.61060/123.35207) 26215046 (11.61060/123.34623) http://www.openstreetmap.org/?lat=11.61060&lon=123.35207&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26273248 (11.54667/119.84833) 26278335 (11.54667/119.84668) http://www.openstreetmap.org/?lat=11.54667&lon=119.84833&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26274794 (11.63583/119.96834) 26275724 (11.63583/119.96167) http://www.openstreetmap.org/?lat=11.63583&lon=119.96834&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26273533 (11.43666/120.16917) 26275804 (11.43666/120.16668) http://www.openstreetmap.org/?lat=11.43666&lon=120.16917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26276046 (11.67418/120.04417) 26276584 (11.67250/120.04334) http://www.openstreetmap.org/?lat=11.67418&lon=120.04417&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26274921 (11.64834/120.11084) 26277097 (11.64918/120.11001) http://www.openstreetmap.org/?lat=11.64834&lon=120.11084&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26276662 (12.78622/122.06304) 26273353 (12.78540/122.04233) http://www.openstreetmap.org/?lat=12.78622&lon=122.06304&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26298944 (12.36262/119.90517) 26293890 (12.36237/119.89646) http://www.openstreetmap.org/?lat=12.36262&lon=119.90517&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26299439 (11.74417/120.17168) 26297305 (11.74417/120.17084) http://www.openstreetmap.org/?lat=11.74417&lon=120.17168&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 27056324 (11.04124/123.20641) 27068628 (11.04124/123.20141) http://www.openstreetmap.org/?lat=11.04124&lon=123.20641&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299436332 (4.64468/119.46535) 299436357 (4.64878/119.45540) http://www.openstreetmap.org/?lat=4.64468&lon=119.46535&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299436583 (4.89529/119.40596) 299436594 (4.87581/119.40647) http://www.openstreetmap.org/?lat=4.89529&lon=119.40596&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299436764 (4.86263/119.41557) 299436770 (4.84774/119.41437) http://www.openstreetmap.org/?lat=4.86263&lon=119.41557&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299437026 (4.64228/119.39308) 299437030 (4.64812/119.39909) http://www.openstreetmap.org/?lat=4.64228&lon=119.39308&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299437060 (4.62260/119.38313) 299437063 (4.61576/119.39068) http://www.openstreetmap.org/?lat=4.62260&lon=119.38313&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 304783278 (9.27654/120.81807) 304783297 (9.28100/120.81706) http://www.openstreetmap.org/?lat=9.27654&lon=120.81807&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 304787589 (7.84231/118.43745) 304787612 (7.84956/118.43745) http://www.openstreetmap.org/?lat=7.84231&lon=118.43745&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 316796770 (10.90936/121.01312) 316796778 (10.90987/121.01621) http://www.openstreetmap.org/?lat=10.90936&lon=121.01312&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 353175666 (11.97593/121.56007) 353175756 (11.99042/121.55812) http://www.openstreetmap.org/?lat=11.97593&lon=121.56007&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25569562 (6.14333/121.79667) 25487586 (6.15833/121.79667) http://www.openstreetmap.org/?lat=6.14333&lon=121.79667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25487222 (6.40417/121.96667) 25492040 (6.40417/121.96416) http://www.openstreetmap.org/?lat=6.40417&lon=121.96667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26078582 (5.04916/119.85335) 26076369 (5.04916/119.85170) http://www.openstreetmap.org/?lat=5.04916&lon=119.85335&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407401 (10.44583/119.80666) 25405467 (10.44583/119.80582) http://www.openstreetmap.org/?lat=10.44583&lon=119.80666&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26296998 (11.96250/120.09917) 26298180 (11.96250/120.09833) http://www.openstreetmap.org/?lat=11.96250&lon=120.09917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25519287 (5.36832/125.37417) 25537154 (5.36832/125.36999) http://www.openstreetmap.org/?lat=5.36832&lon=125.37417&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26218851 (12.59001/125.14501) 26221655 (12.59001/125.14168) http://www.openstreetmap.org/?lat=12.59001&lon=125.14501&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26324762 (10.75145/125.96748) 26326885 (10.75847/125.94630) http://www.openstreetmap.org/?lat=10.75145&lon=125.96748&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26331744 (10.97553/125.64566) 26332556 (10.97553/125.63649) http://www.openstreetmap.org/?lat=10.97553&lon=125.64566&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26326364 (10.92384/125.83899) 26331596 (10.92283/125.83590) http://www.openstreetmap.org/?lat=10.92384&lon=125.83899&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26322596 (9.85167/125.94999) 26327666 (9.85583/125.93834) http://www.openstreetmap.org/?lat=9.85167&lon=125.94999&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26327504 (10.69098/125.77099) 26321471 (10.69098/125.74932) http://www.openstreetmap.org/?lat=10.69098&lon=125.77099&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26327995 (9.90834/125.27500) 26324872 (9.92917/125.30251) http://www.openstreetmap.org/?lat=9.90834&lon=125.27500&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26332902 (9.93166/125.30251) 26331738 (9.90834/125.26667) http://www.openstreetmap.org/?lat=9.93166&lon=125.30251&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26137008 (13.77578/120.31218) 355857074 (13.77542/120.31119) http://www.openstreetmap.org/?lat=13.77578&lon=120.31218&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26181890 (13.64549/120.42099) 26170175 (13.68017/120.31366) http://www.openstreetmap.org/?lat=13.64549&lon=120.42099&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26141708 (13.67154/120.27139) 355857600 (13.67184/120.26736) http://www.openstreetmap.org/?lat=13.67154&lon=120.27139&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 355857441 (13.67987/120.30570) 26175623 (13.62751/120.41580) http://www.openstreetmap.org/?lat=13.67987&lon=120.30570&zoom=17
SEVERE (Main): java.util.concurrent.ExecutionException: java.util.NoSuchElementException java.util.concurrent.ExecutionException: java.util.NoSuchElementException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:289) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Caused by: java.util.NoSuchElementException at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1115) at java.util.TreeMap$KeyIterator.next(TreeMap.java:1171) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.generateSeaPolygon(Osm5XmlHandler.java:860) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endDocument(Osm5XmlHandler.java:459) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:740) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1122) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:491) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525) at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:80) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:148) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:168) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:166) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Exiting - if you want to carry on regardless, use the --keep-going option
real 22m47.259s user 19m25.413s sys 0m7.268s
On Sat, Aug 8, 2009 at 9:23 PM, Dermot McNally<dermotm@gmail.com> wrote:
OK, I've located a flooded island, I've grabbed a screenshot to illustrate the artefacts I described in my last mail. This is all fairly tolerable stuff, so I'm going to keep using the patched version.
Dermot
-- -------------------------------------- Iren sind menschlich
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Another test using he new splitter: SEVERE (Main): java.util.concurrent.ExecutionException: java.util.NoSuchElementException java.util.concurrent.ExecutionException: java.util.NoSuchElementException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:289) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Caused by: java.util.NoSuchElementException at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1115) at java.util.TreeMap$KeyIterator.next(TreeMap.java:1171) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.generateSeaPolygon(Osm5XmlHandler.java:860) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endDocument(Osm5XmlHandler.java:459) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:740) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1122) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:491) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525) at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:80) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:148) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:168) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:166) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Exiting - if you want to carry on regardless, use the --keep-going option Command exited with non-zero status 1 917.28user 2.34system 15:21.04elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k 7232inputs+16304outputs (26major+34882minor)pagefaults 0swaps On Sun, Aug 9, 2009 at 7:13 AM, maning sambale<emmanuel.sambale@gmail.com> wrote:
Another test: This time, I used the unsplitted data for the whole Phil. The process was completed. Small islands with incomplete coastlines are "flooded" with sea water. I am using cloudmade's extract. I notice incomplete coastlines in most of my cloudmade downloads, although, I'm quite sure the dbase is OK.
It also seems to have better memory management now :)
sample syntax below: time java -Xmx1512m -jar /home/maning/osm/routable_garmin/mkgmap/trunk/dist/mkgmap.jar --code-page=1252 --tdbfile --latin1 --country-abbr=PHI --country-name=PHILIPPINES --remove-short-arcs --route --road-name-pois --add-pois-to-areas --location-autofill=2 --family-id=639 --family-name="OSM_PHIL" --overview-mapname=40000001 --series-name="OSM_PHIL" --description="OSM_PHIL" --style-file=/home/maning/osm/routable_garmin/svn/styles/experimental_master_style --generate-sea /home/maning/osm/cloudmade/20090729/philippines.osm SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25362802 (8.75082/123.23167) 25357549 (8.75082/123.22667) http://www.openstreetmap.org/?lat=8.75082&lon=123.23167&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25384684 (11.00126/120.77509) 25382032 (11.00212/120.76698) http://www.openstreetmap.org/?lat=11.00126&lon=120.77509&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25387627 (11.06499/119.73418) 25379361 (11.06499/119.73334) http://www.openstreetmap.org/?lat=11.06499&lon=119.73418&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25385540 (10.69667/120.26583) 25386877 (10.69667/120.25916) http://www.openstreetmap.org/?lat=10.69667&lon=120.26583&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407757 (11.00440/120.82420) 25407607 (11.00467/120.81835) http://www.openstreetmap.org/?lat=11.00440&lon=120.82420&zoom=17
On Sat, Aug 8, 2009 at 11:42 PM, maning sambale<emmanuel.sambale@gmail.com> wrote:
Testing results:
1. coastline.osm from cloudmade - sea areas ae generated except for islands with incomplete coastlines! 2. smaller osm file with incomplete coastline - all areas blue 3. philippine.osm splitted to 8 .osm.gz - mkgmap process incomplete
time java -Xmx1512m -jar /home/maning/osm/routable_garmin/mkgmap/trunk/dist/mkgmap.jar --code-page=1252 --tdbfile --latin1 --country-abbr=PHI --country-name=PHILIPPINES --remove-short-arcs --route --road-name-pois --add-pois-to-areas --location-autofill=2 --family-id=639 --family-name="OSM_PHIL" --overview-mapname=40000001 --series-name="OSM_PHIL" --description="OSM_PHIL" --generate-sea /home/maning/osm/20090713/split_file/*.osm.gz SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25362802 (8.75082/123.23167) 25357549 (8.75082/123.22667) http://www.openstreetmap.org/?lat=8.75082&lon=123.23167&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25384684 (11.00126/120.77509) 25382032 (11.00212/120.76698) http://www.openstreetmap.org/?lat=11.00126&lon=120.77509&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25387627 (11.06499/119.73418) 25379361 (11.06499/119.73334) http://www.openstreetmap.org/?lat=11.06499&lon=119.73418&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25385540 (10.69667/120.26583) 25386877 (10.69667/120.25916) http://www.openstreetmap.org/?lat=10.69667&lon=120.26583&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407757 (11.00440/120.82420) 25407607 (11.00467/120.81835) http://www.openstreetmap.org/?lat=11.00440&lon=120.82420&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25412434 (9.59418/121.24917) 25408487 (9.59083/121.23750) http://www.openstreetmap.org/?lat=9.59418&lon=121.24917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25410226 (10.75373/121.06964) 25410600 (10.75654/121.06601) http://www.openstreetmap.org/?lat=10.75373&lon=121.06964&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407126 (10.96981/120.95033) 25409456 (10.96981/120.94784) http://www.openstreetmap.org/?lat=10.96981&lon=120.95033&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407836 (10.79877/121.04159) 25402097 (10.79877/121.02743) http://www.openstreetmap.org/?lat=10.79877&lon=121.04159&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25424704 (9.59499/121.25917) 25410956 (9.59499/121.25834) http://www.openstreetmap.org/?lat=9.59499&lon=121.25917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25405808 (10.72193/120.90516) 25411997 (10.72193/120.90349) http://www.openstreetmap.org/?lat=10.72193&lon=120.90516&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 353175334 (11.82938/121.49177) 353175368 (11.82949/121.47289) http://www.openstreetmap.org/?lat=11.82938&lon=121.49177&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25467849 (12.03207/121.95414) 25466837 (12.03207/121.94747) http://www.openstreetmap.org/?lat=12.03207&lon=121.95414&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25460738 (11.23249/120.93501) 25467032 (11.23249/120.92917) http://www.openstreetmap.org/?lat=11.23249&lon=120.93501&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25466438 (11.99033/121.39483) 25464047 (11.99065/121.38315) http://www.openstreetmap.org/?lat=11.99033&lon=121.39483&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25484039 (5.87627/119.97351) 25482252 (5.87917/119.97418) http://www.openstreetmap.org/?lat=5.87627&lon=119.97351&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482807 (5.86166/119.97585) 25482526 (5.86166/119.97169) http://www.openstreetmap.org/?lat=5.86166&lon=119.97585&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482436 (5.44167/120.73584) 25482249 (5.44167/120.73084) http://www.openstreetmap.org/?lat=5.44167&lon=120.73584&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25484350 (5.22501/120.30918) 25483099 (5.22417/120.30752) http://www.openstreetmap.org/?lat=5.22501&lon=120.30918&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482846 (5.25166/119.93586) 25483744 (5.24333/119.93502) http://www.openstreetmap.org/?lat=5.25166&lon=119.93586&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482950 (5.39999/120.59001) 25482674 (5.39999/120.58918) http://www.openstreetmap.org/?lat=5.39999&lon=120.59001&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25483220 (5.82666/120.77835) 25483251 (5.82666/120.77500) http://www.openstreetmap.org/?lat=5.82666&lon=120.77835&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482392 (5.91916/120.12003) 25482997 (5.92000/120.11752) http://www.openstreetmap.org/?lat=5.91916&lon=120.12003&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25483416 (5.39000/120.36919) 25484097 (5.38834/120.36336) http://www.openstreetmap.org/?lat=5.39000&lon=120.36919&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25482546 (5.29249/120.57250) 25484040 (5.29249/120.56585) http://www.openstreetmap.org/?lat=5.29249&lon=120.57250&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25493526 (6.51751/121.77499) 25487650 (6.51751/121.77418) http://www.openstreetmap.org/?lat=6.51751&lon=121.77499&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25489332 (6.21000/120.84667) 25485286 (6.21000/120.84583) http://www.openstreetmap.org/?lat=6.21000&lon=120.84667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25486431 (6.61583/121.51499) 25486413 (6.61334/121.51166) http://www.openstreetmap.org/?lat=6.61583&lon=121.51499&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25488011 (6.17584/120.96250) 25490139 (6.17584/120.96001) http://www.openstreetmap.org/?lat=6.17584&lon=120.96250&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25491254 (6.53332/121.75583) 25488772 (6.53332/121.75499) http://www.openstreetmap.org/?lat=6.53332&lon=121.75583&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25488150 (6.73249/122.39918) 25489349 (6.73249/122.39834) http://www.openstreetmap.org/?lat=6.73249&lon=122.39918&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25493946 (6.16166/121.00666) 25492403 (6.16166/121.00584) http://www.openstreetmap.org/?lat=6.16166&lon=121.00666&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25493475 (6.27667/121.97249) 25491403 (6.27667/121.97084) http://www.openstreetmap.org/?lat=6.27667&lon=121.97249&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25485643 (6.73333/121.46499) 25487693 (6.73333/121.45834) http://www.openstreetmap.org/?lat=6.73333&lon=121.46499&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25517415 (5.48917/120.93917) 25537803 (5.48917/120.93334) http://www.openstreetmap.org/?lat=5.48917&lon=120.93917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25514818 (6.81416/121.54417) 25511790 (6.81333/121.54334) http://www.openstreetmap.org/?lat=6.81416&lon=121.54417&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25536758 (6.88916/121.59084) 25536706 (6.88916/121.58666) http://www.openstreetmap.org/?lat=6.88916&lon=121.59084&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25512782 (6.87916/122.04499) 25536609 (6.87916/122.04334) http://www.openstreetmap.org/?lat=6.87916&lon=122.04499&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25520936 (5.48834/120.85667) 25539998 (5.48834/120.85500) http://www.openstreetmap.org/?lat=5.48834&lon=120.85667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25513371 (6.76168/122.36667) 25511594 (6.76168/122.36583) http://www.openstreetmap.org/?lat=6.76168&lon=122.36667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25515812 (5.48750/120.92417) 25540736 (5.48750/120.91666) http://www.openstreetmap.org/?lat=5.48750&lon=120.92417&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25561240 (6.05166/121.44416) 25559059 (6.04918/121.44334) http://www.openstreetmap.org/?lat=6.05166&lon=121.44416&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25563588 (5.99167/121.66667) 25557738 (5.99167/121.66500) http://www.openstreetmap.org/?lat=5.99167&lon=121.66667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25558232 (6.10501/120.96082) 25566906 (6.10501/120.95001) http://www.openstreetmap.org/?lat=6.10501&lon=120.96082&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25558173 (5.99416/121.52334) 25560373 (5.99416/121.52166) http://www.openstreetmap.org/?lat=5.99416&lon=121.52334&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25567025 (5.78166/121.16667) 25564285 (5.78171/121.14905) http://www.openstreetmap.org/?lat=5.78166&lon=121.16667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25571419 (6.01750/121.90166) 25558379 (6.01750/121.89917) http://www.openstreetmap.org/?lat=6.01750&lon=121.90166&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26075546 (5.17166/120.27169) 26075100 (5.17166/120.26918) http://www.openstreetmap.org/?lat=5.17166&lon=120.27169&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26071841 (5.22417/120.63668) 26073648 (5.22417/120.63417) http://www.openstreetmap.org/?lat=5.22417&lon=120.63668&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26076899 (5.18250/120.34336) 26072026 (5.18250/120.34085) http://www.openstreetmap.org/?lat=5.18250&lon=120.34336&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26078823 (5.01500/120.21152) 26073367 (5.01500/120.20418) http://www.openstreetmap.org/?lat=5.01500&lon=120.21152&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25594395 (5.06332/120.25753) 26071979 (5.06332/120.25169) http://www.openstreetmap.org/?lat=5.06332&lon=120.25753&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25593711 (5.16250/120.26253) 26077889 (5.16250/120.26169) http://www.openstreetmap.org/?lat=5.16250&lon=120.26253&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26073531 (5.15083/120.28253) 26078557 (5.15083/120.27918) http://www.openstreetmap.org/?lat=5.15083&lon=120.28253&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26073086 (5.08251/120.28334) 25592917 (5.08251/120.28253) http://www.openstreetmap.org/?lat=5.08251&lon=120.28334&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26103169 (6.13917/120.47668) 26096990 (6.13917/120.47168) http://www.openstreetmap.org/?lat=6.13917&lon=120.47668&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26100186 (6.10333/120.50918) 26094433 (6.10333/120.50086) http://www.openstreetmap.org/?lat=6.10333&lon=120.50918&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26088448 (6.05250/120.48502) 26088604 (6.05334/120.48002) http://www.openstreetmap.org/?lat=6.05250&lon=120.48502&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26223447 (11.57386/123.33396) 26220681 (11.57470/123.32812) http://www.openstreetmap.org/?lat=11.57386&lon=123.33396&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26226628 (11.42615/123.26576) 26221150 (11.42780/123.25160) http://www.openstreetmap.org/?lat=11.42615&lon=123.26576&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26226583 (11.23584/123.21167) 26225045 (11.23833/123.20167) http://www.openstreetmap.org/?lat=11.23584&lon=123.21167&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26216777 (11.42844/123.18292) 26222166 (11.42761/123.17792) http://www.openstreetmap.org/?lat=11.42844&lon=123.18292&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26217947 (11.46237/123.22469) 26221567 (11.46237/123.20637) http://www.openstreetmap.org/?lat=11.46237&lon=123.22469&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26215856 (11.61060/123.35207) 26215046 (11.61060/123.34623) http://www.openstreetmap.org/?lat=11.61060&lon=123.35207&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26273248 (11.54667/119.84833) 26278335 (11.54667/119.84668) http://www.openstreetmap.org/?lat=11.54667&lon=119.84833&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26274794 (11.63583/119.96834) 26275724 (11.63583/119.96167) http://www.openstreetmap.org/?lat=11.63583&lon=119.96834&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26273533 (11.43666/120.16917) 26275804 (11.43666/120.16668) http://www.openstreetmap.org/?lat=11.43666&lon=120.16917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26276046 (11.67418/120.04417) 26276584 (11.67250/120.04334) http://www.openstreetmap.org/?lat=11.67418&lon=120.04417&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26274921 (11.64834/120.11084) 26277097 (11.64918/120.11001) http://www.openstreetmap.org/?lat=11.64834&lon=120.11084&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26276662 (12.78622/122.06304) 26273353 (12.78540/122.04233) http://www.openstreetmap.org/?lat=12.78622&lon=122.06304&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26298944 (12.36262/119.90517) 26293890 (12.36237/119.89646) http://www.openstreetmap.org/?lat=12.36262&lon=119.90517&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26299439 (11.74417/120.17168) 26297305 (11.74417/120.17084) http://www.openstreetmap.org/?lat=11.74417&lon=120.17168&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 27056324 (11.04124/123.20641) 27068628 (11.04124/123.20141) http://www.openstreetmap.org/?lat=11.04124&lon=123.20641&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299436332 (4.64468/119.46535) 299436357 (4.64878/119.45540) http://www.openstreetmap.org/?lat=4.64468&lon=119.46535&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299436583 (4.89529/119.40596) 299436594 (4.87581/119.40647) http://www.openstreetmap.org/?lat=4.89529&lon=119.40596&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299436764 (4.86263/119.41557) 299436770 (4.84774/119.41437) http://www.openstreetmap.org/?lat=4.86263&lon=119.41557&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299437026 (4.64228/119.39308) 299437030 (4.64812/119.39909) http://www.openstreetmap.org/?lat=4.64228&lon=119.39308&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 299437060 (4.62260/119.38313) 299437063 (4.61576/119.39068) http://www.openstreetmap.org/?lat=4.62260&lon=119.38313&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 304783278 (9.27654/120.81807) 304783297 (9.28100/120.81706) http://www.openstreetmap.org/?lat=9.27654&lon=120.81807&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 304787589 (7.84231/118.43745) 304787612 (7.84956/118.43745) http://www.openstreetmap.org/?lat=7.84231&lon=118.43745&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 316796770 (10.90936/121.01312) 316796778 (10.90987/121.01621) http://www.openstreetmap.org/?lat=10.90936&lon=121.01312&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 353175666 (11.97593/121.56007) 353175756 (11.99042/121.55812) http://www.openstreetmap.org/?lat=11.97593&lon=121.56007&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25569562 (6.14333/121.79667) 25487586 (6.15833/121.79667) http://www.openstreetmap.org/?lat=6.14333&lon=121.79667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25487222 (6.40417/121.96667) 25492040 (6.40417/121.96416) http://www.openstreetmap.org/?lat=6.40417&lon=121.96667&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26078582 (5.04916/119.85335) 26076369 (5.04916/119.85170) http://www.openstreetmap.org/?lat=5.04916&lon=119.85335&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25407401 (10.44583/119.80666) 25405467 (10.44583/119.80582) http://www.openstreetmap.org/?lat=10.44583&lon=119.80666&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26296998 (11.96250/120.09917) 26298180 (11.96250/120.09833) http://www.openstreetmap.org/?lat=11.96250&lon=120.09917&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 25519287 (5.36832/125.37417) 25537154 (5.36832/125.36999) http://www.openstreetmap.org/?lat=5.36832&lon=125.37417&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26218851 (12.59001/125.14501) 26221655 (12.59001/125.14168) http://www.openstreetmap.org/?lat=12.59001&lon=125.14501&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26324762 (10.75145/125.96748) 26326885 (10.75847/125.94630) http://www.openstreetmap.org/?lat=10.75145&lon=125.96748&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26331744 (10.97553/125.64566) 26332556 (10.97553/125.63649) http://www.openstreetmap.org/?lat=10.97553&lon=125.64566&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26326364 (10.92384/125.83899) 26331596 (10.92283/125.83590) http://www.openstreetmap.org/?lat=10.92384&lon=125.83899&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26322596 (9.85167/125.94999) 26327666 (9.85583/125.93834) http://www.openstreetmap.org/?lat=9.85167&lon=125.94999&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26327504 (10.69098/125.77099) 26321471 (10.69098/125.74932) http://www.openstreetmap.org/?lat=10.69098&lon=125.77099&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26327995 (9.90834/125.27500) 26324872 (9.92917/125.30251) http://www.openstreetmap.org/?lat=9.90834&lon=125.27500&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26332902 (9.93166/125.30251) 26331738 (9.90834/125.26667) http://www.openstreetmap.org/?lat=9.93166&lon=125.30251&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26137008 (13.77578/120.31218) 355857074 (13.77542/120.31119) http://www.openstreetmap.org/?lat=13.77578&lon=120.31218&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26181890 (13.64549/120.42099) 26170175 (13.68017/120.31366) http://www.openstreetmap.org/?lat=13.64549&lon=120.42099&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 26141708 (13.67154/120.27139) 355857600 (13.67184/120.26736) http://www.openstreetmap.org/?lat=13.67154&lon=120.27139&zoom=17
SEVERE (Osm5XmlHandler): Non-closed coastline segment does not hit bounding box - expect strange results: 355857441 (13.67987/120.30570) 26175623 (13.62751/120.41580) http://www.openstreetmap.org/?lat=13.67987&lon=120.30570&zoom=17
SEVERE (Main): java.util.concurrent.ExecutionException: java.util.NoSuchElementException java.util.concurrent.ExecutionException: java.util.NoSuchElementException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:289) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Caused by: java.util.NoSuchElementException at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1115) at java.util.TreeMap$KeyIterator.next(TreeMap.java:1171) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.generateSeaPolygon(Osm5XmlHandler.java:860) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endDocument(Osm5XmlHandler.java:459) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:740) at com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endDocument(XIncludeHandler.java:1122) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:491) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:810) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:740) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:110) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525) at javax.xml.parsers.SAXParser.parse(SAXParser.java:392) at javax.xml.parsers.SAXParser.parse(SAXParser.java:195) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:80) at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:148) at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:168) at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:166) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:636) Exiting - if you want to carry on regardless, use the --keep-going option
real 22m47.259s user 19m25.413s sys 0m7.268s
On Sat, Aug 8, 2009 at 9:23 PM, Dermot McNally<dermotm@gmail.com> wrote:
OK, I've located a flooded island, I've grabbed a screenshot to illustrate the artefacts I described in my last mail. This is all fairly tolerable stuff, so I'm going to keep using the patched version.
Dermot
-- -------------------------------------- Iren sind menschlich
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Dear Maning, the problem is most probably that I assumed that the intersection between the "land mass" and the bounding box is simply connected. I won't be able to fix this today, but you could add if (!it1.hasNext()) break; before the offending line 860 EdgeHit h1 = it1.next(); to get at least the code running again. Best wishes Christian maning sambale schrieb:
Another test using he new splitter: SEVERE (Main): java.util.concurrent.ExecutionException: java.util.NoSuchElementException java.util.concurrent.ExecutionException: java.util.NoSuchElementException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:289) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Caused by: java.util.NoSuchElementException at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1115) at java.util.TreeMap$KeyIterator.next(TreeMap.java:1171) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.generateSeaPolygon(Osm5XmlHandler.java:860)

On Sun, Aug 9, 2009 at 9:09 PM, Christian Gawron<christian.gawron@gmx.de> wrote:
Dear Maning,
the problem is most probably that I assumed that the intersection between the "land mass" and the bounding box is simply connected. Yes this is the case.
I won't be able to fix this today, but you could add if (!it1.hasNext()) break; before the offending line 860 EdgeHit h1 = it1.next(); to get at least the code running again. Will try this tonight.
I am very happy the sea polygon is getting some improvement these days. :)
Best wishes Christian
maning sambale schrieb:
Another test using he new splitter: SEVERE (Main): java.util.concurrent.ExecutionException: java.util.NoSuchElementException java.util.concurrent.ExecutionException: java.util.NoSuchElementException at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252) at java.util.concurrent.FutureTask.get(FutureTask.java:111) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:289) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:124) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Caused by: java.util.NoSuchElementException at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1115) at java.util.TreeMap$KeyIterator.next(TreeMap.java:1171) at uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.generateSeaPolygon(Osm5XmlHandler.java:860)
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
-- cheers, maning ------------------------------------------------------ "Freedom is still the most radical idea of all" -N.Branden wiki: http://esambale.wikispaces.com/ blog: http://epsg4253.wordpress.com/ ------------------------------------------------------

Dear Dermot, the "triangle artifacts" have to do with the multipolygon code. There is a comment by someone saying //with this line commented we get triangles, when uncommented some areas disappear // at least in mapsource, on device itself looks OK. The multiploygon code "connects" the inner ways with the outer way by two additional ways. These should in theory be two identical ways of opposite direction, but it seems that something breaks in the display on the device unless these ways differ slightly. The "slight difference" shows up as triangles ... I'm still searching the cause of the "flooded islands" ... Best wishes Christian Dermot McNally schrieb:
OK, I've located a flooded island, I've grabbed a screenshot to illustrate the artefacts I described in my last mail. This is all fairly tolerable stuff, so I'm going to keep using the patched version.
Dermot
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

On Sat, Aug 08, 2009 at 02:29:25PM +0200, Christian Gawron wrote:
Here is an improved version of the sea polygon patch which also handles shorelines intersecting the boundary of the map (set by the <bounds> element).
I have tested it with Ireland - there are still some islands which are "flooded", so the patch should not be considered "final".
It doesn't seem to work on the Baltic sea. I checked the southern coast of Finland and the space around Åland, and it was mostly yellow. The coast lines were light blue, just like before. Marko
participants (4)
-
Christian Gawron
-
Dermot McNally
-
maning sambale
-
Marko Mäkelä