Please refer to this query result:
As you can see, this returns 2 polygons.
The input geometry is represented by the teal rectangle in this picture. The results are the yellow polygon and the blue polygon.
I do not want the blue polygon returned as it does not extend inside my input geometry.
I tried setting the distance to -1 meters. I thought this would shrink the input geometry by 1m and therefore effectively require any query matches to extend at least 1m inside the provided boundary, but negative numbers in distance do not seem to have any effect.
Is there any way to adjust my query so that it excludes such matches?
Solved! Go to Solution.
I solved this by first using the Buffer geometry service with a negative distance to slightly reduce the size of the polygon. Then I use that result in my query. I would rather get it all done with one API call but if that's impossible, this is a good solution.
I solved this by first using the Buffer geometry service with a negative distance to slightly reduce the size of the polygon. Then I use that result in my query. I would rather get it all done with one API call but if that's impossible, this is a good solution.
hi. i've come across the same issue. and i would filter those queried features. like this :