logo separator

[mkgmap-dev] [PATCH v1] Reduce number of cuts in multipolygon processing

From Felix Hartmann extremecarver at googlemail.com on Thu Feb 25 15:40:07 GMT 2010

I too ran into problems using the patch (on Austria from geofabrik):

java.lang.NullPointerException
         at 
uk.me.parabola.mkgmap.reader.osm.MultiPolygonRelation.cutOutInnerPolygons(MultiPolygonRelation.java:892)
         at 
uk.me.parabola.mkgmap.reader.osm.MultiPolygonRelation.processElements(MultiPolygonRelation.java:640)
         at 
uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endRelation(Osm5XmlHandler.java:569)
         at 
uk.me.parabola.mkgmap.reader.osm.xml.Osm5XmlHandler.endElement(Osm5XmlHandler.java:539)
         at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endElement(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
         at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)
         at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at 
uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:81)
         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:189)
         at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:186)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
Source)
         at java.lang.Thread.run(Unknown Source)
Exiting - if you want to carry on regardless, use the --keep-going option
16:35:25

Maybe both Marko and me am using some other patches that break something 
here?
--- therefore attached my patches to mkgmap I'm currently using (except 
a bit copyright info changes for maps created, mainly a patch to change 
dp filter independantly for polygons).
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patches as of 19.02
Url: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20100225/869279b6/attachment.pl 


More information about the mkgmap-dev mailing list