<div dir="ltr"><div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">Finally, I use MVT mode successfully. Here is what I did if it can help (and I will probably read my own lines in few months !)</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">- installed Mapserver with MS4W 5</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">- followed instructions (readme.txt) to replace old mapserver & Apache with new ones. Not as easy as it sounds because...</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">- had to install the VSC++ in the ms4w/tmp, not the most recent one, for Apache (otherwise php conflict according to the log).</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">- in httpd.conf of Apache change DocumentRoot to define my storage of mapfiles.</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">- in c:/ms4w/ms4w.conf, defined my own MS_MAP_PATTERN to stick to the mapfile root just above.</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">- in mapfile :</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default"> - OutputFormat mvt according to the doc <a href="https://mapserver.org/output/tile_mode.html">https://mapserver.org/output/tile_mode.html</a></div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default"> - did not use tile_map_edge_buffer nor tile_metatile_level or in Openlayers there were problems of rendering as polygons where "moving" from here to there on the map each time I moved the map.</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">- At last in openLayers : in a VectorTileSource, set an url like this : 

<div style="color:rgb(171,178,191);background-color:rgb(40,44,52);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:15px;line-height:20px;white-space:pre"><div><span style="color:rgb(152,195,121)">http://.../cgi-bin/mapserv.exe?MAP=C:/ms4w/Apache/site/mapfile/vue_prescription_pgts_wfs.map&"</span><span style="color:rgb(171,178,191)"> </span><span style="color:rgb(86,182,194)">+</span></div><div><span style="color:rgb(171,178,191)">    </span><span style="color:rgb(152,195,121)">"mode=tile&tilemode=gmap&tile={x}+{y}+{z}&LAYERS=prescription&map.imagetype=mvt"</span></div></div></div></div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">and now it works fine. </div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default"><br></div></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><font size="4">Cordialement,</font><br></div><div><br><div><i style="font-size:small">----------</i></div><div><font size="1"><i>Mathias Cunault</i><br></font></div></div></div><div><font size="1"><i>référent SIG / Admin Caviar<br></i><i><i>Inrap Tours - </i>148 av. Maginot<br>37000 TOURS<br>06 32 05 98 96</i></font><font size="1"><br></font></div><div><font size="1">abonn</font><i style="font-size:small"></i><font size="1">ez-vous à la lettre d'information de l'Inrap : <a href="http://www.inrap.fr/newsletter.php" target="_blank">http://ww</a></font><font size="1"><a href="http://www.inrap.fr/newsletter.php" target="_blank">w.inrap.fr/newsletter.php</a></font><br></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Le sam. 26 juil. 2025 à 10:44, Jeff McKenna via MapServer-users <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Also be sure to always define a PROJECTION block for each of your layers.<br>
<br>
Have a nice weekend,<br>
<br>
-jeff<br>
<br>
<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev<br>
co-founder of FOSS4G<br>
<a href="http://gatewaygeo.com/" rel="noreferrer" target="_blank">http://gatewaygeo.com/</a><br>
<br>
<br>
<br>
On 2025-07-25 1:42 p.m., Jeff McKenna wrote:<br>
> Hi Mathias,<br>
> <br>
> What happens if you try in your request: &TILE=0+0+0 (and remove the <br>
> &map.imagetype part) ?<br>
> <br>
> (that's what I did while documenting steps for the page https:// <br>
> <a href="http://mapserver.org/output/tile_mode.html" rel="noreferrer" target="_blank">mapserver.org/output/tile_mode.html</a> )<br>
> <br>
> Recent MS4W versions also include an MVT demo as well as a local.map <br>
> test file, so you could:<br>
> <br>
> <br>
> - first try in your browser <a href="http://127.0.0.1/cgi-bin/mapserv.exe?MAP=/" rel="noreferrer" target="_blank">http://127.0.0.1/cgi-bin/mapserv.exe?MAP=/</a> <br>
> ms4w/apps/local-demo/ <br>
> local.map&MODE=tile&TILEMODE=gmap&TILE=0+0+0&LAYERS=countries  (you <br>
> should see a map image of the world countries in your browser)<br>
> <br>
> - then add your OUTPUTFORMAT for MVT into local.map, and then try:<br>
> <br>
> <a href="http://127.0.0.1/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/" rel="noreferrer" target="_blank">http://127.0.0.1/cgi-bin/mapserv.exe?MAP=/ms4w/apps/local-demo/</a> <br>
> local.map&MODE=tile&TILEMODE=gmap&TILE=0+0+0&LAYERS=countries&map.imagetype=mvt<br>
> <br>
> If that fails, you might have to upgrade your MS4W version.<br>
> <br>
> But if that works, I would then paste your "prescription" layer into <br>
> local.map, and reload that same request in your browser.<br>
> <br>
> thanks,<br>
> <br>
> (and thanks for using MS4W)<br>
> <br>
> -jeff<br>
> <br>
> <br>
> <br>
<br>
<br>
_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div>