In your .map file do you have the MVT format defined, something like:
OUTPUTFORMAT
NAME "mvt"
DRIVER MVT
FORMATOPTION "EDGE_BUFFER=10"
END
On 9/7/22 12:38, karsten wrote:
Thanks Scott,
I do have a tileset like this below
<tileset name="flurst_utf_tiles">
<metadata>
<title>Flurst UTF</title>
<abstract>Flurst UTF</abstract>
</metadata>
<source>flurst_utf</source>
<cache>disk</cache>
<grid restricted_extent="727077.513504722 6536256.08499261
754566.10585149 6562363.18993406">GoogleMapsCompatible</grid>
<format>mvt</format>
<metatile>5 5</metatile>
<metabuffer>10</metabuffer>
<expires>3600</expires>
</tileset>
but also with this get the error
tileset "flurst_utf_tiles" references format "mvt", but it is not configured
------------------------------------------------------------------------
*From:* karsten [mailto:kars...@terragis.net]
*Sent:* Wednesday, September 07, 2022 12:08
*To:* 'mapserver-users@lists.osgeo.org'
*Subject:* Creating UTF grids with MapServer and MapCache
Hi All,
I am working on a correct configuration to cerate UTFGrid json tiles via
MapCache and MapServerto seed a json tile set
MapCache is up and running on my ubuntu 20 server and WMS requests (PNG,
Jpeg ) are working as is the seeding utility.
Now I am trying to add a UTFGrid tile layer and added the mvt format
into the (working for the other layers correctly) mapcache.xml:
<format name="MVT" type="RAW">
<extension>mvt</extension>
<mime_type>application/vnd.mapbox-vector-tile</mime_type>
</format>
the layer is
<source name="flurst_utf" type="wms">
<getmap>
<params>
<FORMAT>mvt</FORMAT>
<LAYERS>flurst</LAYERS>
<MAP>/var/mapdata/utfgrid.map</MAP>
</params>
</getmap>
<http>
<url>http://myserver/cgi-bin/mapserv</url>
</http>
</source>
When tryign to restrart apache however I get this error message
systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled;
vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-09-07 20:31:58
CEST; 28s ago
Docs: https://httpd.apache.org/docs/2.4/
<https://httpd.apache.org/docs/2.4/>
Process: 1265907 ExecStart=/usr/sbin/apachectl start (code=exited,
status=1/FAILURE)
Sep 07 20:31:58 terraz systemd[1]: Starting The Apache HTTP Server...
Sep 07 20:31:58 terraz apachectl[1265919]: AH00526: Syntax error on line
43 of /etc/apache2/sites-enabled/000-default.conf:
Sep 07 20:31:58 terraz apachectl[1265919]: tileset "flurst_utf_tiles"
references format "mvt", but it is not configured
Sep 07 20:31:58 terraz apachectl[1265907]: Action 'start' failed.
What am I missing here ?
Thanks
Karsten Vennemann
www.terragis.net <http://www.terragis.net>
_______________________________________________
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