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

access 数据库做网站互联网销售怎么做

access 数据库做网站,互联网销售怎么做,阜阳网页定制,网站推广经验杂谈ArcGIS Pro SDK (九)几何 7 多点 文章目录 ArcGIS Pro SDK (九)几何 7 多点1 构造多点 - 从映射点的枚举2 构造多点 - 使用 MultipointBuilderEx3 修改多点的点4 从多点检索点、2D 坐标、3D 坐标 环境:Visual Studio 2…

ArcGIS Pro SDK (九)几何 7 多点

文章目录

  • ArcGIS Pro SDK (九)几何 7 多点
    • 1 构造多点 - 从映射点的枚举
    • 2 构造多点 - 使用 MultipointBuilderEx
    • 3 修改多点的点
    • 4 从多点检索点、2D 坐标、3D 坐标

环境:Visual Studio 2022 + .NET6 + ArcGIS Pro SDK 3.0

1 构造多点 - 从映射点的枚举

// 使用 builderEx 的便捷方法或者使用 builderEx 构造函数。List<MapPoint> list = new List<MapPoint>();
list.Add(MapPointBuilderEx.CreateMapPoint(1.0, 1.0));
list.Add(MapPointBuilderEx.CreateMapPoint(1.0, 2.0));
list.Add(MapPointBuilderEx.CreateMapPoint(2.0, 2.0));
list.Add(MapPointBuilderEx.CreateMapPoint(2.0, 1.0));// 使用 builderEx 构造函数 - 不需要在 MCT 上运行。
// 使用 AttributeFlags.NoAttributes - 我们在列表中有 2d 点
MultipointBuilderEx builderEx = new MultipointBuilderEx(list, AttributeFlags.None);
Multipoint multiPoint = builderEx.ToGeometry() as Multipoint;
int ptCount = builderEx.PointCount;// builderEx 便捷方法不需要在 MCT 上运行
multiPoint = MultipointBuilderEx.CreateMultipoint(list);
// multiPoint.HasZ, HasM, HasID 将为 false - 属性是根据列表中点的属性状态确定的// 或者具体设置状态
multiPoint = MultipointBuilderEx.CreateMultipoint(list, AttributeFlags.None);
// multiPoint.HasM = falsemultiPoint = MultipointBuilderEx.CreateMultipoint(list, AttributeFlags.HasM);
// multiPoint.HasM = trueptCount = multiPoint.PointCount;

2 构造多点 - 使用 MultipointBuilderEx

Coordinate2D[] coordinate2Ds = new Coordinate2D[] { new Coordinate2D(1, 2), new Coordinate2D(-1, -2) };
SpatialReference sr = SpatialReferences.WGS84;MultipointBuilderEx builder = new MultipointBuilderEx(coordinate2Ds, sr);// builder.PointCount = 2builder.HasZ = true;
// builder.Zs.Count = 2
// builder.Zs[0] = 0
// builder.Zs[1] = 0builder.HasM = true;
// builder.Ms.Count = 2
// builder.Ms[0] = NaN
// builder.Ms[1] = NaNbuilder.HasID = true;
// builder.IDs.Count = 2
// builder.IDs[0] = 0
// builder.IDs[1] = 0// 设置为空
builder.SetEmpty();
// builder.Coords.Count = 0
// builder.Zs.Count = 0
// builder.Ms.Count = 0
// builder.IDs.Count = 0// 重置坐标
List<Coordinate2D> inCoords = new List<Coordinate2D>() { new Coordinate2D(1, 2), new Coordinate2D(3, 4), new Coordinate2D(5, 6) };
builder.Coordinate2Ds = inCoords;
// builder.Coords.Count = 3
// builder.HasZ = true
// builder.HasM = true
// builder.HasID = truedouble[] zs = new double[] { 1, 2, 1, 2, 1, 2 };
builder.Zs = zs;   
// builder.Zs.Count = 6double[] ms = new double[] { 0, 1 };
builder.Ms = ms;   
// builder.Ms.Count = 2// 坐标现在为   (x, y, z, m, id)
//  (1, 2, 1, 0, 0), (3, 4, 2, 1, 0) (5, 6, 1, NaN, 0)MapPoint mapPoint = builder.GetPoint(2);
// mapPoint.HasZ = true
// mapPoint.HasM = true
// mapPoint.HasID = true
// mapPoint.Z  = 1
// mapPoint.M = NaN
// mapPoint.ID = 0// 添加一个 M 到列表
builder.Ms.Add(2);
// builder.Ms.count = 3// 坐标现在为   (x, y, z, m, id)
//  (1, 2, 1, 0, 0), (3, 4, 2, 1, 0) (5, 6, 1, 2, 0)// 现在再次获取第二个点;它现在将有一个 M 值
mapPoint = builder.GetPoint(2);
// mapPoint.M = 2int[] ids = new int[] { -1, -2, -3 };
// 分配 ID 值
builder.IDs = ids;// 坐标现在为   (x, y, z, m, id)
//  (1, 2, 1, 0, -1), (3, 4, 2, 1, -2) (5, 6, 1, 2, -3)// 创建一个新点
MapPoint point = MapPointBuilderEx.CreateMapPoint(-300, 400, 4);
builder.SetPoint(2, point);// 坐标现在为   (x, y, z, m, id)
//  (1, 2, 1, 0, -1), (3, 4, 2, 1, -2) (-300, 400, 4, NaN, 0)builder.RemovePoints(1, 3);
// builder.PointCount = 1

3 修改多点的点

// 假设一个多点是由 4 个点构成的
// 修改后的多点将移除第一个点并移动最后一个点// 使用 builderEx 构造函数 = 不需要在 MCT 上运行。
MultipointBuilderEx builderEx = new MultipointBuilderEx(multipoint);
// 移除第一个点
builderEx.RemovePoint(0);
// 修改最后一个点的坐标
var ptEx = builderEx.GetPoint(builderEx.PointCount - 1);
builderEx.RemovePoint(builderEx.PointCount - 1);var newPtEx = MapPointBuilderEx.CreateMapPoint(ptEx.X + 1.0, ptEx.Y + 2.0);
builderEx.AddPoint(newPtEx);
Multipoint modifiedMultiPointEx = builderEx.ToGeometry() as Multipoint;

4 从多点检索点、2D 坐标、3D 坐标

ReadOnlyPointCollection points = multipoint.Points;
IReadOnlyList<Coordinate2D> coords2d = multipoint.Copy2DCoordinatesToList();
IReadOnlyList<Coordinate3D> coords3d = multipoint.Copy3DCoordinatesToList();
http://www.shuangfujiaoyu.com/news/34735.html

相关文章:

  • 免费建造公司网站google推广及广告优缺点
  • 在线编辑ppt的网站微信营销平台
  • 网站建设建设公司有哪些台湾搜索引擎
  • wordpress 输出评论湖南seo推广服务
  • 成都网站建设939百度快速排名软件下载
  • 郑州大型网站建设长沙网站排名推广
  • 学会网站建设能成为一项职业吗打开2345网址大全
  • 国家安全文化建设网站最新做做网站
  • wordpress修改底部版权seo诊断报告
  • 网站测试怎么做app下载推广平台
  • 建设官方网站企业网站软文兼职
  • 做商城网站都需要什么广州seo排名外包
  • 国家商标总局官网查询百度网站优化
  • 秦皇岛海三建设怎么样seo在线优化技术
  • 做网站设计制作的公司会员制营销方案
  • 南通医院网站建设方案seo要点
  • 东莞哪家做网站爱站网站排行榜
  • 南阳市网站制作seo草根博客
  • wordpress 内容抓取海外seo是什么
  • 专门做讲座的英语网站域名历史查询工具
  • 网站推广工做计划范本最新军事战争新闻消息
  • 孟村网站建设产品如何做市场推广
  • 简约风格办公室设计seo网站排名优化价格
  • html网站的直播怎么做班级优化大师学生版
  • 深圳专业制作网站的公司哪家好成年s8视频加密线路
  • 网站制作业务百度搜索关键词排名优化推广
  • 长春省妇幼网站做四维长春网站建设推广
  • 2016大型注册域名网站有哪些share群组链接分享
  • wordpress网站修改域名站长之家素材网站
  • html5网站后台怎么做十大禁止安装应用入口