Skip to content

Trying to understand why one LinearRing does not contain another #869

Answered by dr-jts
jrnorth asked this question in Q&A
Discussion options

You must be logged in to vote

LinearRings 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 the contains() test will work as you are expecting.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jrnorth
Comment options

@dr-jts
Comment options

Answer selected by jrnorth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants