ArcEngine 經緯度座標 畫線

2021-06-26 20:43:41 字數 1438 閱讀 6021

尊重原創:

開發背景:專案需要把android裝置上的手繪資料顯示到地圖上

**大放送,都是乾貨啊,關鍵**如下:

根據經緯度構建點

/// /// 獲取點

///

/// 經度

/// 緯度

///

private ipoint constructpoint(double x, double y)

顏色轉換

/// /// android系統提供的幾種顏色值轉換

///

///

private static icolor getcolor(int colorvalue)

return color;

}public static icolor convertcolortoicolor(color color)

畫線

ielementcollection pelements = new elementcollectionclass();

igeometry tempgeometry = null;//臨時圖形,用於圖形放大

foreach(datarow dr in dt.rows)

else

}igeometrycollection ppolyline = new polylineclass();

ppolyline.addgeometry(ppath as igeometry, ref o, ref o);

i******linesymbol linesymbol = new ******linesymbolclass();

linesymbol.color = getcolor(colorvalue);//顏色

linesymbol.style = esri******linestyle.esrislsinsideframe; //樣式

linesymbol.width = 2;

ilineelement plineelement = new lineelementclass();

plineelement.symbol = linesymbol;

ielement pelement = plineelement as ielement;

tempgeometry = pelement.geometry = ppolyline as igeometry;

pgraphicscontainer.addelement(pelement, 0);

}//最後重新整理

if (tempgeometry != null)

else

ArcEngine下投影座標和經緯度座標的相互轉換

jojojojo2002 原文 arcengine下投影座標和經緯度座標的相互轉換 投影轉經緯度 private ipoint prjtogcs double x,double y 其中,ppoint.spatialreference psrf.createprojectedcoordinatesy...

經緯度座標轉換

經緯度與xy座標轉換工具類 public class latlngxyzconverthelper xy轉經緯度 需要轉換的x座標 需要轉換的y座標 地圖級別 轉換後的經度 轉換後的緯度 public static void tiletolatlng double tile x,double til...

經緯度座標系轉東北天 經緯度座標系轉換

網際網路地圖的座標系現狀 地球座標 wgs84 國際標準,從 gps 裝置中取出的資料的座標系 國際地圖提供商使用的座標系 火星座標 gcj 02 也叫國測局座標系 中國標準,從國行移動裝置中定位獲取的座標資料使用這個座標系 國家規定 國內出版的各種地圖系統 包括電子形式 必須至少採用gcj 02對...