-
Hi all, I've created a small sample repository that demonstrates my problem: https://github.com/jrnorth/jts-test I have one 'exterior' LinearRing and one 'interior' LinearRing, and I am trying to understand why JTS says the exterior does not contain the interior (using the I've been using https://arthur-e.github.io/Wicket/sandbox-gmaps3.html to plot my rings on a map, and all the points of the interior are inside the exterior. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
If you turn the exterior ring into a |
Beta Was this translation helpful? Give feedback.
LinearRing
s are lines, not areas. So their interior consists of the points in the line, but does not include the area they enclose.If you turn the exterior ring into a
Polygon
then thecontains()
test will work as you are expecting.