1
在網絡gis
班級使用Postgis
,我想找到一個選定的點的5平方英里左右的興趣範圍。我必須使用ST_within
。找到5平方英里範圍內的興趣點
這是我寫的查詢:
select hw1.route,count(*) from hw as hw1, hw as hw2,aoi where
st_within(hw1.the_geom,aoi.the_geom) group by hw1.route;
在網絡gis
班級使用Postgis
,我想找到一個選定的點的5平方英里左右的興趣範圍。我必須使用ST_within
。找到5平方英里範圍內的興趣點
這是我寫的查詢:
select hw1.route,count(*) from hw as hw1, hw as hw2,aoi where
st_within(hw1.the_geom,aoi.the_geom) group by hw1.route;
使用ST_Buffer打造半徑周圍的興趣點5英里一個sourronding多邊形。然後檢查您的幾何體是否位於或相交(取決於您的需要)緩衝區。
謝謝。我做的完全一樣 – user3091801 2014-12-29 00:06:11