Re: [MapServer-users] getting incomplete parts of a geometry
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=WMS=mapserver=WMS=1.3.0=GetMap=image%2Fpng=true=true=mapserver=Food_Forest_layers=Food_Forest=EPSG%3A3857_FORMAT=text%2Fhtml=256=256==664084.9017416127%2C6758256.292862143%2C664696.3979678941%2C6758867.789088425 <https://ibm-test.containers.wur.nl/mapserver/?map=%2Fetc%2Fmapserver%2FFood_Forest.map=WMS=mapserver=WMS=1.3.0=GetMap=image%2Fpng=true=true=mapserver=Food_Forest_layers=Food_Forest=EPSG%3A3857_FORMAT=text%2Fhtml=256=256==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 *Puolesta *Eloi Ribeiro via MapServer-users *Lähetetty:* keskiviikko 31. tammikuuta 2024 21.33 *Vastaanottaja:* mapserver-users@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 <mailto:jukka.rahko...@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 mailto:mapserver-users-boun...@lists.osgeo.org>> *Puolesta *Eloi Ribeiro via MapServer-users *Lähetetty:* keskiviikko 31. tammikuuta 2024 21.19 *Vastaanottaja:* mapserver-users@lists.osgeo.org <mailto:mapserver-users@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=px port=5432 dbname=px user=px" ibm.food_forest -summary INFO: Open of `PG:host=px port=5432 dbname=px user=px' using driver `PostgreSQL' successful. Layer name: ibm.food_forest Geometry: Polygon Feature Count: 1 Extent: (194914.00, 420110.00) - (195152.00, 420307.00) (...) Eloi On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka mailto:jukka.rahko...@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 mailto:mapserver-users-boun...@lists.osgeo.org>> *Puolesta *Eloi Ribeiro via MapServer-users *Lähetetty:* keskiviikko 31. tammikuuta 2024 19.27 *Vastaanottaja:* mapserver-users@lists.osgeo.org <mailto:mapserver-users@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 "X.tmpl"/ / NAME "Food_Forest"/ / STATUS ON/ / TYPE *LINE*/ / PROJECTION #source/ / "init=epsg:28992"/ / END # PROJECTION/ / CONNECTIONTYPE POSTGIS/ / CONNECTION "host=X port=X dbname=X user=X password=X"/ / DATA "geom FROM X.X USING UNIQUE X_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 __
Re: [MapServer-users] getting incomplete parts of a geometry
Hi, The client is making tiled requests like this: https://ibm-test.containers.wur.nl/mapserver/?map=%2Fetc%2Fmapserver%2FFood_Forest.map=WMS=mapserver=WMS=1.3.0=GetMap=image%2Fpng=true=true=mapserver=Food_Forest_layers=Food_Forest=EPSG%3A3857_FORMAT=text%2Fhtml=256=256==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 Puolesta Eloi Ribeiro via MapServer-users Lähetetty: keskiviikko 31. tammikuuta 2024 21.33 Vastaanottaja: mapserver-users@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/ and the Basemap and the layer is Food_Forest. Eloi On Wednesday, January 31st, 2024 at 20:29, Rahkonen Jukka mailto:jukka.rahko...@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 mailto:mapserver-users-boun...@lists.osgeo.org>> Puolesta Eloi Ribeiro via MapServer-users Lähetetty: keskiviikko 31. tammikuuta 2024 21.19 Vastaanottaja: mapserver-users@lists.osgeo.org<mailto:mapserver-users@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=px port=5432 dbname=px user=px" ibm.food_forest -summary INFO: Open of `PG:host=px port=5432 dbname=px user=px' using driver `PostgreSQL' successful. Layer name: ibm.food_forest Geometry: Polygon Feature Count: 1 Extent: (194914.00, 420110.00) - (195152.00, 420307.00) (...) Eloi On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka mailto:jukka.rahko...@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 mailto:mapserver-users-boun...@lists.osgeo.org>> Puolesta Eloi Ribeiro via MapServer-users Lähetetty: keskiviikko 31. tammikuuta 2024 19.27 Vastaanottaja: mapserver-users@lists.osgeo.org<mailto:mapserver-users@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 "X.tmpl" NAME "Food_Forest" STATUS ON TYPE LINE PROJECTION #source "init=epsg:28992" END # PROJECTION CONNECTIONTYPE POSTGIS CONNECTION "host=X port=X dbname=X user=X password=X" DATA "geom FROM X.X USING UNIQUE X_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@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
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/ and the Basemap and the layer is Food_Forest. Eloi On Wednesday, January 31st, 2024 at 20:29, Rahkonen Jukka 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 Puolesta > Eloi Ribeiro via MapServer-users > Lähetetty: keskiviikko 31. tammikuuta 2024 21.19 > Vastaanottaja: mapserver-users@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=px port=5432 dbname=px user=px" ibm.food_forest > -summary > > INFO: Open of `PG:host=px port=5432 dbname=px user=px' > > using driver `PostgreSQL' successful. > > Layer name: ibm.food_forest > > Geometry: Polygon > > Feature Count: 1 > > Extent: (194914.00, 420110.00) - (195152.00, 420307.00) > > (...) > > Eloi > > On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka > 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 >> Puolesta Eloi Ribeiro via MapServer-users >> Lähetetty: keskiviikko 31. tammikuuta 2024 19.27 >> Vastaanottaja: mapserver-users@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 "X.tmpl" >> >> NAME "Food_Forest" >> >> STATUS ON >> >> TYPE LINE >> >> PROJECTION #source >> >> "init=epsg:28992" >> >> END # PROJECTION >> >> CONNECTIONTYPE POSTGIS >> >> CONNECTION "host=X port=X dbname=X user=X password=X" >> >> DATA "geom FROM X.X USING UNIQUE X_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@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MapServer-users] getting incomplete parts of a geometry
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 Puolesta Eloi Ribeiro via MapServer-users Lähetetty: keskiviikko 31. tammikuuta 2024 21.19 Vastaanottaja: mapserver-users@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=px port=5432 dbname=px user=px" ibm.food_forest -summary INFO: Open of `PG:host=px port=5432 dbname=px user=px' using driver `PostgreSQL' successful. Layer name: ibm.food_forest Geometry: Polygon Feature Count: 1 Extent: (194914.00, 420110.00) - (195152.00, 420307.00) (...) Eloi On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka mailto:jukka.rahko...@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 mailto:mapserver-users-boun...@lists.osgeo.org>> Puolesta Eloi Ribeiro via MapServer-users Lähetetty: keskiviikko 31. tammikuuta 2024 19.27 Vastaanottaja: mapserver-users@lists.osgeo.org<mailto:mapserver-users@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 "X.tmpl" NAME "Food_Forest" STATUS ON TYPE LINE PROJECTION #source "init=epsg:28992" END # PROJECTION CONNECTIONTYPE POSTGIS CONNECTION "host=X port=X dbname=X user=X password=X" DATA "geom FROM X.X USING UNIQUE X_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@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
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=px port=5432 dbname=px user=px" ibm.food_forest -summary INFO: Open of `PG:host=px port=5432 dbname=px user=px' using driver `PostgreSQL' successful. Layer name: ibm.food_forest Geometry: Polygon Feature Count: 1 Extent: (194914.00, 420110.00) - (195152.00, 420307.00) (...) Eloi On Wednesday, January 31st, 2024 at 19:58, Rahkonen Jukka 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 Puolesta > Eloi Ribeiro via MapServer-users > Lähetetty: keskiviikko 31. tammikuuta 2024 19.27 > Vastaanottaja: mapserver-users@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 "X.tmpl" > > NAME "Food_Forest" > > STATUS ON > > TYPE LINE > > PROJECTION #source > > "init=epsg:28992" > > END # PROJECTION > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=X port=X dbname=X user=X password=X" > > DATA "geom FROM X.X USING UNIQUE X_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@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [MapServer-users] getting incomplete parts of a geometry
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 Puolesta Eloi Ribeiro via MapServer-users Lähetetty: keskiviikko 31. tammikuuta 2024 19.27 Vastaanottaja: mapserver-users@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 "X.tmpl" NAME "Food_Forest" STATUS ON TYPE LINE PROJECTION #source "init=epsg:28992" END # PROJECTION CONNECTIONTYPE POSTGIS CONNECTION "host=X port=X dbname=X user=X password=X" DATA "geom FROM X.X USING UNIQUE X_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@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users