Hi,

Right, the option is documented in 
https://docs.geoserver.org/latest/en/user/data/database/postgis.html and it is 
on by default when a new PostGIS store is created. It affects at least WMS but 
I suppose WMTS as well. It has a side effect with small polygons, follow the 
links from 
https://gis.stackexchange.com/questions/253820/geoserver-shape-simplification-performance.

-Jukka Rahkonen-

Lähettäjä: Alexandre Gacon <alexandre.ga...@gmail.com>
Lähetetty: perjantai 18. marraskuuta 2022 21.30
Vastaanottaja: Arnaud LESAUVAGE <arnaud.lesauv...@codata.eu>
Kopio: geoserver-users <geoserver-users@lists.sourceforge.net>
Aihe: Re: [Geoserver-users] Simplify geometries for WMTS queries

If I remember correctly you have a "enable on the fly simplification" in the 
postgis datastore.

Alexandre

Le ven. 18 nov. 2022 à 20:22, Arnaud LESAUVAGE 
<arnaud.lesauv...@codata.eu<mailto:arnaud.lesauv...@codata.eu>> a écrit :
Hi

Is there any plan to simplify geometries in WMS "vector" layers ?
I have been looking for a simple way to simplify the geometries in zoomed tiles 
for a layer.
My datastore being PostGIS, simply using the simplification mechanism of this 
datastore when querying it via WMS would be a simple and efficient solution. I 
do understand that WFS queries need to return untouched geometries, but why 
would WMS queries bypass the simplification process ?
Actually, I have to do a quite dirty trick, passing a viewparams with the 
current zoom level to the view and using this to simplify the geometry. The 
resulting tiles are nice, but take ages to generate because having a 
parametrized ST_Simplify in the query prevents any use of the index.

Thanks a lot

Regards
Arnaud
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.ianturton.com%2Ftalks%2Ffoss4g.html%23%2F&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C1fc5a4daef3142b929e708dac99b765d%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638043966788025140%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=jT5Ti6yRwWEz%2FXjElBEKC5D1BsTtM0Lk6WhUJySK6ds%3D&reserved=0>
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html<https://eur06.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgeoserver.org%2Fcomm%2Fuserlist-guidelines.html&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C1fc5a4daef3142b929e708dac99b765d%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638043966788025140%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NegwABJW2tZTTxXEY8%2B37Tz%2F8r0k7Hp4WUpmDVx3QxM%3D&reserved=0>

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgeoserver%2Fgeoserver%2Fwiki%2FSuccessfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C1fc5a4daef3142b929e708dac99b765d%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638043966788025140%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=raXeR4k%2Fap64fE4DiHCXVsBpGkYz6MxNmI%2BDXQw4CJA%3D&reserved=0>


Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users<https://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.sourceforge.net%2Flists%2Flistinfo%2Fgeoserver-users&data=05%7C01%7Cjukka.rahkonen%40maanmittauslaitos.fi%7C1fc5a4daef3142b929e708dac99b765d%7Cc4f8a63255804a1c92371d5a571b71fa%7C0%7C0%7C638043966788025140%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zjnjzny%2FfCJVgpCWujz2w0WYDBooCHOgFKIzuVd0%2BbU%3D&reserved=0>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to