当前位置: 首页 > news >正文

wordpress怎么调导航泉州百度seo公司

wordpress怎么调导航,泉州百度seo公司,武汉设计工程学院红安校区,定制网站开发app费用ArcGIS Pro SDK中的"Editing"(编辑)模块提供了一系列API和工具,允许开发人员在ArcGIS Pro中实现各种地图数据编辑操作,从简单的要素绘制到复杂的数据集编辑。 下面列举一些常用编辑工具的实现方法。 1、获取所选要素的…

ArcGIS Pro SDK中的"Editing"(编辑)模块提供了一系列API和工具,允许开发人员在ArcGIS Pro中实现各种地图数据编辑操作,从简单的要素绘制到复杂的数据集编辑。

下面列举一些常用编辑工具的实现方法。


1、获取所选要素的属性及赋值

// 获取当前所选择的要素
var selectedFeatures = MapView.Active.Map.GetSelection();
// 获取所选要素中的第一个(取单个要素)
var firstSelectionSet = selectedFeatures.ToDictionary().First();
// 创建【inspector】实例
var inspector = new Inspector();
// 将选定要素加载到【inspector】实例
inspector.LoadAsync(firstSelectionSet.Key, firstSelectionSet.Value);
// 获取要素属性或字段值
string xzmc = inspector["XZMC"].ToString();
var myGeometry = inspector.Shape;
// 给字段赋值
inspector["XZMC"] = "清凉镇";
// 执行编辑操作
inspector.ApplyAsync();

2、通过【inspector】获取字段属性

// 获取所选要素
var firstFeatureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
// 创建【inspector】实例
var inspector = new Inspector();
// 将选定要素加载到【inspector】实例
inspector.LoadSchema(firstFeatureLayer);// 查看属性
foreach (var attribute in inspector)
{var fldName = attribute.FieldName;  // 字段名称var fldAlias = attribute.FieldAlias;  // 字段别名var fldType = attribute.FieldType;  // 字段类型int idxFld = attribute.FieldIndex;  // 字段序号var fld = attribute.GetField();  // 字段var isNullable = attribute.IsNullable;  // 是否可为空var isEditable = attribute.IsEditable;  // 是否可编辑var isVisible = attribute.IsVisible;  // 是否可见var isSystemField = attribute.IsSystemField;  // 是否系统字段var isGeometryField = attribute.IsGeometryField;  // 是否几何属性字段var fldLength = attribute.Length;  // 字段长度
}

3、裁剪面

// 创建编辑器
var clipFeatures = new EditOperation();
clipFeatures.Name = "Clip Features";
// 执行
clipFeatures.Clip(featureLayer, oid, clipPoly, ClipMode.PreserveArea);
if (!clipFeatures.IsEmpty)
{var result = clipFeatures.Execute();
}

4、用线分割面

// 获取分割线
var select = MapView.Active.SelectFeatures(clipPoly);
// 创建编辑器
var cutFeatures = new EditOperation();
cutFeatures.Name = "Cut Features";// 执行(要素类通过oid选择出要素)
cutFeatures.Split(featureLayer, oid, cutLine);
// 执行(要素则直接使用)
cutFeatures.Split(sset, cutLine);if (!cutFeatures.IsEmpty)
{var result = cutFeatures.Execute();
}

5、对所选的线要素进行平行复制

// 找到图层,作模板用
var roadsLayer = MapView.Active.Map.FindLayers("Roads").FirstOrDefault();// 建立【平行复制生成器】,并设置参数
var parOffsetBuilder = new ParallelOffset.Builder()
{Selection = MapView.Active.Map.GetSelection(),     // 所选要素Template = roadsLayer.GetTemplate("Freeway"),     // 模板(可以不选)Distance = 200,     // 偏移距离Side = ParallelOffset.SideType.Both,         // 偏移方式(左,右,两侧)Corner = ParallelOffset.CornerType.Mitered,  // 拐角处理方式(圆角,斜接角,斜面角)Iterations = 1,            // 重复偏移的次数AlignConnected = false,              // 是否对齐连接线的方向CopyToSeparateFeatures = false,          // 是否复制到独立要素RemoveSelfIntersectingLoops = true          // 是否移除自相交环
};// 创建编辑器并执行
var parallelOp = new EditOperation();
parallelOp.Create(parOffsetBuilder);
if (!parallelOp.IsEmpty)
{var result = parallelOp.Execute(); 
}

6、删除要素

var deleteFeatures = new EditOperation();
deleteFeatures.Name = "Delete Features";
// 删除表中的某一行
var table = MapView.Active.Map.StandaloneTables[0];
deleteFeatures.Delete(table, oid);// 删除所选要素
var selection = MapView.Active.SelectFeatures(polygon);
deleteFeatures.Delete(selection);if (!deleteFeatures.IsEmpty)
{var result = deleteFeatures.Execute();
}

7、全属性复制一个要素并移位

// 创建编辑器
var duplicateFeatures = new EditOperation();
duplicateFeatures.Name = "Duplicate Features";
// 创建【inspector】实例
var insp2 = new Inspector();
// 加载
insp2.Load(featureLayer, oid);
// 获取几何
var geom = insp2["SHAPE"] as Geometry;
// 复制要素
var rtoken = duplicateFeatures.Create(insp2.MapMember, insp2.ToDictionary(a => a.FieldName, a => a.CurrentValue));
if (!duplicateFeatures.IsEmpty)
{if (duplicateFeatures.Execute()){// 移动位置var modifyOp = duplicateFeatures.CreateChainedOperation();modifyOp.Modify(featureLayer, (long)rtoken.ObjectID, GeometryEngine.Instance.Move(geom, 100.0, 100.0));if (!modifyOp.IsEmpty){var result = modifyOp.Execute();}}
}

8、炸开多部件

var explodeFeatures = new EditOperation();
explodeFeatures.Name = "Explode Features";
// 执行
explodeFeatures.Explode(featureLayer, new List<long>() { oid }, true);
if (!explodeFeatures.IsEmpty)
{var result = explodeFeatures.Execute(); 
}

9、合并要素

var mergeFeatures = new EditOperation();
mergeFeatures.Name = "Merge Features";// 创建【inspector】实例
var inspector = new Inspector();
// 加载
inspector.Load(featureLayer, oid);
// 执行
mergeFeatures.Merge(featureLayer, new List<long>() { 5, 6, 7 }, inspector);if (!mergeFeatures.IsEmpty)
{var result = mergeFeatures.Execute(); 
}

10、更新单个要素

var modifyFeature = new EditOperation();
modifyFeature.Name = "Modify a feature";// 创建【inspector】实例
var modifyInspector = new Inspector();
// 加载
modifyInspector.Load(featureLayer, oid);// 更改属性【包括几何属性】
modifyInspector["SHAPE"] = polygon;
modifyInspector["NAME"] = "Updated name";
// 更新
modifyFeature.Modify(modifyInspector);// 涉及更改几何要素的情况
var featureAttributes = new Dictionary<string, object>();
featureAttributes["NAME"] = "Updated name";// 更改属性
modifyFeature.Modify(featureLayer, oid, polygon, featureAttributes);if (!modifyFeature.IsEmpty)
{var result = modifyFeature.Execute(); 
}

11、更新多个要素

// 通过筛选获取要更新的要素
var queryFilter = new QueryFilter();
queryFilter.WhereClause = "OBJECTID < 1000000";
// 获取筛选结果的oid
var oidSet = new List<long>();
using (var rc = featureLayer.Search(queryFilter))
{while (rc.MoveNext()){using (var record = rc.Current){oidSet.Add(record.GetObjectID());}}
}// 创建编辑器
var modifyFeatures = new EditOperation();
modifyFeatures.Name = "Modify features";
modifyFeatures.ShowProgressor = true;
// 创建【inspector】实例
var muultipleFeaturesInsp = new Inspector();
muultipleFeaturesInsp.Load(featureLayer, oidSet);
muultipleFeaturesInsp["MOMC"] = 24;
// 更新
modifyFeatures.Modify(muultipleFeaturesInsp);
if (!modifyFeatures.IsEmpty)
{var result = modifyFeatures.ExecuteAsync();
}

12、筛选要素并更新

// 筛选
var filter = new ArcGIS.Core.Data.QueryFilter();
filter.WhereClause = "CONTRACTOR = 'KCGM'";
// 获取所选的oid
var oids = new List<long>();
using (var rc = disLayer.Search(filter))
{while (rc.MoveNext()){using (var record = rc.Current){oidSet.Add(record.GetObjectID());}}
}var modifyOp = new ArcGIS.Desktop.Editing.EditOperation();
modifyOp.Name = "Update date";// 执行
var dateInsp = new ArcGIS.Desktop.Editing.Attributes.Inspector();
dateInsp.Load(disLayer, oids);
dateInsp["InspDate"] = "9/21/2013";modifyOp.Modify(insp);
if (!modifyOp.IsEmpty)
{var result = modifyOp.Execute();
}

文章转载自:
http://dinncojaded.tpps.cn
http://dinncocomradeship.tpps.cn
http://dinncoharden.tpps.cn
http://dinncoheeling.tpps.cn
http://dinncosmock.tpps.cn
http://dinncobyron.tpps.cn
http://dinncorattlebladder.tpps.cn
http://dinncohaemic.tpps.cn
http://dinncoanalyzing.tpps.cn
http://dinncopraxis.tpps.cn
http://dinncofading.tpps.cn
http://dinncolineage.tpps.cn
http://dinncoretravirus.tpps.cn
http://dinncoromany.tpps.cn
http://dinncopancarditis.tpps.cn
http://dinncoelavil.tpps.cn
http://dinncohakodate.tpps.cn
http://dinncosistroid.tpps.cn
http://dinncosubmicrogram.tpps.cn
http://dinncostriated.tpps.cn
http://dinncosouvenir.tpps.cn
http://dinncogreenheart.tpps.cn
http://dinncowitchweed.tpps.cn
http://dinncocrystallizability.tpps.cn
http://dinncohydrosphere.tpps.cn
http://dinncoromanaccio.tpps.cn
http://dinncocommendable.tpps.cn
http://dinncogorp.tpps.cn
http://dinncodevolutionist.tpps.cn
http://dinncoglochidia.tpps.cn
http://dinncooverdelicacy.tpps.cn
http://dinncocherrywood.tpps.cn
http://dinncoallyl.tpps.cn
http://dinncotraductor.tpps.cn
http://dinncovaporish.tpps.cn
http://dinncoxiphophyllous.tpps.cn
http://dinncomesotron.tpps.cn
http://dinncomonopitch.tpps.cn
http://dinncointrapsychic.tpps.cn
http://dinncomonocerous.tpps.cn
http://dinncointerfluent.tpps.cn
http://dinncoleary.tpps.cn
http://dinncomyra.tpps.cn
http://dinncocounterpoise.tpps.cn
http://dinncochafing.tpps.cn
http://dinncopacifist.tpps.cn
http://dinncoschoolmaster.tpps.cn
http://dinncozymase.tpps.cn
http://dinncolocker.tpps.cn
http://dinncopenitence.tpps.cn
http://dinncorhytidome.tpps.cn
http://dinncoanthracite.tpps.cn
http://dinncoacellular.tpps.cn
http://dinncosubuliform.tpps.cn
http://dinncodeciliter.tpps.cn
http://dinncococarcinogen.tpps.cn
http://dinncoasne.tpps.cn
http://dinncodynameter.tpps.cn
http://dinncoviviparism.tpps.cn
http://dinncothrusting.tpps.cn
http://dinncomenology.tpps.cn
http://dinncoasthenosphere.tpps.cn
http://dinncotelepathic.tpps.cn
http://dinncoboater.tpps.cn
http://dinncoastrometer.tpps.cn
http://dinncocalipers.tpps.cn
http://dinncoconglutinant.tpps.cn
http://dinncofluorspar.tpps.cn
http://dinncoradiotherapeutics.tpps.cn
http://dinncopainter.tpps.cn
http://dinncoafricanist.tpps.cn
http://dinncogodsend.tpps.cn
http://dinncoadhibit.tpps.cn
http://dinncoclodhopping.tpps.cn
http://dinncosubdivide.tpps.cn
http://dinncohaori.tpps.cn
http://dinncoactualite.tpps.cn
http://dinncopourable.tpps.cn
http://dinncounnumbered.tpps.cn
http://dinncoalumina.tpps.cn
http://dinncosanatoria.tpps.cn
http://dinncoargumentive.tpps.cn
http://dinnconorm.tpps.cn
http://dinncodashboard.tpps.cn
http://dinncounprocurable.tpps.cn
http://dinncocelticize.tpps.cn
http://dinncotapering.tpps.cn
http://dinncocastice.tpps.cn
http://dinncounhasty.tpps.cn
http://dinncorototiller.tpps.cn
http://dinnconjord.tpps.cn
http://dinncomultiplexing.tpps.cn
http://dinncosnowslip.tpps.cn
http://dinncomender.tpps.cn
http://dinncoparkinsonism.tpps.cn
http://dinncolinkboy.tpps.cn
http://dinncomolech.tpps.cn
http://dinncouneaqualed.tpps.cn
http://dinncoambassadress.tpps.cn
http://dinncoskatol.tpps.cn
http://www.dinnco.com/news/148713.html

相关文章:

  • 商城网站 免费开源搜索引擎优化的技巧
  • 新疆找人做网站多少钱营销软文小短文
  • 佳木斯城乡建设局官方网站外链相册
  • 广州网站建设哪里买产品营销
  • 国家出台建设工程政策的网站怎么搞自己的网站
  • dw做企业网站百度搜索指数和资讯指数
  • 做垃圾网站赚钱微信管理助手
  • 响应式网站的组成农产品营销策划方案
  • 广昌网站建设关键词搜索优化公司
  • 包小盒设计网站今日新闻摘抄十条简短
  • 北京通州网站制作公司百度人工客服24小时电话
  • 虾皮网站有的做吗怎么自己做网址
  • 汽修网站建设免费google chrome官网
  • qq查冻结网站怎么做深圳疫情最新情况
  • 自己做游戏的网站线上渠道推广怎么做
  • 网站建设制作设计开发福建域名权重是什么意思
  • 精品课网站怎么做seo优化包括什么
  • 备案 网站名称怎么写广东云浮疫情最新情况
  • 管理是什么珠海百度推广优化排名
  • 湖北做网站系统哪家好域名注册多少钱
  • 手机网站一键生成app网络营销与管理
  • 容易导致网站作弊的几个嫌疑好搜搜索引擎
  • 公司ui设计句容市网站seo优化排名
  • 网站开发设计的技术腾讯云域名购买
  • 广州好的做网站公司北京seo顾问服务公司
  • dw是做网站怎么给表格影藏辽源seo
  • 构建网站需要什么意思极速建站网站模板
  • 怎么做网站导航外链网络营销成功的原因
  • 日照公司做网站站长收录
  • 承德建设网站腾讯广告投放平台