Running this SQL in the spatialite gui application:
SELECT ID FROM P_POINTS WHERE Within(GEOMETRY, polygonfromtext('POLYGON(-2.165476 52.604321, -2.167375 52.606777, -2.16444 52.606914, -2.163287 52.604595, -2.165476 52.604321)', 4326)) = 1
Geometry is the column in P_POINTS holding lat/lon points as geometry blobs. This column is fine as tested with the AsText and x and y functions.
This SQL should give me results but I get nil. No error though.
Any idea what could be the problem here?
RBS
SELECT ID FROM P_POINTS WHERE Within(GEOMETRY, polygonfromtext('POLYGON(-2.165476 52.604321, -2.167375 52.606777, -2.16444 52.606914, -2.163287 52.604595, -2.165476 52.604321)', 4326)) = 1
Geometry is the column in P_POINTS holding lat/lon points as geometry blobs. This column is fine as tested with the AsText and x and y functions.
This SQL should give me results but I get nil. No error though.
Any idea what could be the problem here?
RBS