NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I want to use this style in my tile server. I am using Carto for creating mapnik.xml. It says I need to supply .mml file for converting it to mapnik xml.

[carto: please pass either a .mml file or .mss file]

But this style contains only yml file.

Is there any way so that I can convert an yml file to mml file or mapnik xml?

asked 10 Aug '18, 18:18

anuranpal's gravatar image

anuranpal
21101215
accept rate: 0%


Carto supports yml files directly since v0.16 (more than 2 years ago). If your carto version is older, try updating. If you have a current carto version, what exactly is the command you are executing?

permanent link

answered 10 Aug '18, 19:44

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

@Frederik.Thank you so much. I have a current carto version. I am using- sudo sh -c "carto project.yml > hot.xml". This command seems to be not working for .yml files.

(11 Aug '18, 03:33) anuranpal

Same here: carto project.yml > myxml.xml

But error: carto: please pass either a .mml file or .mss file

carto -v 1.2.0

(28 Nov '19, 09:13) cybercoder

Try renaming project.yml to project.mml.

(28 Nov '19, 11:04) Frederik Ramm ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×362
×23
×16

question asked: 10 Aug '18, 18:18

question was seen: 2,926 times

last updated: 28 Nov '19, 11:04

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum