ArcGISPro⼆次开发-创建图层
using System;
个人简历怎么做using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ArcGIS.Core.CIM;
using ArcGIS.Core.Data;
using ArcGIS.Core.Geometry;
快递什么时候开始停运2021using ArcGIS.Desktop.Catalog;
using ArcGIS.Desktop.Core;
using ArcGIS.Desktop.Editing;
using ArcGIS.Desktop.Extensions;
using ArcGIS.Desktop.Framework;
using ArcGIS.Desktop.Framework.Contracts;
using ArcGIS.Desktop.Framework.Dialogs;
using ArcGIS.Desktop.Framework.Threading.Tasks;
using ArcGIS.Desktop.Mapping;
中国好声音所有歌曲名单using ArcGIS.Desktop.Core.Geoprocessing;
namespace ProAppModule1
{
internal class Button2 : Button
{
public enum EnumFeatureClassType移动硬盘做启动盘
{
POINT,
MULTIPOINT,
POLYLINE,
POLYGON
}
public static async Task CreateFeatureClass(string featureclassName, EnumFeatureClassType featureclassType, SpatialReference pSpatialReference) {
List<object> arguments = new List<object>
{
// store the results in the default geodatabase
CoreModule.CurrentProject.DefaultGeodatabasePath,
支付宝红包口令分享// name of the feature class
featureclassName,
// type of geometry
featureclassType.ToString(),
// no template
"",
// no z values
"DISABLED",
// no m values
"DISABLED"
};
await QueuedTask.Run(() =>
{
// spatial reference
// arguments.Add(SpatialReferenceBuilder.CreateSpatialReference(3857));
arguments.Add(pSpatialReference);
});
IGPResult result = await Geoprocessing.ExecuteToolAsync("CreateFeatureclass_management", Geoprocessing.MakeValueArray(arguments.ToArray())); }
protected override async void OnClick()
{
var mv = MapView.Active;
SpatialReference pSpatialReference= mv.Map.SpatialReference;
EnumFeatureClassType featureclassType = EnumFeatureClassType.POLYGON;
string featureclassName = "gisoracle";
await CreateFeatureClass(featureclassName, featureclassType, pSpatialReference);
//跨年发朋友圈的精美句子
}
}
}
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论