<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>I am using MapServer 7.2.0 to generate mvt for two layers (one line layer and one point layer). I am able to generate mvt output for a line layer but is having problem with a point layer. The mvt output is kind of empty (just contains layer name and column
names). I am getting correct geojson outputs for both layers using WFS.<br>
</span>
<div><br>
</div>
<div>Here is the URL that I use to get MVT output:<br>
</div>
<div>mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&mode=tile&tilemode=gmap&tile=18+24+6&layers=nodes&map.imagetype=mvt<br>
</div>
<div><br>
</div>
<div>Here is the map file:<br>
</div>
<div><br>
</div>
<div>MAP<br>
</div>
<div> EXTENT -9036156 4707746 -8243569 5174793<br>
</div>
<div> CONFIG "PROJ_LIB" "D:\proj\SHARE"<br>
</div>
<div> NAME "TestMap"<br>
</div>
<div><br>
</div>
<div> WEB<br>
</div>
<div> METADATA<br>
</div>
<div> "ows_enable_request" "*"<br>
</div>
<div> END<br>
</div>
<div> END<br>
</div>
<div><br>
</div>
<div> PROJECTION<br>
</div>
<div> "init=epsg:3857"<br>
</div>
<div> END<br>
</div>
<div><br>
</div>
<div> OUTPUTFORMAT<br>
</div>
<div> NAME "mvt"<br>
</div>
<div> DRIVER MVT<br>
</div>
<div> FORMATOPTION "EDGE_BUFFER=20"<br>
</div>
<div> END<br>
</div>
<div><br>
</div>
<div> LAYER<br>
</div>
<div> NAME "nodes"<br>
</div>
<div> TYPE POINT<br>
</div>
<div> STATUS DEFAULT<br>
</div>
<div> CONNECTIONTYPE PLUGIN<br>
</div>
<div> PLUGIN "msplugin_mssql2008.dll"<br>
</div>
<div> CONNECTION "Connection to SQL Server Spatial"<br>
</div>
<div> DATA "GeomCol from MyTable USING UNIQUE id USING SRID=3857"<br>
</div>
<div> CLASS<br>
</div>
<div> STYLE<br>
</div>
<div> COLOR 0 0 0<br>
</div>
<div> END<br>
</div>
<div> END<br>
</div>
<div> PROJECTION<br>
</div>
<div> "+init=epsg:3857"<br>
</div>
<div> END<br>
</div>
<div><br>
</div>
<div> METADATA<br>
</div>
<div> "wfs_title" "WFS service for Nodes"<br>
</div>
<div> "wfs_srs" "EPSG:3857 EPSG:4326"<br>
</div>
<div> "wfs_abstract" "WFS service for Nodes" <br>
</div>
<div> "wfs_enable_request" "*" <br>
</div>
<div> "gml_include_items" "all"<br>
</div>
<div> END<br>
</div>
<div> END<br>
</div>
<div><br>
</div>
<div>END<br>
</div>
<div><br>
</div>
<div>With almost an identical map file and an url (layer name and table name differ), I am getting a good mvt output for my line layer.<br>
</div>
<div><br>
</div>
<span>Any suggestions would be greatly appreciated.</span><br>
</div>
</body>
</html>