Re: [OSM-dev] Evaluate layer list from CartoCSS style
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 the 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 from „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@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev
Re: [OSM-dev] Experimenting with ClearTables, self-hosted vector tiles, and Tangram client-side rendering
+1 for vector tile diversity. We¹re currently implementing a FlatBuffer based tile format for our rendering needs, because we found that current formats are often quite rendering engine specific. Though we do not want to reinvent the wheel, and try to keep it close to OSM (where possible and useful), but adding some additional stuff for 3D hierarchy data. I hope I can publish the sources of it in some weeks. Ben Am 24.08.16, 08:30 schrieb "Paul Norman" unter: >I've been experimenting with generating my own vector tiles and >client-side rendering with Tangram[1] in order to figure out how to best >write its styling language. > >Tangram is a GL-based renderer written by Mapzen and normally used with >their Tilezen[2] vector tiles, but I'm interested in being able to make >my own vector tiles and different cartographic choices. I also consider >diversity of vector tile schemas important. I hope to avoid a situation >where only large players in the market can get involved like we have >right now. > >For a toolchain I used osm2pgsql with ClearTables[3] and Mapnik via >Kosmtik[4] to write vector tiles. On the demo I'm serving the tiles with >Apache but in development I used Kosmtik because it's xray functionality >is useful. For development I worked in Tangram Play, a web-based editor >that automatically reloads the map when you change the style. > >The cartography and vector tile definitions are loosely based on OSM >Clear[5], a demo style I wrote. As it's a learning exercise I don't >consider the style complete or free of bugs. > >The demo page is on my server at >http://tangram-clear-demo.faramir.paulnorman.ca/ with the style and >vector tile code at https://github.com/ClearTables/tangram-clear-demo. > >I'm not sure what direction I'm going to take next as I don't have any >particular style goals right now, or collaborators. > >[1] https://mapzen.com/products/tangram/ >[2] https://mapzen.com/projects/vector-tiles/ >[3] https://github.com/ClearTables/ClearTables >[4] https://github.com/kosmtik/kosmtik >[5] https://github.com/ClearTables/osm-clear > > >___ >dev mailing list >dev@openstreetmap.org >https://lists.openstreetmap.org/listinfo/dev ___ dev mailing list dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev
[OSM-dev] Evaluate layer list from CartoCSS style
Hi, 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 the 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 from „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). I think there is a better way than parsing the project file and style files on my own, but I didn’t find a good starting point yet. Thanks Ben ___ dev mailing list dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev