本文整理汇总了C#中IGeometry.WMerge方法的典型用法代码示例。如果您正苦于以下问题:C# IGeometry.WMerge方法的具体用法?C# IGeometry.WMerge怎么用?C# IGeometry.WMerge使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IGeometry
的用法示例。
在下文中一共展示了IGeometry.WMerge方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Analyze
public void Analyze(IGeometry geometry)
{
if ((Control.ModifierKeys & Keys.Control) == Keys.Control)
{
if (TempGeometry != null)
{
geometry = geometry.WMerge(TempGeometry);
}
}
else
{
this.TempGeometry = null;
}
switch (this.dataType)
{
case DataType.BusLine:
//获取与公交路线相交
IFeatureLayer BusLinefeatureLayer = GetFeatureLayer(BusLineName.GetLayer());
AnalyzeBase(geometry, SpaceMode.Intersect, BusLinefeatureLayer, "当前区域内公交路线");
//获取 包含的公交站点
IFeatureLayer BusStopFeatureLayer = GetFeatureLayer(BusStopName.GetLayer());
AnalyzeBase(geometry, SpaceMode.Contains, BusStopFeatureLayer, "当前区域内公交站点");
break;
case DataType.Parking:
IFeatureLayer ParkingFeatureLayer = GetFeatureLayer(ParkingName.GetLayer());
AnalyzeBase(geometry, SpaceMode.Contains, ParkingFeatureLayer, "当前区域内停车设施");
break;
}
TempGeometry = geometry;
axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeoSelection, null, axMapControl1.ActiveView.Extent);
}