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? |
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 |
|
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. |
What Java distribution and version do they have, AdoptOpenJDK 11 LTS? |
|
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. |
|
I did now install java 11 from adoptium.net and made a new try as root |
|
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 |
|
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. |
|
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. |
|
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. |
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"