Closed osmuser63783 closed 2 months ago
Thanks for opening this (the detailed screenshots are especially helpful). Yes, this is clearly a bug.
On the definition of within, per OGC a shape is considered to be within itself (so A can share nodes with B and still be considered within B). This is the definition used by GEOS (and hence Shapely). But in your example, the island lies outside the river area (all its nodes lie inside the river area, which appears to trigger the false positive).
Features.within
returns the following island as lying entirely inside the river area, which is wrong.I think this is a bug in Geodesk.
Steps to reproduce:
As a side note the definitions of
within
etc. can be a little counterintuitive: An island isn't "within" a lake if it shares a node with the lake, etc. If Geodesk follows the same definitions as Shapely, it could be helpful to link to this somewhere in the Geodesk docs.