logo separator

[mkgmap-dev] coastlinefile option

From Tomas Straupis tomasstraupis at gmail.com on Sat Feb 12 09:24:44 GMT 2011

Hello

  I'm trying to use a separate file with natural=coastline information.
  I then provide it to mkgmap using option:
  --coastlinefile=lithuania_coast.osm

  But I get this when executing:

SEVERE (CoastlineFileLoader): lithuania_.osm:
java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
        at java.util.AbstractCollection.add(AbstractCollection.java:238)
        at java.util.AbstractCollection.addAll(AbstractCollection.java:322)
        at uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.createConverter(OsmMapDataSource.java:251)
        at uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.setupHandler(OsmMapDataSource.java:131)
        at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:69)
        at uk.me.parabola.mkgmap.reader.osm.CoastlineFileLoader.loadFromFile(CoastlineFileLoader.java:90)
        at uk.me.parabola.mkgmap.reader.osm.CoastlineFileLoader.loadFile(CoastlineFileLoader.java:119)
        at uk.me.parabola.mkgmap.reader.osm.CoastlineFileLoader.loadCoastlinesImpl(CoastlineFileLoader.java:133)
        at uk.me.parabola.mkgmap.reader.osm.CoastlineFileLoader.loadCoastlines(CoastlineFileLoader.java:79)
        at uk.me.parabola.mkgmap.reader.osm.SeaGenerator.init(SeaGenerator.java:135)
        at uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.pluginChain(OsmMapDataSource.java:158)
        at uk.me.parabola.mkgmap.reader.osm.OsmMapDataSource.setupHandler(OsmMapDataSource.java:126)
        at uk.me.parabola.mkgmap.reader.osm.xml.Osm5MapDataSource.load(Osm5MapDataSource.java:69)
        at uk.me.parabola.mkgmap.main.MapMaker.loadFromFile(MapMaker.java:145)
        at uk.me.parabola.mkgmap.main.MapMaker.makeMap(MapMaker.java:56)
        at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:220)
        at uk.me.parabola.mkgmap.main.Main$1.call(Main.java:217)
        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)

I tried creating coastline file using JOSM. Then I tried modifying
this file (removing elements with action="delete" etc.). The last
thing I've tried was to provide the full data osm file (the one used
to generate a map) as natural coastline just to check that file format
is OK, but I was still getting the same error...

Full command line when creating a map:

java -jar mkgmap.jar \
--style-file=/home/tomas/garmin/tomas_style \
--gmapsupp \
--tdbfile \
--family-name=OpenStreetMap \
--description=Lietuva`date +%Y%m%d` \
--country-name=Lithuania \
--country-abbr=LTU \
--preserve-element-order \
--lower-case \
--charset=windows-1257 \
--route \
--add-pois-to-areas \
--generate-sea=multipolygon \
--coastlinefile=lithuania_.osm \
lithuania_.osm

  What am I doing wrong? What should the format of this coastline file be?

  Thank you

P.S. This is using rev1838.

-- 
Tomas Straupis



More information about the mkgmap-dev mailing list