[OSM-dev] Evaluate layer list from CartoCSS style

Stadin, Benjamin Benjamin.Stadin at heidelberg-mobil.com
Mon Aug 29 12:10:06 UTC 2016

Thanks for your response. I indeed want to recreate the OSM style (or
adapt it, then recreate from that style).

Seems parsing these files would fairly simple. Though is there a default
implementation that handles the style parsing (in case I need to fetch
other style info which I do not forsee yet)?

Am 29.08.16, 05:28 schrieb "Paul Norman" unter <penorman at mac.com>:

>On 8/28/2016 8:07 AM, Stadin, Benjamin wrote:
>> we’re defining the data structure for the next version of our 3D map, a
>> basic feature of it is the indoor capability. I could write more about
>> background, but to keep it short for now: I need to generate an ordered
>> list of layers with their table names in the rendering db, so ordered
>> „bottom layer to top layer“, out of a Carto CSS style definition (e.g.
>> from the actual OSM style def.
>> https://github.com/gravitystorm/openstreetmap-carto).
>The typical osm2pgsql rendering database does not have layers. It has
>tables for points, lines, polygons, and one for data commonly used at
>low zooms.
>OpenStreetMap Carto comes with layers, but these are not layers in the
>traditional GIS sense. They are layers which are rendered and the layer
>definitions are not intended to be meaningful outside of the specific
>style. These regularly change between style versions and copying them is
>a bad idea unless you want to recreate that specific style.
>If you do want to do that, the style definitions are in YAML and should
>be easy to parse.
>dev mailing list
>dev at openstreetmap.org

More information about the dev mailing list