[mapserver-users] Getting an empty MVT output for a point layer

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Wed Aug 8 09:00:42 PDT 2018


Hi,

We do not have your data for testing but please modify your mapfile a bit and make it to work with some public dataset, like Natural Earth populated places https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_populated_places.zip<https://www.naturalearthdata.com/http/www.naturalearthdata.com/download/110m/cultural/ne_110m_populated_places.zip>?

-Jukka Rahkonen.

Lähettäjä: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] Puolesta Caleb Lee
Lähetetty: 8. elokuuta 2018 17:47
Vastaanottaja: mapserver-users at lists.osgeo.org
Aihe: [mapserver-users] Getting an empty MVT output for a point layer

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.

Here is the URL that I use to get MVT output:
mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&mode=tile&tilemode=gmap&tile=18+24+6&layers=nodes&map.imagetype=mvt

Here is the map file:

MAP
  EXTENT -9036156 4707746 -8243569 5174793
  CONFIG "PROJ_LIB" "D:\proj\SHARE"
  NAME "TestMap"

  WEB
    METADATA
      "ows_enable_request" "*"
    END
  END

  PROJECTION
   "init=epsg:3857"
  END

  OUTPUTFORMAT
    NAME "mvt"
    DRIVER MVT
    FORMATOPTION "EDGE_BUFFER=20"
  END

  LAYER
    NAME "nodes"
    TYPE POINT
    STATUS DEFAULT
    CONNECTIONTYPE PLUGIN
    PLUGIN "msplugin_mssql2008.dll"
    CONNECTION "Connection to SQL Server Spatial"
    DATA "GeomCol from MyTable USING UNIQUE id USING SRID=3857"
    CLASS
      STYLE
        COLOR 0 0 0
      END
    END
    PROJECTION
      "+init=epsg:3857"
    END

    METADATA
      "wfs_title"                  "WFS service for Nodes"
      "wfs_srs"                    "EPSG:3857 EPSG:4326"
      "wfs_abstract"               "WFS service for Nodes"
      "wfs_enable_request"         "*"
      "gml_include_items"          "all"
    END
  END

END

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.

Any suggestions would be greatly appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20180808/5e0591ba/attachment.htm>


More information about the MapServer-users mailing list