Hello All,

I'm confused about the isValidOp.setSelfTouchingRingFormingHoleValid(true)
method.  Given a bow-tie polygon like the one below, I would have expected
setting the above option to cause the polygon to report as valid but it
doesn't.
​

Can someone please clarify for me?

Thanks!

--john

​//​
​//JTS version 1.14.0 with Groovy 2.4.5.​
//
wkt = '''POLYGON((1 1, 2 1, 1 2, 2 2, 1 1))'''
def geom = wktReader.read(wkt)

def validOp = new IsValidOp(geom)
validOp.setSelfTouchingRingFormingHoleValid(true)

//fails
assert geom.valid
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Jts-topo-suite-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jts-topo-suite-user

Reply via email to