My branch (https://github.com/sdlime/mapserver/tree/vector-tiles) is the one to try. You should be able build it as you would any other branch – using cmake. You need protobuf and protobuf-c installed to be able to compile things though.
Configuring MVT output is really quite similar to configuring WFS or WMS output. The MVT renderer relies on the WFS/WMS/OWS/GML metadata items to define what fields should be output and what they should be named. In my demo https://github.com/sdlime/mapserver/tree/vector-tiles the MVT related configuration is pretty much just the gml_* metadata items associated with each layer. I’m mapping shapefile fields to standard names in the MVT output for consistency – so every feature has a name and a unique id. The id is referenced in the MVT specs (https://github.com/mapbox/vector-tile-spec) and must be unique within a layer. From there it’s just a matter of setting the image type. In the case of the demo I do that remotely – as a parameter in the service URL but I could just as easily just set IMAGETYPE ‘mvt’ in the mapfile. How are you computing tile bounds, etc…? The demo (https://github.com/sdlime/mvt-demo) runs without map cache and uses MapServer mode=tile to handle extent computation and so forth. Steve From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Erik H Sent: Sunday, February 04, 2018 2:04 PM To: mapserver-users@lists.osgeo.org Subject: [mapserver-users] Status of MVT vector tiles? Hello I'm very interested in MapBox Vector Tiles, because I'd like to do client-side rendering. I found a branch in several github clones (tbonfort,sdlime) but it's not clear to me if/how I could try them out. My setup is perhaps a little unusual: I run a small cluster of Java-based web servers, each of which links to the MapServer shared library. I therefore do not use WMS or MapCache. How would I configure a .map file to generate a .mvt file? Is this even possible? In Steve's mvt-demo, I see a parameter 'map.imagetype=mvt' hidden in a JSON file, but nothing in the .map file seems to indicate that a .mvt should be created. Thanks, Erik
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users