移至主內容

手動輸入多邊形座標_操作說明

手動輸入必須要遵循Well-known text (WKT)格式規範,開頭必須有polygon或multipolygon,例:

  • polygon((121.29 24.81,121.69 24.83,121.71 24.42,121.01 24.56,121.29 24.81))
  • multipolygon(((121.29 24.81,121.69 24.83,121.71 24.42,121.01 24.56,121.29 24.81)))
  • polygon((121.59 24.22,121.60 24.22,121.35 23.50,120.40 23.68,121.59 4.22),(120.75 23.83,120.82 23.87,120.82 23.79,120.72 23.80,120.75 23.83))
  • multipolygon(((121.59 24.22,121.60 24.22,121.35 23.50,120.40 23.68,121.59 24.22),(120.75 23.83,120.82 23.87,120.82 23.79,120.72 23.80,120.75 23.83)))
  • multipolygon(((121.29 24.81,121.69 24.83,121.71 24.42,121.01 24.56,121.29 24.81)))
  • multipolygon(((121.29 24.81,121.69 24.83,121.71 24.42,121.01 24.56,121.29 24.81)),((120.75 23.83,120.82 23.87,120.82 23.79,120.72 23.80,120.75 23.83)))
  • multipolygon(((121.29 24.81,121.69 24.83,121.71 24.42,121.01 24.56,121.29 24.81)),((121.59 24.22,121.60 24.22,121.35 23.50,120.40 23.68,121.59 24.22),(120.75 23.83,120.82 23.87,120.82 23.79,120.72 23.80,120.75 23.83)))

 

以下是幾個將手邊檔案傳換為WKT格式文字之小工具及範例:

  1. GIS工具:任何GIS工具可讀的檔案,如:shapefile、KML、CSV、GeoJSON等都可以使用。參考網站
    如:QGIS,將讀入的圖層檔案進行匯出、另存"Save feature as",便可將檔案另存為WKT格式之CSV檔。
    1. 範例:將shapfile轉換為WKT
       
  2. GeoJSON to WKT online converter:https://geojson-to-wkt-converter.onrender.com/

 

撰文者:倪旻萱

更新時間:2023/08/1