On Mon, Jul 13, 2020 at 6:12 PM Mauro Bartolomeoli < mauro.bartolome...@geo-solutions.it> wrote:
> Hi all, > I would like to add a new configuration option to the jdbc-postgis > datastore, to allow using ST_SimplifyPreserveTopology instead of > ST_Simplify, when enabled together with geometry simplification. > The new flag (PRESERVE_TOPOLOGY) will only be allowed to be true if also > SIMPLIFY is true. > We found that using ST_SimplifyPreserveTopology is fast enough most of > the times, but returns more correct geometries (e.g. ST_Simplify is > removing some holes in polygons, that ST_SimplifyPreserveTopology is > preserving). > Any doubt, concern, before I move on with a JIRA ticket and a PR for this? > Back when I tested it (several years ago) ST_SimplifyPreserveTopology was so slow it made rendering slower compared to not having postgis side simplification at all... a real catastrophe :-D But years have passed, maybe now the function is faster. Or you just have a different set of geometries where the function is not as slow. Anyways, having a new flag does not hurt, allows for more options when dealing with the real world case. Cheers Andrea == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.*
_______________________________________________ GeoTools-Devel mailing list GeoTools-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel