[MapServer-users] getting incomplete parts of a geometry

Scott public at postholer.com
Wed Jan 31 13:09:15 PST 2024


In your .map file try setting:

PROCESSING "POLYLINE_NO_CLIP=True"

On 1/31/24 12:56, Rahkonen Jukka via MapServer-users wrote:
> Hi,
> 
> The client is making tiled requests like this:
> 
> 
> https://ibm-test.containers.wur.nl/mapserver/?map=%2Fetc%2Fmapserver%2FFood_Forest.map&SERVICE=WMS&serverType=mapserver&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&TILED=true&serverType=mapserver&layers=Food_Forest&query_layers=Food_Forest&CRS=EPSG%3A3857&INFO_FORMAT=text%2Fhtml&WIDTH=256&HEIGHT=256&STYLES=&BBOX=664084.9017416127%2C6758256.292862143%2C664696.3979678941%2C6758867.789088425 <https://ibm-test.containers.wur.nl/mapserver/?map=%2Fetc%2Fmapserver%2FFood_Forest.map&SERVICE=WMS&serverType=mapserver&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&TILED=true&serverType=mapserver&layers=Food_Forest&query_layers=Food_Forest&CRS=EPSG%3A3857&INFO_FORMAT=text%2Fhtml&WIDTH=256&HEIGHT=256&STYLES=&BBOX=664084.9017416127%2C6758256.292862143%2C664696.3979678941%2C6758867.789088425>
> 
> This tile contains most part of the parcel. What might happen is that 
> when the client is asking for the next tile to the left, then the BBOX 
> is partially outside the EXTENT that you have configured for the layer. 
> Maybe Mapserver considers that the request is off-site and does not 
> render anything.
> Make your extent bigger or comment it out altogether. Also check the 
> extent at the MAP level. It should cover the whole area where you 
> possibly have data.
> 
> -Jukka Rahkonen-
> 
> *Lähettäjä:* MapServer-users <mapserver-users-bounces at lists.osgeo.org> 
> *Puolesta *Eloi Ribeiro via MapServer-users
> *Lähetetty:* keskiviikko 31. tammikuuta 2024 21.33
> *Vastaanottaja:* mapserver-users at lists.osgeo.org
> *Aihe:* Re: [MapServer-users] getting incomplete parts of a geometry
> 
> Hi,
> 
> That I don't know, but I'll check tomorrow with my colleague that is 
> doing the front-end.
> 
> The URL is https://ibm.wur.nl/ <https://ibm.wur.nl/> and the Basemap and 
> the layer is Food_Forest.
> 
> Eloi
> 
> On Wednesday, January 31st, 2024 at 20:29, Rahkonen Jukka 
> <jukka.rahkonen at maanmittauslaitos.fi 
> <mailto:jukka.rahkonen at maanmittauslaitos.fi>> wrote:
> 
>     Hi,
> 
>     How about the client, what is the BBOX that it is using in the WMS
>     GetMap request that it creates?
> 
>     -Jukka Rahkonen-
> 
>     *Lähettäjä:* MapServer-users
>     <mapserver-users-bounces at lists.osgeo.org
>     <mailto:mapserver-users-bounces at lists.osgeo.org>> *Puolesta *Eloi
>     Ribeiro via MapServer-users
>     *Lähetetty:* keskiviikko 31. tammikuuta 2024 21.19
>     *Vastaanottaja:* mapserver-users at lists.osgeo.org
>     <mailto:mapserver-users at lists.osgeo.org>
>     *Aihe:* Re: [MapServer-users] getting incomplete parts of a geometry
> 
>     Hi Jukka,
> 
>     Thanks for your email. I got the extent from the geometry it self.
>     Like so:
> 
>        ogrinfo PG:"host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx"
>     ibm.food_forest -summary
> 
>        INFO: Open of `PG:host=pxxxxx port=5432 dbname=pxxxxx user=pxxxxx'
> 
>              using driver `PostgreSQL' successful.
> 
>        Layer name: ibm.food_forest
> 
>        Geometry: Polygon
> 
>        Feature Count: 1
> 
>        Extent: (194914.000000, 420110.000000) - (195152.000000,
>     420307.000000)
> 
>     (...)
> 
>     Eloi
> 
>     On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka
>     <jukka.rahkonen at maanmittauslaitos.fi
>     <mailto:jukka.rahkonen at maanmittauslaitos.fi>> wrote:
> 
>         Hi,
> 
>         Does the rendered part perhaps match with the extent that you
>         have configured for the layer “EXTENT 194914 420110 195152 420307”?
> 
>         -Jukka Rahkonen-
> 
>         *Lähettäjä:* MapServer-users
>         <mapserver-users-bounces at lists.osgeo.org
>         <mailto:mapserver-users-bounces at lists.osgeo.org>> *Puolesta
>         *Eloi Ribeiro via MapServer-users
>         *Lähetetty:* keskiviikko 31. tammikuuta 2024 19.27
>         *Vastaanottaja:* mapserver-users at lists.osgeo.org
>         <mailto:mapserver-users at lists.osgeo.org>
>         *Aihe:* [MapServer-users] getting incomplete parts of a geometry
> 
>         Hi all,
> 
> 
>         I'm using Mapserver 8.0 and I'm getting incomplete parts of a
>         geometry, either if is TYPE LINE or POLYGON. Please, see
>         pictures https://pasteboard.co/ToPTZ6OnjPaJ.png
>         <https://pasteboard.co/ToPTZ6OnjPaJ.png>.
>         I wonder if I'm missing something in the mapfile. The LAYER part
>         of the mapfile looks like this:
> 
>         /  LAYER/
> 
>         /      TEMPLATE "XXXXX.tmpl"/
> 
>         /      NAME "Food_Forest"/
> 
>         /      STATUS ON/
> 
>         /      TYPE *LINE*/
> 
>         /      PROJECTION #source/
> 
>         /        "init=epsg:28992"/
> 
>         /      END # PROJECTION/
> 
>         /      CONNECTIONTYPE POSTGIS/
> 
>         /      CONNECTION "host=XXXXX port=XXXXX dbname=XXXXX user=XXXXX
>         password=XXXXX"/
> 
>         /      DATA "geom FROM XXXXX.XXXXX USING UNIQUE XXXXX_id USING
>         srid=28992"/
> 
>         /      EXTENT 194914 420110 195152 420307/
> 
>         /      PROCESSING "CLOSE_CONNECTION=DEFER"/
> 
>         /      CLASS/
> 
>         /        NAME "Food_Forest"/
> 
>         /        STYLE/
> 
>         /          COLOR 255 0 0/
> 
>         /          OUTLINEWIDTH 1/
> 
>         /        END # STYLE/
> 
>         /      END # CLASS/
> 
>         /  END # LAYER/
> 
> 
>         Thanks!
> 
>         Cheers,
> 
>         Eloi
> 
> 
> _______________________________________________
> MapServer-users mailing list
> MapServer-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the MapServer-users mailing list