- I have to create an tag-mapping.xml. Knowing that my map in just a floor of an hospital, what should it contain ?... the tag-mapping.xml refers to
- After that I use my terminal to go in the directory where pva.osm is, and I use your command :"osmosis --rx file=pva.osm --s --mw file=pva.map bbox=minLat,minLon,maxLat,maxLon map-start-position=lat,lon map-start-zoom=zoom tag-conf-file=tag-mapping.xml" BUT before, I have to download of install the map writer plugin ?
- Then do I have to code for the render theme too ? Do I have to follow the examples ?
- Finally, I have my pva.map (Hallelujah !!). And I use Cruiser or Atlas in order to open it. At this moment I'll be able to code to put it in my android application.
To end with it, I have to understand how to put it in an Android application, thanks to mapsforge and add my marker. I might find a tutorial on the internet.
"./osmosis --rx file=pva.osm --s --mw file=pva.map bbox=48.118278,-1.695017,48.119307,-1.69272 map-start-position=48.118278,-1.695017 map-start-zoom=zoom tag-conf-file=tag-mapping.xml"
I need to have the file tag-mapping.xml in the same directory, but where does my pva.osm goes ? Knowing that there still are errors
(for the record, i get as an answer :
" pc7:bin SimonAlexandre$ ./osmosis --rx file=pva.osm --s --mw file=pva.map bbox=48.118278,-1.695017,48.119307,-1.69272 map-start-position=48.118278,-1.695017 map-start-zoom=zoom tag-conf-file=tag-mapping.xml
juin 23, 2014 7:06:53 PM org.openstreetmap.osmosis.core.Osmosis run
INFOS: Osmosis Version 0.43.1
juin 23, 2014 7:06:54 PM org.java.plugin.registry.xml.ManifestParser <init>
INFOS: got SAX parser factory - org.apache.xerces.jaxp.SAXParserFactoryImpl@3b6eb2ec
juin 23, 2014 7:06:54 PM org.java.plugin.registry.xml.PluginRegistryImpl configure
INFOS: configured, stopOnError=false, isValidating=true
juin 23, 2014 7:06:54 PM org.java.plugin.registry.xml.PluginRegistryImpl register
INFOS: plug-in and fragment descriptors registered - 1
juin 23, 2014 7:06:54 PM org.java.plugin.standard.StandardPluginManager activatePlugin
INFOS: plug-in started - org.openstreetmap.osm...@0.0.0.42-6-gf39a160-dirty
juin 23, 2014 7:06:54 PM org.openstreetmap.osmosis.core.Osmosis run
INFOS: Preparing pipeline.
juin 23, 2014 7:06:54 PM org.openstreetmap.osmosis.core.Osmosis main
GRAVE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Task type mw doesn't exist.
at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactoryRegister.getInstance(TaskManagerFactoryRegister.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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
")
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed.' which I believe come from the same problem ...
"<osm version='0.6' upload='true' generator='JOSM'>"
I do not have any timestamp, how can I change that ?
I'll check that, but how do I open the .pbf file ?
- I opened with an XML editor my pva.osm, and found out that my nodes had irrelevant coordinates (for instance : <node id='-1686' visible='true' lat='-36.18028516938705' lon='-88.4656380240849' />) ; that's because I did not specified any coordinates when I created my JOSM project, since I thaught it didn't matter. Was it a mistake ?
- Where some codes begin with :"<?xml version='1.0' encoding='UTF-8'?>mine begins with :"<osm version='0.6' upload='true' generator='JOSM'>"
I do not have any timestamp, how can I change that ?
I just started a tutorial on how-to for the future application, my report, and perhaps put it online so that other beginners may use it ...
Did I made a mistake / forgot something ?