[MapServer-users] getting incomplete parts of a geometry

Eloi Ribeiro mail at eloiribeiro.eu
Wed Jan 31 11:19:21 PST 2024


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> 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> Puolesta Eloi Ribeiro via MapServer-users
> Lähetetty: keskiviikko 31. tammikuuta 2024 19.27
> Vastaanottaja: 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.
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20240131/0e33d7f6/attachment-0001.htm>


More information about the MapServer-users mailing list