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