S-K'
S-K'

Reputation: 3209

SQLite point check if a point is within a polygon

In a SQLite database I have rows of latitude and longitude values that represent a polygon on a world map, using a SQL query is it possible to determine whether a provided latitude/longitude value falls within the polygon?

Upvotes: 0

Views: 2043

Answers (1)

CL.
CL.

Reputation: 180270

SQLite itself has no such function.

You have to implement this in your code, or extend SQLite with a spatial library like SpatiaLite.

Upvotes: 3

Related Questions