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