Converting .osm to .obj throws error

Hello!
This is my first time using OSM2World and I am trying to convert a .osm file to a .obj using the .osm file found in this tutorial.
(File can be downloaded here: https://jeffish.com/files/osm2fbx/manhattan-buildings.osm)

However, when I navigate command prompt to the OSM2World folder and then run the command to convert the file:
java -jar ./OSM2World.jar -i ./manhattan-buildings.osm -o ./manhattan.obj --performancePrint

I get the No --config paramter line and then the following error:

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.osm2world.core.map_data.data.MapNode.getPos()" because "node" is null
at org.osm2world.core.map_data.creation.MapDataCreationUtil.withoutConsecutiveDuplicates(MapDataCreationUtil.java:13)

at org.osm2world.core.map_data.data.MapArea.(MapArea.java:53)
at org.osm2world.core.map_data.data.MapArea.(MapArea.java:45)

at org.osm2world.core.map_data.creation.OSMToMapDataConverter.createMapElements(OSMToMapDataConverter.java:172)

at org.osm2world.core.map_data.creation.OSMToMapDataConverter.createMapData(OSMToMapDataConverter.java:84)

at org.osm2world.core.ConversionFacade.createRepresentations(ConversionFacade.java:258)
at org.osm2world.console.Output.output(Output.java:97)
at org.osm2world.console.OSM2World.executeArgumentsGroup(OSM2World.java:210)
at org.osm2world.console.OSM2World.main(OSM2World.java:144)

I’m sure it’s something simple that I’m doing wrong.
I cannot open the file in the GUI because it is too big.
I am using the most recent version of OSM2World (downloaded today 11/9/2023), Java 17.09, and Windows 10.
Thanks!

1 post - 1 participant

Read full topic


Ce sujet de discussion accompagne la publication sur https://community.openstreetmap.org/t/converting-osm-to-obj-throws-error/105850