[mapserver-users] Point between 2 tiles disappearing

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Mon Jan 20 12:41:39 PST 2014


MapServer expands the search extent slightly based on feature definitions (e.g. marker size, etc...) so that partial features are captured and rendered. That should take care of a case like this. What are you using to do the tiling (i.e. mapcache, tilecache, mode=tile)?

Steve

________________________________
From: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org] on behalf of Geo-6 [support at geo6.be]
Sent: Monday, January 20, 2014 4:13 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Point between 2 tiles disappearing

Hello,

I forgot to say that Leaflet access to MapServer via WMS.

Here is a copy of the MAP file :

MAP
       NAME "SEVESO"
       STATUS ON
       SIZE 500 500
       EXTENT -500000 -500000 500000 500000
       IMAGECOLOR 255 255 255
       SYMBOLSET "C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin/mapserv_6_4/ms/symbols.txt"
       FONTSET "C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin/mapserv_6_4/ms/fonts.txt"
       PROJ_LIB "C:/Program Files/Apache Software Foundation/Apache2.4/cgi-bin/mapserv_6_4/proj/SHARE/"

       PROJECTION
             "init=epsg:31370"
       END

       WEB
             IMAGEPATH "C:/Temp/"
             IMAGEURL "/Temp/"
             METADATA
                    "wms_title" "Seveso"
                    "wms_enable_request" "*"
                    "wms_srs" "EPSG:31370"
                    "wms_feature_info_mime_type" "text/plain"
             END
       END

       LEGEND
             STATUS ON
             IMAGECOLOR 255 255 255
             LABEL
                    TYPE truetype
                    FONT verdana
                    SIZE 8
                    COLOR 80 80 80
             END
       END

       LAYER
             NAME "SevesoSites"
             STATUS ON
             TYPE POINT
             CONNECTIONTYPE OGR
             CONNECTION "C:/Seveso.tab"
             TOLERANCE 10
             TOLERANCEUNITS PIXELS
             DUMP TRUE
             TEMPLATE "dummy.html"
             METADATA
                    "wms_title" "Seveso"
                    "wms_enable_request" "*"
                    "wms_include_items" "all"
             END
             CLASS
                    NAME "Seuil haut / Hoge drempel"
                    EXPRESSION ([Type] = 2)
                    STYLE
                           SYMBOL "square"
                           COLOR 255 0 0
                           SIZE 8
                    END
             END
             CLASS
                    NAME "Seuil bas / Lage drempel"
                    EXPRESSION ([Type] = 1)
                    STYLE
                           SYMBOL "square"
                           COLOR 255 128 0
                           SIZE 6
                    END
             END
       END #LAYER

END #MAP

Thanks :)

Jonathan Beliën
Geo-6

De : Lime, Steve D (MNIT) [mailto:Steve.Lime at state.mn.us]
Envoyé : vendredi 17 janvier 2014 00:28
À : Geo-6; mapserver-users at lists.osgeo.org
Cc : ms4w-users at lists.maptools.org
Objet : RE: [mapserver-users] Point between 2 tiles disappearing

What’s the layer definition look like?

From: mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org> [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Geo-6
Sent: Thursday, January 16, 2014 11:06 AM
To: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Cc: ms4w-users at lists.maptools.org<mailto:ms4w-users at lists.maptools.org>
Subject: [mapserver-users] Point between 2 tiles disappearing

Hi everyone,

I use MS4W (see below for more information on my version of MapServer) with Leaflet.
The projection system I use is EPSG:31370 (see below for proj4 definition).

Sometimes, at certain zoom level, when a point is between 2 tiles, the point is not shown.
Here are some screenshots :

Resolution = 10


Resolution = 5


Resolution = 2


Resolution = 1


You can see at resolution = 1 that the symbol is “cut”.

How can I fix this ?

Thanks a lot for your help and sorry for my English.

MS4W:
MapServer version 6.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=GD SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE]

EPSG:31370:
+proj=lcc +lat_1=51.16666723333333 +lat_2=49.8333339 +lat_0=90 +lon_0=4.367486666666666 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +towgs84=-106.869,52.2978,-103.724,0.3366,-0.457,1.8422,-1.2747 +units=m +no_defs

Jonathan Beliën
Geo-6

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140120/e7b53e95/attachment-0001.html>


More information about the mapserver-users mailing list