propertyxray.com.au

Point-in-polygon: one PostGIS query for geofencing, zones, and spatial lookups (opens in new tab)

Discussed on DEV

You've got a coordinate. You've got a pile of regions on a map. You need to know: which region does this point fall in, or is it inside one at all? That single question hides inside a lot of features: Geofencing: is this device or user inside the zone? Service / delivery areas: does this address fall in our coverage? Spatial lookups: which territory, district, or catchment owns this point? They all reduce to one primitive: point in polygon. Learn it once and a whole class of "is this place in...

Read the original article
Sign in to keep reading the full article.

Keyboard Shortcuts

Navigation

Next / previous post
j/k
Open post
oorEnter
Preview post
v

Post Actions

Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Save / unsave
s

Recommendations

Add interest / feed
Enter
Not interested
x

Go to

Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Discover
gb
Search
/

General

Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help