AE 中對向量資料的基本操作

2021-10-25 01:41:12 字數 1178 閱讀 3011

arcgis engine中的ifeaturelayer、ifeatureclass、ifeature、ifield、ifields介面與向量資料介面的關係:

​ ifeaturelayer為向量圖層

​ ifeatureclass為向量圖層中的屬性表

​ ifeature為向量圖層中的某一要素

​ ifield為屬性表中的某乙個字段

​ ifields為屬性表中的全部欄位的集合

對向量圖層進行改名、設定比例尺、設定圖層可見、圖層不可見:

1.對向量圖層進行改名:主要使用的是esri.arcgis.carto;引用中的ifeaturelayer介面中的name屬性

//修改圖層名稱

private void button1_click(object sender, eventargs e)

2.設定圖層的顯示比例尺:主要使用的是esri.arcgis.carto;引用中的ifeaturelayer介面中的maximumscale屬性和minimumscale屬性進行設定。

//設定比例尺,max為最大顯示的比例尺,min為最小的顯示比例尺

private void button2_click(object sender, eventargs e)

3.設定圖層可見:主要使用的是esri.arcgis.carto;引用中的ifeaturelayer介面中的visible屬性來控制圖層的可見性
//設定ifeaturelayer的visible的屬性為true可以設定圖層可見

private void button3_click(object sender, eventargs e)

//設定ifeaturelayer的visible的屬性為false可以設定圖層不可見

private void button4_click(object sender, eventargs e)

3 向量資料基本操作

1.新增現有的向量資料 1 本地shapefile string filepath shapefile 檔案在磁碟上的位址 根據路徑獲取圖層 shapefile sf newshapefile bool isopen sf.open filepath if isopen 新增到地圖中,並且獲取控制代...

C 中vector向量的基本操作

vector向量是一種簡單高效的容器,具有自動記憶體管理功能。對於大小為n的vector容器,它的元素下標是0 n 1。vector有二個重要方法 begin 返回首元素位置的迭代器。end 返回最後乙個元素的下乙個元素位置的迭代器。1 vector物件建立的幾種方式。1 不指定容器元素個數。vec...

jdbc 對sqlite的基本操作

1.向資料庫中建立表 public void addtable string dbpath catch exception e 2.從 db 檔案中刪除表 這裡只貼出來語句其他都一樣 判斷巡檢表是否存在 存在 則刪除 string deletetablesql drop table if exist...