cancel
Showing results for 
Search instead for 
Did you mean: 

ST_Covers returning false with PostgreSQL/PostGIS

Former Member
0 Kudos
3,002

I have two lon/lats that i've turned into geometry. I have a fence_geom and a user_geom. I am looking to test to see if the user is inside the fence_geom. I have tried using several different postGIS methods to check for this but I am only getting false. The location with the users is definitely within the geofence but I keep getting false even when the results should return true. For tests sake, every user has the same geometry which is the one within the geofence. I've tried switching the order of the parameters and the results are the same.

SELECT ST_Covers(fences.fence_geom, users.user_geom)
FROM fences, users

Accepted Solutions (0)

Answers (0)