Since I am a beginner to postgis I am facing problem with finding points within polygons from my table.
This is my table structure
Column | Type |
-------------+-------------------------+
id | bigint |
type | bigint |
geoproperty | geometry(Geometry,4326) |
types are 1=point,2=road,3=polygon
I want to get all the points within a specified polygon.
Can somebody help me to get a working query?
I tried using St_within and st_contains but failed to get results.
select id from test_table g where id = 123 and ST_Within(g.geoproperty,g.geoproperty);