[mapserver-users] Get mvt ouput

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Apr 1 05:19:25 PDT 2019


You can get MVT output through a CGI mode=tile call, such as:

http://127.0.0.1/cgi-bin/mapserv.exe?
MAP=/ms4w/apps/mvt-demo/demo.map&
mode=tile&
tilemode=gmap&
tile=986+1445+12&
layers=all&
map.imagetype=mvt

This leverages a specific outputformat set in your mapfile, as:

   OUTPUTFORMAT
     NAME "mvt"
     DRIVER MVT
     FORMATOPTION "EDGE_BUFFER=20"
   END

You can view that demo in action at: https://ms4w.me/mvt-demo/index.html

The source of that demo is thanks to Steve Lime (download it at 
https://github.com/sdlime/mvt-demo or it is also included now in all 
MS4W installations https://ms4w.com)

Hope that info helps a little,

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/



On 2019-04-01 3:22 AM, BrainDrain wrote:
> Hello!
> Is it possible to get map output (postis layers, custom projection) using
> vector type output format somehow?
> Cgi app (as wms service or mode=map)  doesn't allow it as well as mapscript
> (c# bindings).
> Thank you very much!
> 
> 



More information about the mapserver-users mailing list