本文整理汇总了C#中IPolygon.Close方法的典型用法代码示例。如果您正苦于以下问题:C# IPolygon.Close方法的具体用法?C# IPolygon.Close怎么用?C# IPolygon.Close使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IPolygon
的用法示例。
在下文中一共展示了IPolygon.Close方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GoogleMapsEngineFeatureClassManagement
// the constructor for the Feature Class Management class
public GoogleMapsEngineFeatureClassManagement(MapsEngine.API.GoogleMapsEngineAPI api)
{
// initialize and configure log4net, reading from Xml .config file
log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo("log4net.config"));
log.Info("GoogleMapsEngineFeatureClassManagement initializing.");
// retrieve a reference to the extension
log.Debug("Retrieiving a reference to the extension object.");
ext = GoogleMapsEngineToolsExtensionForArcGIS.GetExtension();
// initiate the Google Maps Enigne API object
log.Debug("Setting the GME API object.");
this.api = api;
// generate a worldwide polygon, for default (spatial geometry undetermined or undefined) assets
log.Debug("Establishing a default worldwide polygon object.");
IPoint pUL = new Point();
pUL.X = -180;
pUL.Y = 90;
IPoint pLL = new Point();
pLL.X = -180;
pLL.Y = -90;
IPoint pLR = new Point();
pLR.X = 180;
pLR.Y = -90;
IPoint pUR = new Point();
pUR.X = 180;
pUR.Y = 90;
// add the points to the point collection
IPointCollection pPtColl = new Polygon();
pPtColl.AddPoint(pUL, Type.Missing, Type.Missing);
pPtColl.AddPoint(pUR, Type.Missing, Type.Missing);
pPtColl.AddPoint(pLR, Type.Missing, Type.Missing);
pPtColl.AddPoint(pLL, Type.Missing, Type.Missing);
pPtColl.AddPoint(pUL, Type.Missing, Type.Missing);
// define the polygon as a list of points, then close the polygon
worldPolygon = (IPolygon)pPtColl;
worldPolygon.Close();
}
开发者ID:domesticmouse,项目名称:mapsengine-arcgis-connector,代码行数:43,代码来源:GoogleMapsEngineFeatureClassManagement.cs