tag:blogger.com,1999:blog-37281383244672972262024-02-19T23:13:01.253-08:00MY LIFE AND MY GEOGRAPHYAnonymoushttp://www.blogger.com/profile/15972012535900146004noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-3728138324467297226.post-76745048518870879072012-08-25T08:36:00.001-07:002012-08-25T08:36:12.029-07:00Crack and download of the erdas 2011<br />
<div class="MsoNormal">
<span style="font-family: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">some online download of the software of ERADAS </span><span style="font-family: 宋体;">IMAGINE</span></div>
<div class="MsoNormal">
<span style="font-family: 宋体;">:</span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/foundation-v11.0-win/foundation-v11.0-win.zip</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/imagine-v11.0-win-x86/imagine-v11.0-win-x86.zip
</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://ftp.erdas.com/files/ERDASDesktop2011v11_02/ERDASDesktop2011v11_02.ZIP
– erdas Imagine Desktop V<st1:chsdate day="30" islunardate="False" isrocdate="False" month="12" w:st="on" year="1899">11.0.2</st1:chsdate> Update</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/ermapper-v11.0-win-x86/ermapper-v11.0-win-x86.zip</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/lps-v11.0-win-x86/lps-v11.0-win-x86.zip</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011Extensions/ERDAS_Extensions2011_ArcGIS10.zip</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">ftp://209.156.31.9/updates/ArcExt/Released/ERDAS_Extensions_2011_SP1.exe
– erdas Extensions 2011 for arcgis 10 – SP1 Update</span></div>
<div class="MsoNormal">
<span lang="EN-US">Erdas Orima DP for LPS 2011 V11.0</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/orima-lps-v11.0-win-x86/orima-lps-v11.0-win-x86.zip</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">PRO600 Fundamentals 2011 for PowerMap,
English </span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/pro600-pm89-v11.0-win-x86-en/pro600-pm89-v11.0-win-x86-en.zip</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">PRO600 2011 for MicroStation V81, English </span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/pro600-ms81-v11.0-win-x86-en/pro600-ms81-v11.0-win-x86-en.zip</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">PRO600 2011 for MicroStation XM, English </span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/pro600-ms89-v11.0-win-x86-en/pro600-ms89-v11.0-win-x86-en.zip</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/imagine-examples-v11.0-win/imagine-examples-v11.0-win.zip</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/imagine-geodb10-win-x86/imagine-geodb10-win-x86.zip
– ERDAS IMAGINE 2011 Geodatabase Support</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/erdas-condor-v11.0-win-x86/erdas-condor-v11.0-win-x86.zip
– Condor for ERDAS Desktop 2011</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/apollo-v11.0-win/apollo-v11.0-win.zip
32+64 BIT </span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/apollo-dm-v11.0-win-x86/apollo-dm-v11.0-win-x86.zip
ERDAS APOLLO Data Manager 2011 </span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://downloada.erdas.com/software/2011/apollo-collab-v11.0-win-x86/apollo-collab-v11.0-win-x86.zip
ERDAS APOLLO Collaboration 2011 for Windows</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://ftp.erdas.com/files/ERDAS_ADE_Enterprise_2010/ERDASADEEnterprise.zip
</span></div>
<div class="MsoNormal">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-US">http://ftp.erdas.com/files/ERDAS_ADE_Remote_2010/ERDASADERemote.zip</span></div>
<div class="MsoNormal">
<br /></div>
<h2>
<span style="font-family: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">Install step:</span></h2>
<div class="MsoNormal">
<span lang="EN-US">Import Information for Windows 7 – 32 and
64 Bit users. To be sure that everything goes well, disable you firewall
completely and disable UAC. </span></div>
<div class="MsoNormal">
<span lang="EN-US">Also you should be disconnected from the
net !</span></div>
<div class="MsoNormal">
<span lang="EN-US">Control Panel-User Accounts and Family
Safety-User Accounts-Change Use Account Control Settings-Move Slider to
"Never Notify"</span></div>
<div class="MsoNormal">
<span lang="EN-US">Also important if you previously installed
it in Windows 7 – 64 Bit and have it still there, start LicAdmin.exe and remove
and "License Source" you </span></div>
<div class="MsoNormal">
<span lang="EN-US">have already added.</span></div>
<div class="MsoNormal">
<span lang="EN-US">Remove any programm from Erdas 2011 from
your system and delete any trace from your HD including the License Manager.</span></div>
<div class="MsoNormal">
<span lang="EN-US">Do a reboot !</span></div>
<div class="MsoNormal">
<span lang="EN-US">Follow this order on how to install it.</span></div>
<div class="MsoNormal">
<span lang="EN-US">1.Install Foundation 2011 (needed for any
program from them)</span></div>
<div class="MsoNormal">
<span lang="EN-US">2.Install Imagine 2011</span></div>
<div class="MsoNormal">
<span lang="EN-US">3.Install LPS 2011 (Optional)</span></div>
<div class="MsoNormal">
<span lang="EN-US">4.Install ER Mapper 2011 (Optional)</span></div>
<div class="MsoNormal">
<span lang="EN-US">5.Install Imagine Desktop 2011 V<st1:chsdate day="30" islunardate="False" isrocdate="False" month="12" w:st="on" year="1899">11.0.2</st1:chsdate>
Update (IMPORTANT this is always the last part)</span></div>
<div class="MsoNormal">
<span lang="EN-US">6.Copy the Folder "ERDAS Desktop
2011" inside "patched files folder" to your Installed Folder of
Erdas and overwrite the existing ones.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN-US">(IF you wanna install ER Mapper only, then
install Foundation, Er Mapper 2011 and then the Desktop V<st1:chsdate day="30" islunardate="False" isrocdate="False" month="12" w:st="on" year="1899">11.0.2</st1:chsdate>
Update)</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN-US">Optional (if you like to use the arcgis 10
Plugins)</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN-US">7.Install AcgGis Extension </span></div>
<div class="MsoNormal">
<span lang="EN-US">8.Install ArcGis Extension 2011 SP1 Update </span></div>
<div class="MsoNormal">
<span lang="EN-US">9.Copy the folder "ERDAS Extensions
2011" to the installed folder of the Extensions and overwrite the existing
ones.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN-US">(For the ArcGis Plugins, both License
Managers must be running on the same time, the Esri and the Erdas one)</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN-US">Optional:</span></div>
<div class="MsoNormal">
<span lang="EN-US">Install and use patched files for this app
and Plugins.</span></div>
<div class="MsoNormal">
<span lang="EN-US">Erdas Orima DP for LPS 2011 V11.0 </span></div>
<div class="MsoNormal">
<span lang="EN-US">PRO600 2011 Plugin for MicroStation V8 </span></div>
<div class="MsoNormal">
<span lang="EN-US">PRO600 2011 Plugin for MicroStation V8 XM
Edition </span></div>
<div class="MsoNormal">
<span lang="EN-US">PRO600 Fundamentals 2011 Plugin for Bentley
PowerMap XM</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN-US">10.Copy all the files from the "Win32Release"
folder inside the License patch folder to</span></div>
<div class="MsoNormal">
<span lang="EN-US">C:\Programme\ERDAS\Shared\licensing\bin\
(for 32 Bit System with english language, could be different on other Language
OS) </span></div>
<div class="MsoNormal">
<span lang="EN-US">C:\Program Files
(x86)\ERDAS\Shared\licensing\bin\ (for
Windows 7 – 64 Bit Systems)</span></div>
<div class="MsoNormal">
<span lang="EN-US">and overwrite any file there. !!!</span></div>
<div class="MsoNormal">
<span lang="EN-US">11. Open "erdas.dat" and replace
the string "YOUR_HOST" with your real host name.</span></div>
<div class="MsoNormal">
<span lang="EN-US">12. Go to that folder "C:\Program
Files (x86)\ERDAS\Shared\Licensing\bin\Win32Release" on Drive C:\ . Start
Lmtools.exe. Go to Config Services Tab. </span></div>
<div class="MsoNormal">
<span lang="EN-US">Write "ERDAS Licensing Service"
as a new Service Name. Click on Save Service. Then browse for lmgrd.exe, browse
for erdas.dat for license file </span></div>
<div class="MsoNormal">
<span lang="EN-US">and Log.log for the log file. </span></div>
<div class="MsoNormal">
<span lang="EN-US">NOW VERY IMPORTANT. Click also on "Use
Services" below, I made a picture to make it clear. Then click on Save
Service again.</span></div>
<div class="MsoNormal">
<span lang="EN-US">You SHOULD click also on "start server
on powerup", therwise you need to start the license server
"always" by hand </span></div>
<div class="MsoNormal">
<span lang="EN-US">whenever you wanna use it and after reboot.
And NOT via Lmtools but via your Service Manager Configuration under Control
Panel.</span></div>
<div class="MsoNormal">
<span lang="EN-US">13. Since this is a SERVICE now, it cant be
started via LMTools, but you need it to start via Services under "Control
Panel". !!!!!!</span></div>
<div class="MsoNormal">
<span lang="EN-US">14.After you started the "Erdas
Licensing Service". Start LMtools and look at the System Settings Tab.
Look at your IP Address (in my example 169.254.91.110). Notice it somewhere. </span></div>
<div class="MsoNormal">
<span lang="EN-US">Then in the same folder start
"LicAdmin.exe", click on Server>Add remote server. Then write in
your "IP Address" you wrote down before and 1700 as Port Number.
Click OK. </span></div>
<div class="MsoNormal">
<span lang="EN-US">Click on License Sources and your IP should
be shown with all Unlocked features. Look at the picture I made from my system
!!!</span></div>
<div class="MsoNormal">
<span lang="EN-US">15.Start any Erdas App, everything shoud
work fine now.</span></div>
<div class="MsoNormal">
<span lang="EN-US">16.You can now turn on UAC (for Win 7
Users) and your firewall again.</span></div>
<div class="MsoNormal">
<span lang="EN-US">17.Have fun using the software</span></div>
Anonymoushttp://www.blogger.com/profile/15972012535900146004noreply@blogger.com14tag:blogger.com,1999:blog-3728138324467297226.post-29279772974918633652012-08-24T21:17:00.000-07:002012-08-24T21:17:11.097-07:00my frist project in Arcgisthis my program writed by c# is my prime project used to draw with the map.<br />
<br />
<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
using System.Windows.Forms;<br />
using ESRI.ArcGIS.ADF.BaseClasses;<br />
using ESRI.ArcGIS.ADF.CATIDs;<br />
using ESRI.ArcGIS.Controls;<br />
using ESRI.ArcGIS.Geometry;<br />
using ESRI.ArcGIS.Carto;<br />
using ESRI.ArcGIS.Display;<br />
using ESRI.ArcGIS.Geodatabase;<br />
using ESRI.ArcGIS.SystemUI;<br />
using ESRI.ArcGIS.esriSystem;<br />
namespace MapcontrolFrm<br />
{<br />
class Draw<br />
{<br />
AxMapControl _axcontrol;<br />
int isbutton;<br />
public Draw()<br />
{<br />
}<br />
/// <summary><br />
/// Draw类带参数实例化<br />
/// </summary><br />
/// <param name="_axcontrol">MapControle控件</param><br />
/// <param name="isbutton">该函数画图确认参数,1表示画点,2表示画线,3表示画矩形,4表示画多边形,5表示画圆,6表示画椭圆</param><br />
public Draw(AxMapControl axcontrol, int isbuttons)<br />
{<br />
_axcontrol = axcontrol;<br />
isbutton = isbuttons;<br />
}<br />
/// <summary><br />
/// 颜色转换,转换成engine用的IRgbColor类型<br />
/// </summary><br />
/// <param name="G">绿色</param><br />
/// <param name="R">红色</param><br />
/// <param name="B">蓝色</param><br />
/// <returns></returns><br />
public ESRI.ArcGIS.Display.IRgbColor getRGB(int G, int R, int B)<br />
{<br />
ESRI.ArcGIS.Display.IRgbColor pColor = new ESRI.ArcGIS.Display.RgbColor();<br />
pColor.Red = R;<br />
pColor.Green = G;<br />
pColor.Blue = B;<br />
return pColor;<br />
}<br />
/// <summary><br />
/// 绘制圆形元素<br />
/// </summary><br />
public void DrawCircle()<br />
{<br />
IMap m_Map;<br />
IActiveView m_ActiveView = _axcontrol.ActiveView;<br />
IHookHelper m_hookHelper = new HookHelper();<br />
m_hookHelper.Hook = _axcontrol.Object;<br />
if (isbutton == 5)<br />
{<br />
m_ActiveView = m_hookHelper.ActiveView;<br />
m_Map = m_hookHelper.FocusMap;<br />
IScreenDisplay pScreenDisplay = m_ActiveView.ScreenDisplay;<br />
IRubberBand pRubberCircle = new RubberCircle();<br />
ISimpleFillSymbol pFillSymbol = new SimpleFillSymbol();<br />
pFillSymbol.Color = getRGB(255, 255, 0);<br />
IGeometry pCircle = pRubberCircle.TrackNew(pScreenDisplay, (ISymbol)pFillSymbol) as IGeometry;<br />
Polygon _Polygon = new Polygon();<br />
IPolygon pPolygon = _Polygon as IPolygon; //空的多边形<br />
ISegmentCollection pSegmentCollection = pPolygon as ISegmentCollection; //段集合<br />
ISegment pSegment = pCircle as ISegment; //将圆赋值给段<br />
object missing = Type.Missing; //显示默认值<br />
pSegmentCollection.AddSegment(pSegment, ref missing, ref missing); //给空多边形加入圆<br />
pFillSymbol.Style = esriSimpleFillStyle.esriSFSDiagonalCross; //填充样式,符号样式<br />
pFillSymbol.Color = getRGB(0, 255, 255);<br />
PolygonElement _polygon = new PolygonElement();<br />
IFillShapeElement pPolygonEle = _polygon as IFillShapeElement;<br />
pPolygonEle.Symbol = pFillSymbol;<br />
IElement pEle = pPolygonEle as IElement;<br />
pEle.Geometry = pPolygon;<br />
IGraphicsContainer pGraphicsContainer = m_Map as IGraphicsContainer;<br />
pGraphicsContainer.AddElement(pEle, 0);<br />
m_ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);<br />
}<br />
else<br />
{ return; }<br />
}<br />
/// <summary><br />
/// 绘制矩形元素<br />
/// </summary><br />
public void DrawRectangle()<br />
{<br />
IMap m_Map;<br />
IActiveView m_ActiveView = _axcontrol.ActiveView;<br />
IHookHelper m_hookHelper = new HookHelper();<br />
m_hookHelper.Hook = _axcontrol.Object;<br />
if (isbutton == 3)<br />
{<br />
m_ActiveView = m_hookHelper.ActiveView;<br />
m_Map = m_hookHelper.FocusMap;<br />
IScreenDisplay pScreenDisplay = m_ActiveView.ScreenDisplay;<br />
IRubberBand pRubberRectangularPolygon = new RubberRectangularPolygon();<br />
ISimpleFillSymbol pFillSymbol = new SimpleFillSymbol();<br />
IPolygon pPolygon = pRubberRectangularPolygon.TrackNew(pScreenDisplay, (ISymbol)pFillSymbol) as IPolygon;<br />
pFillSymbol.Style = esriSimpleFillStyle.esriSFSDiagonalCross;//填充样式<br />
pFillSymbol.Color = getRGB(0, 255, 255);//符号颜色<br />
PolygonElement _polygon = new PolygonElement();<br />
IFillShapeElement pPolygonEle = _polygon as IFillShapeElement;<br />
pPolygonEle.Symbol = pFillSymbol;<br />
IElement pEle = pPolygonEle as IElement;<br />
pEle.Geometry = pPolygon;<br />
IGraphicsContainer pGraphicsContainer = m_Map as IGraphicsContainer;<br />
pGraphicsContainer.AddElement(pEle, 0);<br />
m_ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);<br />
}<br />
else<br />
{ return; }<br />
}<br />
/// <summary><br />
/// 绘制多边形元素<br />
/// </summary><br />
public void DrawPolygon()<br />
{<br />
IMap m_Map;<br />
IActiveView m_ActiveView = _axcontrol.ActiveView;<br />
IHookHelper m_hookHelper = new HookHelper();<br />
m_hookHelper.Hook = _axcontrol.Object;<br />
if (isbutton == 4)<br />
{<br />
m_ActiveView = m_hookHelper.ActiveView;<br />
m_Map = m_hookHelper.FocusMap;<br />
IScreenDisplay pScreenDisplay = m_ActiveView.ScreenDisplay;<br />
IRubberBand pRubberPolygon = new RubberPolygon();<br />
ISimpleFillSymbol pFillSymbol = new SimpleFillSymbol();<br />
pFillSymbol.Color = getRGB(255, 255, 0);<br />
IPolygon pPolygon = pRubberPolygon.TrackNew(pScreenDisplay, (ISymbol)pFillSymbol) as IPolygon;<br />
pFillSymbol.Style = esriSimpleFillStyle.esriSFSDiagonalCross;<br />
pFillSymbol.Color = getRGB(0, 255, 255);<br />
PolygonElement _polygon = new PolygonElement();<br />
IFillShapeElement pPolygonEle = _polygon as IFillShapeElement;<br />
pPolygonEle.Symbol = pFillSymbol;<br />
IElement pEle = pPolygonEle as IElement;<br />
pEle.Geometry = pPolygon;<br />
IGraphicsContainer pGraphicsContainer = m_Map as IGraphicsContainer;<br />
pGraphicsContainer.AddElement(pEle, 0);<br />
m_ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);<br />
}<br />
else<br />
{ return; }<br />
}<br />
/// <summary><br />
/// //绘制线型元素<br />
/// </summary><br />
public void DrawLine()<br />
{<br />
if (isbutton == 2)<br />
{<br />
IMap pMap;<br />
IActiveView pActiveView;<br />
pMap = _axcontrol.Map;<br />
IGraphicsContainer pGraphicsContainer;<br />
pGraphicsContainer = pMap as IGraphicsContainer;<br />
pActiveView = pMap as IActiveView;<br />
//定义多义线对象<br />
IPolyline pPolyline;<br />
pPolyline = _axcontrol.TrackLine() as IPolyline;<br />
//定义简单线符号对象<br />
ISimpleLineSymbol pSimpleLineSym;<br />
pSimpleLineSym = new SimpleLineSymbol();<br />
pSimpleLineSym.Style = esriSimpleLineStyle.esriSLSSolid;<br />
IRgbColor pColor;<br />
pColor = getRGB(100, 0, 0);<br />
pSimpleLineSym.Color = pColor;<br />
pSimpleLineSym.Width = 2;<br />
//定义线几何对象<br />
LineElement linesybol = new LineElement();<br />
ILineElement pLineEle = linesybol as ILineElement;<br />
pLineEle.Symbol = pSimpleLineSym;<br />
//定义几何对象<br />
IElement pEle;<br />
pEle = pLineEle as IElement;<br />
//设置元素的几何属性<br />
pEle.Geometry = pPolyline;<br />
IGraphicsContainer pGrahpicsContainer; pGrahpicsContainer = pMap as IGraphicsContainer; pGrahpicsContainer.AddElement(pEle, 0);<br />
pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);<br />
}<br />
else<br />
{ return; }<br />
}<br />
/// <summary><br />
/// //绘制椭圆形元素<br />
/// </summary><br />
public void DrawOval()<br />
{<br />
IActiveView m_ActiveView = _axcontrol.ActiveView;<br />
IHookHelper m_hookHelper = new HookHelper();<br />
m_hookHelper.Hook = _axcontrol.Object;<br />
if (isbutton == 6)<br />
{<br />
IEnvelope pEnvelope = new Envelope() as IEnvelope;<br />
pEnvelope = _axcontrol.TrackRectangle();<br />
IConstructEllipticArc pConstructEllipticArc = new EllipticArc() as IConstructEllipticArc;<br />
pConstructEllipticArc.ConstructEnvelope(pEnvelope);<br />
<br />
IEllipticArc pEllipticArc = pConstructEllipticArc as IEllipticArc; <br />
ISegment pSegment = pEllipticArc as ISegment;<br />
<br />
ISegmentCollection pSegmentCollection = new Ring() as ISegmentCollection;<br />
object o = Type.Missing;<br />
pSegmentCollection.AddSegment(pSegment, ref o, ref o);<br />
<br />
IRing pRing = pSegmentCollection as IRing;<br />
pRing.Close();<br />
<br />
IGeometryCollection pGeometryColl = new Polygon() as IGeometryCollection;<br />
pGeometryColl.AddGeometry(pRing, ref o, ref o);<br />
<br />
ISimpleLineSymbol pSimpleLineSym = new SimpleLineSymbol();//填充样式与颜色<br />
pSimpleLineSym.Color = getRGB(0, 0, 0); <br />
pSimpleLineSym.Width = 2;<br />
ISimpleFillSymbol pSimpleFillSym = new SimpleFillSymbol();<br />
pSimpleFillSym.Color = getRGB(255, 0, 0);<br />
pSimpleFillSym.Color.Transparency = 255;<br />
pSimpleFillSym.Outline = pSimpleLineSym;<br />
<br />
IElement pElement = new EllipseElement();<br />
pElement.Geometry = pGeometryColl as IGeometry;<br />
IFillShapeElement pFillShapeElement = pElement as IFillShapeElement;<br />
pFillShapeElement.Symbol = pSimpleFillSym;<br />
<br />
IGraphicsContainer pGC = _axcontrol.ActiveView.GraphicsContainer;<br />
pGC.AddElement(pElement, 0);<br />
_axcontrol.Refresh();<br />
}<br />
}<br />
/// <summary><br />
/// //绘制点元素<br />
/// </summary><br />
public void DrawMarker(IMapControlEvents2_OnMouseDownEvent e)<br />
{<br />
if (isbutton == 1)<br />
{<br />
IMap m_map = _axcontrol.Map;<br />
IActiveView m_activeview = _axcontrol.ActiveView;<br />
IPoint point = new Point();<br />
point.PutCoords(e.mapX, e.mapY);<br />
IMarkerElement maker = new MarkerElement() as IMarkerElement;<br />
IElement element = maker as IElement;<br />
ISimpleMarkerSymbol makersyb = new SimpleMarkerSymbol();<br />
element.Geometry = point;<br />
makersyb.Color = getRGB(255, 255, 0);<br />
maker.Symbol = makersyb;<br />
IGraphicsContainer pGraphicsContainer = m_map as IGraphicsContainer;<br />
pGraphicsContainer.AddElement(element, 0);<br />
m_activeview.PartialRefresh(esriViewDrawPhase.esriViewGraphics, null, null);<br />
}<br />
<br />
}<br />
<br />
<br />
}<br />
}<br />
<br />
<br />
Welcome to your suggestion !<br />
<div>
<br /></div>
<br />
<br />Anonymoushttp://www.blogger.com/profile/15972012535900146004noreply@blogger.com0