2008年11月13日 星期四

已知線段座標批次轉換至google earth

如果已知一線段的兩點座標,如何批次轉換呢?

這裡透過分析kml的結構只需要替換kml中以下的語法

可以先把座標利用excel存好再透過合併列印將excel的資料欄位合併成新的語法最後貼上原有kml(就像貼上的藍色字部分)

再到google 貼上後即可完成

<name>項目名稱</name>
          <styleurl>#msn_ylw-pushpin0</styleurl>
          <linestring>
              <tessellate>1</tessellate>
              <coordinates>
起點X座標,起點Y座標,起點Z座標 終點X座標,終點Y座標,終點Z座標 </coordinates>
          </linestring>

<name>1</name>
          <styleurl>#msn_ylw-pushpin0</styleurl>
          <linestring>
              <tessellate>1</tessellate>
              <coordinates>
121.7457312872925,24.74786955268518,0 121.7592078100475,24.73945021757007,0 </coordinates>
          </linestring>

0 附註:
本研究要建立國中升學高中模型可以透過每位同學國中與高中的名稱轉換為國中座標與高中座標
1.學生tabel 具有就讀高中及國中代碼
2.高中圖層 國中圖層:具有學校xy座標欄位與學校代碼
3.將學生table join 學校圖層將 國中 高中xy座標導入
4.export為資料表並合併列印倒入kml中
5.建立好每位同學的升學路徑 6.透過kml to shp轉為shape file

點座標與點圖層間的轉換與生成

XY座標轉換為點圖層

開啟arcatalog
選取具有x y座標的dbF檔
按右鍵 create feature class
選取 from xy table
之後只要指定xy的欄位即可


點圖層轉換XY座標

ArcGIS中的Data Management Tools->Features->Add XY Coordinates 自动生成XY坐标 。

XY座標會出現在該圖層的屬性資料表中

2008年10月15日 星期三


Introduction to Geographic Information Systems (Paperback)by Kang-Tsung Chang (Author)
No customer reviews yet. Be the first. 張康聰 教授
List Price:
$77.69
Price:
$77.69 & this item ships for FREE with Super Saver Shipping. Details
Special Offers Available
Temporarily out of stock.Order now and we'll deliver when available. We'll e-mail you with an estimated delivery date as soon as we have more information. Your account will only be charged when we ship the item.Ships from and sold by Amazon.com. Gift-wrap available.
4 used & new available from $69.76