Convert .osm/.pbf to .map for mapsforge Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How to import Osmosis DB schemas into PostGIS DBBatch convert OSM/PBF dataConvert .osm to .map for mapsforgeConverting .osm to .pbf with Osmosis?How to convert from .SHP to .MAP for mapsforge?Geomajas Error“org.springframework.beans.factory.BeanNotOfRequiredTypeException”on Feature Info ToolOsmosis setup on Ubuntu 14.10Converting mapsforge .map file to OSM or shpOSM converter can't convert OSM to PBFHow to extract seamarks from OSM PBF?
How to bypass password on Windows XP account?
How does the particle を relate to the verb 行く in the structure「A を + B に行く」?
Identify plant with long narrow paired leaves and reddish stems
If a contract sometimes uses the wrong name, is it still valid?
Seeking colloquialism for “just because”
What causes the vertical darker bands in my photo?
Bete Noir -- no dairy
Can a USB port passively 'listen only'?
Echoing a tail command produces unexpected output?
prime numbers and expressing non-prime numbers
Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?
How can I make names more distinctive without making them longer?
In predicate logic, does existential quantification (∃) include universal quantification (∀), i.e. can 'some' imply 'all'?
ListPlot join points by nearest neighbor rather than order
What does the word "veer" mean here?
English words in a non-english sci-fi novel
How to deal with a team lead who never gives me credit?
How would the world control an invulnerable immortal mass murderer?
porting install scripts : can rpm replace apt?
Is pollution the main cause of Notre Dame Cathedral's deterioration?
When do you get frequent flier miles - when you buy, or when you fly?
Do I really need recursive chmod to restrict access to a folder?
Why didn't this character "real die" when they blew their stack out in Altered Carbon?
Why was the term "discrete" used in discrete logarithm?
Convert .osm/.pbf to .map for mapsforge
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How to import Osmosis DB schemas into PostGIS DBBatch convert OSM/PBF dataConvert .osm to .map for mapsforgeConverting .osm to .pbf with Osmosis?How to convert from .SHP to .MAP for mapsforge?Geomajas Error“org.springframework.beans.factory.BeanNotOfRequiredTypeException”on Feature Info ToolOsmosis setup on Ubuntu 14.10Converting mapsforge .map file to OSM or shpOSM converter can't convert OSM to PBFHow to extract seamarks from OSM PBF?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have download latest version (0.46) of osmosis from
https://wiki.openstreetmap.org/wiki/Osmosis#Downloading
and mapsforge-map-writer-0.9.1.jar from http://search.maven.org/#search%7Cga%7C1%7Cmapsforge-map
and map ("AM.osm") from
http://be.gis-lab.info/data/osm_dump/dump/latest/
I'm on Windows-7 64-bit Professional and JDK 1.8u45
I unpacked osmosis to: "c:Progsosmosis"
I created a folder called "plugins" in "c:Progsosmosis" (>> so: "c:Progsosmosisplugins")
In the plugins folder I put the file "mapsforge-map-writer-0.9.1.jar"
I put the file "AM.osm.pbf" (and "AM.osm") into "c:Progsosmosis"
I then opened a command-prompt window and executed the following commands:
PS C:Progsosmosis> osmosis --rb file=AM.osm.pbf --mw file=AM.map
PS C:Progsosmosis> osmosis --rx file=AM.osm --mw file=AM.map type=hd
I got this error:
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.46
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
java.lang.NoClassDefFoundError: gnu/trove/procedure/TShortIntProcedure
at org.mapsforge.map.writer.model.MapWriterConfiguration.loadTagMappingFile(MapWriterConfiguration.java:351)
at org.mapsforge.map.writer.osmosis.MapFileWriterFactory.createTaskManagerImpl(MapFileWriterFactory.java:58)
at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory.createTaskManager(TaskManagerFactory.java:60)
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:51)
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)
Caused by: java.lang.ClassNotFoundException: gnu.trove.procedure.TShortIntProcedure
at org.java.plugin.standard.StandardPluginClassLoader.loadClass(StandardPluginClassLoader.java:330)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more
openstreetmap java android osmosis mapsforge
add a comment |
I have download latest version (0.46) of osmosis from
https://wiki.openstreetmap.org/wiki/Osmosis#Downloading
and mapsforge-map-writer-0.9.1.jar from http://search.maven.org/#search%7Cga%7C1%7Cmapsforge-map
and map ("AM.osm") from
http://be.gis-lab.info/data/osm_dump/dump/latest/
I'm on Windows-7 64-bit Professional and JDK 1.8u45
I unpacked osmosis to: "c:Progsosmosis"
I created a folder called "plugins" in "c:Progsosmosis" (>> so: "c:Progsosmosisplugins")
In the plugins folder I put the file "mapsforge-map-writer-0.9.1.jar"
I put the file "AM.osm.pbf" (and "AM.osm") into "c:Progsosmosis"
I then opened a command-prompt window and executed the following commands:
PS C:Progsosmosis> osmosis --rb file=AM.osm.pbf --mw file=AM.map
PS C:Progsosmosis> osmosis --rx file=AM.osm --mw file=AM.map type=hd
I got this error:
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.46
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
java.lang.NoClassDefFoundError: gnu/trove/procedure/TShortIntProcedure
at org.mapsforge.map.writer.model.MapWriterConfiguration.loadTagMappingFile(MapWriterConfiguration.java:351)
at org.mapsforge.map.writer.osmosis.MapFileWriterFactory.createTaskManagerImpl(MapFileWriterFactory.java:58)
at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory.createTaskManager(TaskManagerFactory.java:60)
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:51)
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)
Caused by: java.lang.ClassNotFoundException: gnu.trove.procedure.TShortIntProcedure
at org.java.plugin.standard.StandardPluginClassLoader.loadClass(StandardPluginClassLoader.java:330)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more
openstreetmap java android osmosis mapsforge
add a comment |
I have download latest version (0.46) of osmosis from
https://wiki.openstreetmap.org/wiki/Osmosis#Downloading
and mapsforge-map-writer-0.9.1.jar from http://search.maven.org/#search%7Cga%7C1%7Cmapsforge-map
and map ("AM.osm") from
http://be.gis-lab.info/data/osm_dump/dump/latest/
I'm on Windows-7 64-bit Professional and JDK 1.8u45
I unpacked osmosis to: "c:Progsosmosis"
I created a folder called "plugins" in "c:Progsosmosis" (>> so: "c:Progsosmosisplugins")
In the plugins folder I put the file "mapsforge-map-writer-0.9.1.jar"
I put the file "AM.osm.pbf" (and "AM.osm") into "c:Progsosmosis"
I then opened a command-prompt window and executed the following commands:
PS C:Progsosmosis> osmosis --rb file=AM.osm.pbf --mw file=AM.map
PS C:Progsosmosis> osmosis --rx file=AM.osm --mw file=AM.map type=hd
I got this error:
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.46
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
java.lang.NoClassDefFoundError: gnu/trove/procedure/TShortIntProcedure
at org.mapsforge.map.writer.model.MapWriterConfiguration.loadTagMappingFile(MapWriterConfiguration.java:351)
at org.mapsforge.map.writer.osmosis.MapFileWriterFactory.createTaskManagerImpl(MapFileWriterFactory.java:58)
at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory.createTaskManager(TaskManagerFactory.java:60)
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:51)
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)
Caused by: java.lang.ClassNotFoundException: gnu.trove.procedure.TShortIntProcedure
at org.java.plugin.standard.StandardPluginClassLoader.loadClass(StandardPluginClassLoader.java:330)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more
openstreetmap java android osmosis mapsforge
I have download latest version (0.46) of osmosis from
https://wiki.openstreetmap.org/wiki/Osmosis#Downloading
and mapsforge-map-writer-0.9.1.jar from http://search.maven.org/#search%7Cga%7C1%7Cmapsforge-map
and map ("AM.osm") from
http://be.gis-lab.info/data/osm_dump/dump/latest/
I'm on Windows-7 64-bit Professional and JDK 1.8u45
I unpacked osmosis to: "c:Progsosmosis"
I created a folder called "plugins" in "c:Progsosmosis" (>> so: "c:Progsosmosisplugins")
In the plugins folder I put the file "mapsforge-map-writer-0.9.1.jar"
I put the file "AM.osm.pbf" (and "AM.osm") into "c:Progsosmosis"
I then opened a command-prompt window and executed the following commands:
PS C:Progsosmosis> osmosis --rb file=AM.osm.pbf --mw file=AM.map
PS C:Progsosmosis> osmosis --rx file=AM.osm --mw file=AM.map type=hd
I got this error:
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.46
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
ьр 23, 2018 9:46:43 AM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
java.lang.NoClassDefFoundError: gnu/trove/procedure/TShortIntProcedure
at org.mapsforge.map.writer.model.MapWriterConfiguration.loadTagMappingFile(MapWriterConfiguration.java:351)
at org.mapsforge.map.writer.osmosis.MapFileWriterFactory.createTaskManagerImpl(MapFileWriterFactory.java:58)
at org.openstreetmap.osmosis.core.pipeline.common.TaskManagerFactory.createTaskManager(TaskManagerFactory.java:60)
at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.buildTasks(Pipeline.java:51)
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)
Caused by: java.lang.ClassNotFoundException: gnu.trove.procedure.TShortIntProcedure
at org.java.plugin.standard.StandardPluginClassLoader.loadClass(StandardPluginClassLoader.java:330)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more
openstreetmap java android osmosis mapsforge
openstreetmap java android osmosis mapsforge
asked May 23 '18 at 6:55
Евгений ГуреевЕвгений Гуреев
224
224
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The problem is solved:
there were not enough dependencies, need to download link "jar-with-dependencies.jar"
Error java.lang.OutOfMemoryError is solved by parameter "type=hd" (default "type=ram"):
C:Progsosmosis> osmosis --rb file=local.osm.pbf --mw file=local.osm.map type=hd
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f283834%2fconvert-osm-pbf-to-map-for-mapsforge%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The problem is solved:
there were not enough dependencies, need to download link "jar-with-dependencies.jar"
Error java.lang.OutOfMemoryError is solved by parameter "type=hd" (default "type=ram"):
C:Progsosmosis> osmosis --rb file=local.osm.pbf --mw file=local.osm.map type=hd
add a comment |
The problem is solved:
there were not enough dependencies, need to download link "jar-with-dependencies.jar"
Error java.lang.OutOfMemoryError is solved by parameter "type=hd" (default "type=ram"):
C:Progsosmosis> osmosis --rb file=local.osm.pbf --mw file=local.osm.map type=hd
add a comment |
The problem is solved:
there were not enough dependencies, need to download link "jar-with-dependencies.jar"
Error java.lang.OutOfMemoryError is solved by parameter "type=hd" (default "type=ram"):
C:Progsosmosis> osmosis --rb file=local.osm.pbf --mw file=local.osm.map type=hd
The problem is solved:
there were not enough dependencies, need to download link "jar-with-dependencies.jar"
Error java.lang.OutOfMemoryError is solved by parameter "type=hd" (default "type=ram"):
C:Progsosmosis> osmosis --rb file=local.osm.pbf --mw file=local.osm.map type=hd
answered May 24 '18 at 9:04
Евгений ГуреевЕвгений Гуреев
224
224
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f283834%2fconvert-osm-pbf-to-map-for-mapsforge%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown