Closed muellercornelius closed 1 year ago
- git cloned the official openstreetmap carto
- which left me with this folder:
Besides the test.txt
it also contains a mapnik.xml
which is not part of the osm-carto project by default, so that screenshot is from after running additional steps after cloning.
Try to delete that file, the run.sh
should automatically build the file again if missing. Have a look at the output of the following run
. If the mapnik.xml
is empty, that looks like there was an error compiling it from the project.mml
which might be in the log of it then (if the file already exists, it doesn't try to compile it again and therefore doesn't log an error message from that step).
Possible cause:
This image uses a specific older version (v5.4.0
) of osm-carto that is known to work, and is also adjusting some fonts.
Cloning it yourself will install a newer version that might be incompatible, or is missing the font adjustments.
I ran into the exact same problem and managed to fix it by upgrading carto (the processor that compiles openstreetmap-carto into a single mapnik.xml).
As @Istador pointed out, this project uses outdated openstreetmap-carto@5.4.0. This works fine with carto@0.18.2 which is also outdated. However, you cannot compile a more recent version of openstreetmap-carto because it is using features that carto@0.18.2 does not support. Instead, when running run.sh, carto crashes. The error is not caught and you are left with an empty mapnik.xml:
carto ${NAME_MML:-project.mml} > mapnik.xml
By upgrading carto to its current version 1.2.0, I can now use openstreetmap-carto 5.4.0 as well as the latest release 5.7.0.
thank you very much both of you. That helped a lot. I got it working with the old openstreetmap-carto. But I am looking forward to use the recent one. Thank you ;)
@muellercornelius You are welcome to try out my patch. It enables you to use the latest release of openstreetmap-carto.
On another note, please reopen this issue. It is not solved unless the pull request is merged. Thank you!
Hi Guys ;) I have no clue anymore...
When I just do the import and run it everything works flawlessly but as soon as i use a "custom" style it does not work anymore ;(. I am pretty sure I am missing something but i dont know what...
The error message is:
and yes that is true... but why is it empty?
My steps:
Got a brandnew VM from Linode with Debian 11
installed Docker
created the path /home/osm/
git cloned the official openstreetmap carto
which left me with this folder: Please pay attention to the test.txt file. I created this file to check if the file gets listed when starting the container (it lists all the style files on boot) and yes it does.
ok so at first: --> import
import runs through exactly as the non custom style does.
After that I run it with:
Tja and all those steps leave me with an empty mapnik.xml file...
Does anyone know what i forgot?
Thank you for every help.
PS: Here is the complete output of the run command: