Share via

Is there a difference between columnValue.Intersects(constant) and the inverse?

David Thielen 3,231 Reputation points
2024-03-26T16:25:29.5266667+00:00

Hi all;

To only return DB entries inside a polygon I can do:

	public static IQueryable
Azure Maps
Azure Maps

An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.

0 comments No comments

Answer accepted by question author

rbrundritt 21,711 Reputation points Volunteer Moderator
2024-03-26T20:03:06.93+00:00

The order shouldn't matter for the STIntersects, but I would go with your column first to ensure that it picks up the spatial index.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.