Could not load POI category configuration from XML when creating POIs. #33
-
|
The following command ./map-creator.sh europe/albania hd en,de,fr,es 6 crashes with this error output: `` Jun 09, 2021 5:55:14 PM org.openstreetmap.osmosis.core.Osmosis main `` The creation of the map file works fine. What could be the reasons for the POI creation failure? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 7 replies
-
|
Try with Osmosis 0.47. Testing the following command with Java 11, it works fine. map-creator.sh europe/andorra ram en,de,fr,es 2 |
Beta Was this translation helpful? Give feedback.
-
|
The test was done with Osmosis 0.47 and Java 11 on linux and the latest map-writer / poi-writer and everything works fine. mapsforge-map-writer-master-20210527.154736-408-jar-with-dependencies.jar You can run the POI command (see the documentation) outside mapsforge-creator. |
Beta Was this translation helpful? Give feedback.
-
What Java distribution and version do they have, AdoptOpenJDK 11 LTS? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the link to this discussion I switched to Java 11 and poiwriter 0.25 I downloaded the last bremen.osm.pbf from geofabrik but the unmarshaller error is always there. `` `` I want to switch from a old but well running system with Ubuntu 16 and mapsforge 0.8 to a new machine as the old python 2.7 script does not work with python 3. |
Beta Was this translation helpful? Give feedback.
-
|
I did now install java 11 from adoptium.net and made a new try as root |
Beta Was this translation helpful? Give feedback.
-
|
I don't know why some of you have these problems. All this time here everything works correctly. My latest tests are on Debian with Java 17 and 21 (internal and external) with Osmosis 0.47 |
Beta Was this translation helpful? Give feedback.
-
|
I will try java 21 from adoptium.net. Which Debian distribution is used on the server? The laptop I use is an older machine which I use only for testing. |
Beta Was this translation helpful? Give feedback.
-
|
Now it works
Line 2 in the poi-mapping.xml is now: or All my old seamark_poi_tagmapping.xml now run if I do step 4 changing line 2 in all this files. |
Beta Was this translation helpful? Give feedback.
-
|
A problem with such solution is that the validation of the xml in the editors Also important is why suddenly and only some users need such solution. |
Beta Was this translation helpful? Give feedback.
Removing the following from the "https://github.com/mapsforge/mapsforge/blob/master/mapsforge-poi-writer/src/main/config/poi-mapping.xml" fixes the problem:
xmlns="http://mapsforge.org/poi-mapping" xsi:schemaLocation="http://mapsforge.org/poi-mapping https://raw.githubusercontent.com/mapsforge/mapsforge/master/resources/poi-mapping.xsd"