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

Lime, Steve D (MNIT) steve.lime at state.mn.us
Wed Aug 8 11:14:07 PDT 2018


I’ll have a look at this too. My demo instance had a point player so it certainly should be working. Can you share your data (contact me off list if you’d like)? --Steve

From: mapserver-users [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Caleb Lee
Sent: Wednesday, August 08, 2018 12:40 PM
To: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>; mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Getting an empty MVT output for a point layer

I will be away for a while so I cannot do that right now. However, I can do that probably early next week.

If it helps, I just tried WMS request to generate both png and mvt and I got the similar result:

1. WMS request with FORMAT set to image/png
    - I got a png image with 50k points drawn)

mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=image/png

2. WMS request with application/x-protobuf
    - got the same result like the following:

       nodesIdName(€ x

mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf<http://xxx.com/cgi-bin/mapserv?map=D:\home\site\wwwroot\100k_3857_node.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&layers=nodes&width=800&height=600&srs=epsg:3857&STYLES=&bbox=-8979930,4769116,-8362889,5173075&FORMAT=application/x-protobuf>

Thanks,

Caleb
________________________________
From: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>>
Sent: Wednesday, August 8, 2018 12:00 PM
To: Caleb Lee; mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Subject: Re: Getting an empty MVT output for a point layer


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<mailto: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/b3f8147b/attachment.htm>


More information about the MapServer-users mailing list