invalid latitude problem

253 views
Skip to first unread message

cheolo lee

unread,
Dec 25, 2013, 3:01:44 AM12/25/13
to mapsfo...@googlegroups.com
Thanks for  emux, i have solved my plugin problem.

However, i faced with new "invalid latitude problem"

I have downloaded from geofabriks and couldmade. also i used bbox code from export of www.openstreetmaps.org

What I missed??





root@ubuntu:/home/lee/osmosis/bin# ./osmosis --read-xml file=/home/lee/osmosis/taiwan-latest.osm --mapfile-writer file=test.map bbox=120.2426,22.7002,122.7969,24.9736
Dec 24, 2013 11:57:56 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.40.1
Dec 24, 2013 11:57:56 PM org.java.plugin.registry.xml.ManifestParser <init>
INFO: got SAX parser factory - org.apache.xerces.jaxp.SAXParserFactoryImpl@b0ede6
Dec 24, 2013 11:57:56 PM org.java.plugin.registry.xml.PluginRegistryImpl configure
INFO: configured, stopOnError=false, isValidating=true
Dec 24, 2013 11:57:56 PM org.java.plugin.registry.xml.PluginRegistryImpl register
INFO: plug-in and fragment descriptors registered - 1
Dec 24, 2013 11:57:56 PM org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.openstreetmap.osm...@0.40.1
Dec 24, 2013 11:57:56 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Dec 24, 2013 11:57:56 PM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
java.lang.IllegalArgumentException: invalid latitude: 120.2426
at org.mapsforge.core.util.LatLongUtils.validateLatitude(LatLongUtils.java:168)
at org.mapsforge.core.model.BoundingBox.<init>(BoundingBox.java:75)
at org.mapsforge.core.model.BoundingBox.fromString(BoundingBox.java:39)
at org.mapsforge.map.writer.model.MapWriterConfiguration.addBboxConfiguration(MapWriterConfiguration.java:66)
at org.mapsforge.map.writer.osmosis.MapFileWriterFactory.createTaskManagerImpl(MapFileWriterFactory.java:55)
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(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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)

Ludwig

unread,
Dec 25, 2013, 3:22:22 AM12/25/13
to mapsfo...@googlegroups.com

Why should 120 be a valid latitude? I think you are confusing latitude and longitude.

--
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-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapsforge-dev/036fb151-136a-4c0d-8bb3-60c2a08ee884%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

emux

unread,
Dec 25, 2013, 3:30:19 AM12/25/13
to mapsfo...@googlegroups.com
Hi,

Pay attention at arguments order for bbox parameter.
http://code.google.com/p/mapsforge/wiki/GettingStartedMapWriter

It's bbox=minLat,minLon,maxLat,maxLon

Best regards, Emux
https://play.google.com/store/apps/details?id=gr.talent.cruiser

cheolo lee

unread,
Dec 25, 2013, 10:03:53 PM12/25/13
to mapsfo...@googlegroups.com
Oh yes!!

I have confused with position of osm. :)

when i have used Nik2img, It was left, bottom, right, top. however, mapsforge using it bottom,left,top,right :)

Thanks u for all!!

Happy New years!!

2013년 12월 25일 수요일 오후 5시 1분 44초 UTC+9, cheolo lee 님의 말:
Thanks for  emux, i have solved my plugin problem.

However, i faced with new "invalid latitude problem"

I have downloaded from geofabriks and couldmade. also i used bbox code from export of www.openstreetmaps.org

What I missed??





root@ubuntu:/home/lee/osmosis/bin# ./osmosis --read-xml file=/home/lee/osmosis/taiwan-latest.osm --mapfile-writer file=test.map bbox=120.2426,22.7002,122.7969,24.9736
Dec 24, 2013 11:57:56 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.40.1
Dec 24, 2013 11:57:56 PM org.java.plugin.registry.xml.ManifestParser <init>
INFO: got SAX parser factory - org.apache.xerces.jaxp.SAXParserFactoryImpl@b0ede6
Dec 24, 2013 11:57:56 PM org.java.plugin.registry.xml.PluginRegistryImpl configure
INFO: configured, stopOnError=false, isValidating=true
Dec 24, 2013 11:57:56 PM org.java.plugin.registry.xml.PluginRegistryImpl register
INFO: plug-in and fragment descriptors registered - 1
Dec 24, 2013 11:57:56 PM org.java.plugin.standard.StandardPluginManager activatePlugin
INFO: plug-in started - org.openstreetmap.osmosis.core.plu...@0.40.1
Reply all
Reply to author
Forward
0 new messages