Thank for the link. I already see the known bug in TPS. 
But my question concerned a input geometry who is invalid. For example :
POLYGON ((8 25, 24 39, 35 26, 15 11, 33 3, 56 30, 35 36, 47 44, 43 19, 8 25))
The geometry is invalid because there are a intersection.
So when i use TopologyPreservingSimplifier, the result is also invalid, expect 
when i have a high distanceTolerance.

Date: Mon, 31 Mar 2014 11:32:32 -0700
Subject: Re: [Jts-topo-suite-user] TopologyPreservingSimplifier geometry is 
invalid
From: [email protected]
To: [email protected]
CC: [email protected]

Can you provide the input you are using?
There is a known bug in TPS that can result in invalid resutls.  See 
http://tsusiatsoftware.net/jts/javadoc/com/vividsolutions/jts/simplify/TopologyPreservingSimplifier.html


On Mon, Mar 31, 2014 at 5:54 AM, Mireille Lecoeuvre 
<[email protected]> wrote:







        
        
        
        


Hello
JTS list,
I'm
a beginner and i have a question. I use the class
TopologyPreservingSimplifier with this method:



-
public static Geometry simplify(Geometry geom,double
distanceTolerance)



But
if my input geometry is invalid so the output geometry is invalid but
the documentation of this class says : "ensuring that the result
is a valid geometry". 
It's not specify if the output geometry
may be degenerate or invalid.
Could
you confirm if it's a bug or it's normal?
Thank you very much

Mireille



                                          

------------------------------------------------------------------------------


_______________________________________________

Jts-topo-suite-user mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user



                                          
------------------------------------------------------------------------------
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to