環域篩選

環域篩選

 

若欲依環域進行空間篩選,需將環域圖徵以陣列方式填入WKT字串,並設定環域半徑
(
單位為公尺),支援點、線、多邊形三種圖徵類型,圖徵節點坐標需符合CoordSystem
所設定之坐標格式,例如:

POINT(121.528 25.044)

LINESTRING(121.528 25.044, 121.547 25.043)

POLYGON((121.528 25.044, 121.547 25.043, 121.522 25.036, 121.528 25.044))

 

程式碼如下:

               

        var areaSelect = {                         

                areaSelectType: AreaSelectType.BUFFER,          //指定使用環域篩選

                bufferOpts: {                                                          //設定環域篩選參數

                        wkts: [wktString],                                  //指定環域篩選圓心座標

                        radius: cRadius                                     //指定環域篩選半徑

                         [wktString]cRadius各表示為環域篩選圓心座標與篩選半徑之變數

           }

   };

回到上方