How to use the Polyfile not bbox ?

174 views
Skip to first unread message

Kasimir

unread,
Apr 13, 2017, 6:36:55 AM4/13/17
to mapsforge-dev
Hi,

i want to use a Polyfile for my final Map - how to use Polyfile in this advice ?
before i use this Syntax for produce the final Map of Germany - but i need to extend the Map.
So i want to use Polyfile not bbox command ?

osmosis --read-pbf file=/osmosis/out.pbf --mapfile-writer tag-conf-file=/osmosis/tagmap.xml type=hd file=/osmosis/germany-2017.map bbox=47.2949,5.7331,54.8899,15.0275 -Xmx16384

Any Idea - how to use here

Kasi

Emux

unread,
Apr 13, 2017, 6:40:51 AM4/13/17
to mapsfo...@googlegroups.com
You can use first the .poly file for extracting an area from the osm/pbf (e.g. see OSM wiki) and then feed the result to the map-writer.

--
Emux

Kasimir

unread,
Apr 13, 2017, 8:08:22 AM4/13/17
to mapsforge-dev
Hi Emux, o.k. i will do this. In first job i need to add europe-osm.osm.pbf with Seamarks World, but here i get Problems to do this - for germany was working, but Europefile looks like not want to work..
This is Answer from Osmosis

Any Idea, how to solve this ?
I dont understand the Output.

C:\osmosis\bin>osmosis --rb file=/osmosis/europe-latest.osm.pbf --rx file=/osmosis/seaL.osm --s --m --rx file=/osmosis/land.osm --s --m --rx file=/osmosis/world.osm --s --m --wb omitmetadata=true file=/osmosis/out.pbf
Apr 13, 2017 2:00:21 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Osmosis Version 0.45
Apr 13, 2017 2:00:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Preparing pipeline.
Apr 13, 2017 2:00:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Launching pipeline execution.
Apr 13, 2017 2:00:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Pipeline executing, waiting for completion.
Apr 13, 2017 2:00:40 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SCHWERWIEGEND: Thread for task 1-rb failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: An output error has occurred, aborting.
        at org.openstreetmap.osmosis.core.store.DataPostbox.checkForOutputErrors(DataPostbox.java:162)
        at org.openstreetmap.osmosis.core.store.DataPostbox.populateCentralQueue(DataPostbox.java:218)
        at org.openstreetmap.osmosis.core.store.DataPostbox.put(DataPostbox.java:305)
        at org.openstreetmap.osmosis.set.v0_6.impl.DataPostboxSink.process(DataPostboxSink.java:45)
        at org.openstreetmap.osmosis.core.sort.v0_6.SortedEntityPipeValidator.process(SortedEntityPipeValidator.java:68)
        at crosby.binary.osmosis.OsmosisBinaryParser.parseDense(OsmosisBinaryParser.java:138)
        at org.openstreetmap.osmosis.osmbinary.BinaryParser.parse(BinaryParser.java:124)
        at org.openstreetmap.osmosis.osmbinary.BinaryParser.handleBlock(BinaryParser.java:68)
        at org.openstreetmap.osmosis.osmbinary.file.FileBlock.process(FileBlock.java:135)
        at org.openstreetmap.osmosis.osmbinary.file.BlockInputStream.process(BlockInputStream.java:34)
        at crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:45)
        at java.lang.Thread.run(Unknown Source)

Apr 13, 2017 2:00:40 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SCHWERWIEGEND: Thread for task 2-rx failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: An output error has occurred, aborting.
        at org.openstreetmap.osmosis.core.store.DataPostbox.checkForOutputErrors(DataPostbox.java:162)
        at org.openstreetmap.osmosis.core.store.DataPostbox.complete(DataPostbox.java:332)
        at org.openstreetmap.osmosis.set.v0_6.impl.DataPostboxSink.complete(DataPostboxSink.java:54)
        at org.openstreetmap.osmosis.core.sort.v0_6.SortedEntityPipeValidator.complete(SortedEntityPipeValidator.java:44)
        at org.openstreetmap.osmosis.core.sort.v0_6.EntitySorter.complete(EntitySorter.java:74)
        at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:92)
        at java.lang.Thread.run(Unknown Source)

Apr 13, 2017 2:00:40 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SCHWERWIEGEND: Thread for task 4-m failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: An output error has occurred, aborting.
        at org.openstreetmap.osmosis.core.store.DataPostbox.checkForOutputErrors(DataPostbox.java:162)
        at org.openstreetmap.osmosis.core.store.DataPostbox.populateCentralQueue(DataPostbox.java:218)
        at org.openstreetmap.osmosis.core.store.DataPostbox.put(DataPostbox.java:305)
        at org.openstreetmap.osmosis.set.v0_6.impl.DataPostboxSink.process(DataPostboxSink.java:45)
        at org.openstreetmap.osmosis.core.sort.v0_6.SortedEntityPipeValidator.process(SortedEntityPipeValidator.java:68)
        at org.openstreetmap.osmosis.set.v0_6.EntityMerger.run(EntityMerger.java:183)
        at java.lang.Thread.run(Unknown Source)

Apr 13, 2017 2:00:40 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SCHWERWIEGEND: Thread for task 5-rx failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read XML file \osmosis\land.osm.
        at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:105)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: \osmosis\land.osm (Das System kann die angegebene Datei nicht finden)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:81)
        ... 1 more

Apr 13, 2017 2:00:40 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SCHWERWIEGEND: Thread for task 7-m failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: An input error has occurred, aborting.
        at org.openstreetmap.osmosis.core.store.DataPostbox.checkForInputErrors(DataPostbox.java:174)
        at org.openstreetmap.osmosis.core.store.DataPostbox.consumeCentralQueue(DataPostbox.java:239)
        at org.openstreetmap.osmosis.core.store.DataPostbox.hasNext(DataPostbox.java:441)
        at org.openstreetmap.osmosis.set.v0_6.EntityMerger.nextOrNull(EntityMerger.java:290)
        at org.openstreetmap.osmosis.set.v0_6.EntityMerger.run(EntityMerger.java:126)
        at java.lang.Thread.run(Unknown Source)

Apr 13, 2017 2:00:40 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SCHWERWIEGEND: Thread for task 8-rx failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: An output error has occurred, aborting.
        at org.openstreetmap.osmosis.core.store.DataPostbox.checkForOutputErrors(DataPostbox.java:162)
        at org.openstreetmap.osmosis.core.store.DataPostbox.populateCentralQueue(DataPostbox.java:213)
        at org.openstreetmap.osmosis.core.store.DataPostbox.put(DataPostbox.java:305)
        at org.openstreetmap.osmosis.set.v0_6.impl.DataPostboxSink.process(DataPostboxSink.java:45)
        at org.openstreetmap.osmosis.core.sort.v0_6.SortedEntityPipeValidator.process(SortedEntityPipeValidator.java:68)
        at org.openstreetmap.osmosis.core.sort.v0_6.EntitySorter.complete(EntitySorter.java:71)
        at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:92)
        at java.lang.Thread.run(Unknown Source)

Apr 13, 2017 2:00:40 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SCHWERWIEGEND: Thread for task 10-m failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: An input error has occurred, aborting.
        at org.openstreetmap.osmosis.core.store.DataPostbox.checkForInputErrors(DataPostbox.java:174)
        at org.openstreetmap.osmosis.core.store.DataPostbox.consumeCentralQueue(DataPostbox.java:239)
        at org.openstreetmap.osmosis.core.store.DataPostbox.hasNext(DataPostbox.java:441)
        at org.openstreetmap.osmosis.set.v0_6.EntityMerger.nextOrNull(EntityMerger.java:290)
        at org.openstreetmap.osmosis.set.v0_6.EntityMerger.run(EntityMerger.java:127)
        at java.lang.Thread.run(Unknown Source)

Apr 13, 2017 2:00:40 PM org.openstreetmap.osmosis.core.Osmosis main
SCHWERWIEGEND: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed.
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)


This was used command for Osmosis -
C:\osmosis\bin>osmosis --rb file=/osmosis/europe-latest.osm.pbf --rx file=/osmosis/seaL.osm --s --m --rx file=/osmosis/land.osm --s --m --rx file=/osmosis/world.osm --s --m --wb omitmetadata=true file=/osmosis/out.pbf

Emux

unread,
Apr 13, 2017, 8:17:21 AM4/13/17
to mapsfo...@googlegroups.com
There is in the log:


"Caused by: java.io.FileNotFoundException: \osmosis\land.osm "

--
Emux

Kasimir

unread,
Apr 13, 2017, 8:18:44 AM4/13/17
to mapsforge-dev
Sorry, my Error - i was a Idiot and forget the "land" file..

Sorry !!

Kasi

Ludwig

unread,
Apr 13, 2017, 8:22:42 AM4/13/17
to mapsfo...@googlegroups.com
Probably this:

Caused by: java.io.FileNotFoundException: \osmosis\land.osm (Das System kann die angegebene Datei nicht finden)

--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-dev+unsubscribe@googlegroups.com.
To post to this group, send email to mapsfo...@googlegroups.com.
Visit this group at https://groups.google.com/group/mapsforge-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/305a1a54-87e8-4e07-a635-ac4fc7be0c67%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Kasimir

unread,
Apr 13, 2017, 10:21:45 AM4/13/17
to mapsforge-dev
Arrgghh, Sorry - I was the stupid...
Thx, i think i need a break...

Thx for Help me,
kasi..

Kasimir

unread,
Apr 13, 2017, 12:48:17 PM4/13/17
to mapsforge-dev
I think i am complete stupid today..


Now i get again a Error, but i dont know what is wrong here--
Can you again assist me - the first Procedure is succesful end - but in this Step i have again Problems..

C:\osmosis\bin>osmosis --read-pbf file=/osmosis/out.pbf --mapfile-writer tag-conf-file=/osmosis/tagmap.xml type=hd file=/osmosis/DE-NL-PL-4-2017.map --bounding-polygon file="gnp.poly" -Xmx16384

Apr 13, 2017 6:45:45 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Osmosis Version 0.45
Apr 13, 2017 6:45:45 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Preparing pipeline.
Apr 13, 2017 6:45:45 PM org.mapsforge.map.writer.OSMTagMapping <init>
WARNUNG: duplicate osm-tag found in tag-mapping configuration (ignoring): OSMTag [id=151, key=seamark:beacon_cardinal:colour, value=black;red;black, zoomAppear=16, renderable=false, labelPosition=false]
Apr 13, 2017 6:45:45 PM org.mapsforge.map.writer.osmosis.MapFileWriterTask <init>
INFORMATION: mapfile-writer version: mapsforge-map-writer-0.7.0
Apr 13, 2017 6:45:45 PM org.mapsforge.map.writer.osmosis.MapFileWriterTask <init>
INFORMATION: mapfile format specification version: 3
Apr 13, 2017 6:45:45 PM org.openstreetmap.osmosis.core.Osmosis main
SCHWERWIEGEND: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: No default pipes are available as input for task 3-bounding-polygon.
        at org.openstreetmap.osmosis.core.pipeline.common.PipeTasks.retrieveTask(PipeTasks.java:150)
        at org.openstreetmap.osmosis.core.pipeline.common.TaskManager.getInputTask(TaskManager.java:165)
        at org.openstreetmap.osmosis.core.pipeline.v0_6.SinkSourceManager.connect(SinkSourceManager.java:51)
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.connectTasks(Pipeline.java:74)
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:116)
        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)

        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)


C:\osmosis\bin>

Emux

unread,
Apr 13, 2017, 1:03:22 PM4/13/17
to mapsfo...@googlegroups.com
You better split the steps in separate command lines and use intermediate files until the procedure succeeds.

e.g. the --bounding-polygon option is not to be used with --mapfile-writer task, but with osmosis tasks in a previous step.

--
Emux

Kasimir

unread,
Apr 13, 2017, 1:44:44 PM4/13/17
to mapsforge-dev
O.K. understand, i think i have it now in 3 Steps for Osmosis..

Thanks for Helping, Osmosis is sometimes for me llittle bit confused..

Thank you both for tell me the right Way ;-)
Kasi
P.S.
Have a nice happy Easter and lot Eggs ;-)

Ludwig

unread,
Apr 13, 2017, 2:31:42 PM4/13/17
to mapsfo...@googlegroups.com
To understand the problem you have to see osmosis as a pipeline: the data flows into one task and the result, if available, then flows into the next, so steps need to be in order. 
The mapfile-writer task additionally does not produce an output stream, that is why you get the "No default pipes are available as input for task 3-bounding-polygon" error, meaning that osmosis does not have any data to feed to this step.

--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-dev+unsubscribe@googlegroups.com.
To post to this group, send email to mapsfo...@googlegroups.com.
Visit this group at https://groups.google.com/group/mapsforge-dev.
Message has been deleted

Kasimir

unread,
Apr 15, 2017, 3:49:09 AM4/15/17
to mapsforge-dev

Hi Emux and Hi Ludwig,
I have now done like the Manual says, but it runs like crazy..

I have now first load the file of europe-latetes.osm.pbf and use a polyfile to cut out the Area of germany, nederland and poland at once.
The default Map of Europe has 18 GB and i use then the command like this to cut out the Area i need ...

osmosis --read-pbf file="/osmosis/europe-latest.
osm.pbf" --bounding-polygon file="/osmosis/gnp.poly" --write-xml file=d:/outnew.pbf"

But i get no smaller file of this aera - it will now calculate the the second day and file has now more then 54 GB ????
I dont know, what this command really do, but for me looks like not, that i get a bounding area - at looks more, that here all goes in a wrong direction ?!

Any Ideas about this, what can help me ??
should i stop this process, or is it normal, that the file will be forward goes so big ??

regards Kasi

Emux

unread,
Apr 15, 2017, 5:22:36 AM4/15/17
to mapsfo...@googlegroups.com
Considering that your .poly file is correct, you could use the --write-pbf task to write a binary osm file with less size.

Also better start with small areas to see how the various command line steps produce correct result and then advance in large scale.

--
Emux
Message has been deleted

Kasimir

unread,
Apr 15, 2017, 8:47:58 AM4/15/17
to mapsforge-dev

Hi Emux,
you are right any Time... Thx
Again i was generate a complete new Poly file and use a other Tool to generate, this looks by upfollow try now better. But still waiting for result.

Kasi

Ludwig

unread,
Apr 15, 2017, 9:28:59 AM4/15/17
to mapsfo...@googlegroups.com
The time and space needed for your map area will always be very large.

But there is another approach you can take: if you would take the three files for Poland, the Netherlands and Germany from the GeoFabrik server and use osmosis to merge them (IIRC you will need first read two files then apply the --merge command, then read the next and merge that) you might be quicker and smaller. 
Have a look at the osmosis docs for this.



--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-dev+unsubscribe@googlegroups.com.
To post to this group, send email to mapsfo...@googlegroups.com.
Visit this group at https://groups.google.com/group/mapsforge-dev.

Kasimir

unread,
Apr 16, 2017, 6:44:55 AM4/16/17
to mapsforge-dev
Hi Emus, Hi Ludwig, thanks a lot for your Help to me, i am now one step more forwarding.

I have now in step 1 add Seamarks to my out.pbf
in step 2 i have now extract the Polygon for my 3 Countrys at one - The file looks now very good in GB and is i think success.
But now i have the final Problem again - i cant start the Mapwriter without again tell a --bounding-box ??!!

Osmosis ask for a bbox task to have a boundary again ???
Normal i was thinking, that i can now write the MAp without new bbox command, because we already have extract from Poly file ??

No i was unsure and also make another line with bbox command again, but Osmosis have no fun, to do it for me ?

First try was this:
osmosis --read-pbf file=/d:/NL.pbf --mapfile-writer tag-conf-file=/osmosis/tagmap.xml type=hd file=d:/DE-NL-PL-4-2017.map"
but still give me the Answer, it have no bbox command ;-(

Then i try this:
osmosis --read-pbf file=/d:/NL.pbf --bounding-box top=-54.97 left=2.28 bottom=-47.07 right=15.29 --mapfile-writer tag-conf-file=/osmosis/tagmap.xml type=hd file=d:/DE-NL-PL-4-2017.map"
but also get a fail from Osmosis with this here...

C:\osmosis\bin>osmosis --read-pbf file=/d:/NL.pbf --bounding-box top=-55.0 left=2.3 bottom=-47.1 right=15.3 --mapfile-writer tag-conf-file=/osmosis/tagmap.xml type=hd file=d:/DE-NL-PL-4-2017.map"
Apr 16, 2017 12:11:57 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Osmosis Version 0.45
Apr 16, 2017 12:11:57 PM org.openstreetmap.osmosis.core.Osmosis run
INFORMATION: Preparing pipeline.
Apr 16, 2017 12:11:57 PM org.openstreetmap.osmosis.core.Osmosis main
SCHWERWIEGEND: Execution aborted.
java.lang.IllegalArgumentException: Bound top < bottom
        at org.openstreetmap.osmosis.core.domain.v0_6.Bound.<init>(Bound.java:73)
        at org.openstreetmap.osmosis.areafilter.v0_6.BoundingBoxFilter.<init>(BoundingBoxFilter.java:57)
        at org.openstreetmap.osmosis.areafilter.v0_6.BoundingBoxFilterFactory.createTaskManagerImpl(BoundingBoxFilterFactory.java:111)
        at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory.createTaskManager(TaskManagerFactory.java:60)
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:50)
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:112)

        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:86)
        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

I have now do more trys against example of Osmosis, but find not the right one ?!

Can i not start the Process here without bbox Command to mak the Map ??
And if not working without again using bbox command, how is then the Syntax to write it to a map ?

Regards Kasi..

Ludwig

unread,
Apr 16, 2017, 6:56:14 AM4/16/17
to mapsfo...@googlegroups.com
A mapsforge map is always rectangular (it is composed of rows and columns of tiles), so you best tell the command the maximum extension of your map. (I think there is actually a osmosis command that will out put the maximum dimensions of a data set).

So the result will be a rectangular map with only the data contained in your polygon. It is therefore best to extract coastlines for the entire bounding box, otherwise the map will look a bit funny. The mapsforge map-generator has some code for extracting the land files needed for this. https://github.com/mapsforge/mapsforge-mapcreator


--
You received this message because you are subscribed to the Google Groups "mapsforge-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapsforge-dev+unsubscribe@googlegroups.com.
To post to this group, send email to mapsfo...@googlegroups.com.
Visit this group at https://groups.google.com/group/mapsforge-dev.

Emux

unread,
Apr 16, 2017, 7:07:34 AM4/16/17
to mapsfo...@googlegroups.com
It's not Osmosis tool, it's map-writer plugin that asks for a bounding box, for the reasons Ludwig explained.

Have a look at map-writer documentation for the right way to post its coordinates.

Regarding coastlines we have a map creation guide to study.

--
Emux
Message has been deleted
Message has been deleted

Emux

unread,
Apr 16, 2017, 11:10:56 AM4/16/17
to mapsfo...@googlegroups.com
OSM data filtering and Mapsforge map building are two different procedures.

With OSM data filtering we can extract specific areas from larger osm / pbf files, via polygons or rectangles, filter specific tags, etc. That produces a light osm / pbf file to use in next steps.

Mapsforge map writer needs (if cannot find in input osm / pbf) a bounding box for the created map, as map views are rectangles.

BTW in your command lines you often use --write-xml to produce an (xml) .osm but use .pbf extension instead. And then read that text file with --read-pbf as binary.

--
Emux

Kasimir

unread,
Apr 16, 2017, 11:26:31 AM4/16/17
to mapsforge-dev
Dear Emux, again thanks for your Help, i will follow again your Advice and try it.
At Moment the official Task said completing read..

thx Kasi

Kasimir

unread,
Apr 17, 2017, 11:20:51 AM4/17/17
to mapsforge-dev
hi,
is the bbox command minLat, minLon, maxLat, maxLon in exactly this order as degrees
the same i use in osmose --bounding-box with  --bounding-box top=xx.xx left=xx.xx bottom=xx.xx right=xx.xx
or like i get from here :
http://tools.geofabrik.de/calc/#type=geofabrik_standard&bbox=1.363257,47.474477,11.196266,55.156305&tab=1&proj=EPSG:4326&places=2
you can copy it as osmosisdirekt Input from (right side click on CD) then you see the coordinate field.

But the Question is, what is top,right,left,bottom then in bbox mapwriter command ?


minLat=?
minLon=?
maxLat=?
maxLon=?

I think i havee use here wrong Parameters ;-(

Kasi

Emux

unread,
Apr 17, 2017, 12:02:03 PM4/17/17
to mapsfo...@googlegroups.com
The bbox in map writer is defined as minLat,minLon,maxLat,maxLon.

It is like bottom,left,top,right when viewing the map.

--
Emux
Reply all
Reply to author
Forward
0 new messages