<div dir="ltr"><div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">Thanks.</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">Indeed the message has disappeared... for this one with this request:</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">http://.../mapserv.exe?MAP=C:/ms4w/Apache/site/mapfile/vue_prescription_pgts_wfs.map&mode=tile&tilemode=gmap&tile=4113+2867+13&layers=prescription</div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">
msDrawMap(): Image handling error. Unable to initialize image.
msPrepareImage(): Image handling error. Unable to initialize image.<br><br></div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">According to your documentation, I have modified my js url. <br></div><div style="font-family:arial,sans-serif;font-size:large" class="gmail_default">But obviously, the problem is first of all in the mapfile. I have defined an extent for the layer that is smaller than the map extent. No effect.</div><br clear="all"></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 ven. 25 juil. 2025 à 14:21, Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</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"><u></u><div><div>Hi,</div><div><br></div><div>The curly brackets are for placeholders in your JS application. These are replaces by the XYZ indexes of the tile.</div><div>Try the following request:</div><div><br></div><div>C:/ms4w/Apache/site/mapfile/vue_prescription_pgts_wfs.map&mode=tile&tilemode=gmap&tile=12+447+1988&layers=prescription&</div><div><br></div><div>There is a full working example in the MapServer workshop at: <a href="https://geographika.github.io/getting-started-with-mapserver/outputs/tiles/" target="_blank">https://geographika.github.io/getting-started-with-mapserver/outputs/tiles/</a></div><div><br></div><div>Seth<br></div><div><br></div><div id="m_7227634750431255815sig62266145"><div>--</div><div>web:<a href="https://geographika.net" target="_blank">https://geographika.net</a> & <a href="https://mapserverstudio.net" target="_blank">https://mapserverstudio.net</a></div><div>mastodon: @<a href="mailto:geographika@mastodon.social" target="_blank">geographika@mastodon.social</a></div></div><div><br></div><div>On Fri, Jul 25, 2025, at 2:11 PM, mathias cunault via MapServer-users wrote:</div><blockquote type="cite" id="m_7227634750431255815qt"><div dir="ltr"><div><div style="font-family:arial,sans-serif;font-size:large">Mapserver 7.6</div><div style="font-family:arial,sans-serif;font-size:large">I try to create MapBox vectorTile to use with Openlayers.</div><div style="font-family:arial,sans-serif;font-size:large"><div>Here is my mapfile :</div><div>MAP</div><div> NAME " WFS Prescription"</div><div> <br></div><div> SIZE 256 256</div><div> <br></div><div> FONTSET "C:\ms4w\Apache\site\fonts\fonts.txt"</div><div> <br></div><div> OUTPUTFORMAT</div><div> NAME "mvt"</div><div> DRIVER "MVT"</div><div> MIMETYPE "application/vnd.mapbox-vector-tile"</div><div> EXTENSION "pbf"</div><div> END</div><div><br></div><div> EXTENT -7029101.058003008 -2435968.9856906775 6204182.853414171 6634638.986072871 #xmin ymin xmax ymax </div><div><br></div><div> UNITS METERS</div><div> DEBUG 5</div><div> CONFIG "CPL_DEBUG" "ON"</div><div> CONFIG "PROJ_DEBUG" "ON"</div><div> CONFIG MS_ERRORFILE "C:/ms4w/Apache/error/errorMapFile_prescription_pgts.txt"</div><div> <br></div><div> SYMBOLSET "C:\ms4w\Apache\site\symbols\symbols.sym"</div><div><br></div><div> PROJECTION # proj de sortie</div><div> "init=epsg:3857"</div><div> END</div><div> <br></div><div> WEB </div><div> METADATA</div><div> "wfs_title" "WFS-Inrap, Prescription"</div><div> "wfs_onlineresource" "http://.../mapserv.exe?MAP=C:/ms4w/Apache/site/mapfile/vue_prescription_pgts_wfs.map&"</div><div> "wfs_srs" "EPSG:3857 EPSG:900913"</div><div> "wfs_enable_request" "*"</div><div> "wfs_abstract" "WFS diffusant la couche prescrition_pgts de Caviar pour l'application Iliad."</div><div> "wms_srs" "EPSG:3857"</div><div> END #fin metadata</div><div> END #end web</div><div><br></div><div>LAYER</div><div> NAME "prescription"</div><div> TYPE POLYGON</div><div> CONNECTIONTYPE POSTGIS</div><div> CONNECTION "host=xxxx dbname=xxx user=xxx password=xxx port=5432"</div><div> DATA "geom from iliad.prescription_pgts as foo using unique gid using SRID=3857"</div><div> PROCESSING "CLOSE_CONNECTION=DEFER"</div><div> #PROCESSING "TILE_DATASET=true"</div><div> METADATA</div><div> "gml_include_items" "all" #obligé pour afficher attributs getfeatureinfo</div><div> "wfs_title" "Inrap Prescription"</div><div> "wfs_srs" "EPSG:3857" car le même que section WEB, inutile.</div><div> "ows_featureid" "gid"</div><div> "wfs_enable_request" "*"</div><div> "wfs_getfeature_formatlist" "geojson, application/json, json"</div><div> "wfs_use_default_extent_for-getfeature" "false"</div><div> END #fin metadata prescription</div><div> TEMPLATE "bidon.html" #obligé pour afficher attributs getfeatureinfo</div><div>END #fin layer prescription</div><div>END</div></div><div style="font-family:arial,sans-serif;font-size:large">First, I test with a request like :</div><div style="font-family:arial,sans-serif;font-size:large">http://.../mapserv.exe?MAP=C:/ms4w/Apache/site/mapfile/vue_prescription_pgts_wfs.map&mode=tile&tilemode=gmap&tile={12}+{447}+{1988}&layers=prescription&</div><div style="font-family:arial,sans-serif;font-size:large"><div>All I get is :</div><div> msDrawMap(): Image handling error. Unable to initialize image.
msPrepareImage(): Image handling error. Unable to initialize image. </div></div><div style="font-family:arial,sans-serif;font-size:large">SUPPORTS=PBF is in mapserv.exe -v</div><div style="font-family:arial,sans-serif;font-size:large">EXTENT is that of my data.</div><div style="font-family:arial,sans-serif;font-size:large">I did not find any leads in RFC-119 (but I don't understand all that I read.)</div></div><div><div style="font-family:arial,sans-serif;font-size:large">I have no idea how to solve this problem.</div></div><div><br></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span style="font-size:18px">Cordialement,</span></div><div><div><br></div><div><i style="font-size:small">----------</i></div><div><span style="font-size:10px"><i>Mathias Cunault</i></span></div></div></div><div><span style="font-size:10px"><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></span><span style="font-size:10px"></span></div><div><span style="font-size:10px">abonn</span><i style="font-size:small"></i><span style="font-size:10px">ez-vous à la lettre d'information de l'Inrap : <a href="http://www.inrap.fr/newsletter.php" target="_blank">http://ww</a></span><span style="font-size:10px"><a href="http://www.inrap.fr/newsletter.php" target="_blank">w.inrap.fr/newsletter.php</a></span></div></div></div></div></div></div></div></div></div></div></div></div></div><div>_______________________________________________</div><div>MapServer-users mailing list</div><div><a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a></div><div><a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a></div><div><br></div></blockquote><div><br></div></div></blockquote></div>