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

合肥做网站优化哪家好线上推广的公司

合肥做网站优化哪家好,线上推广的公司,即墨网站建设,外海赌博如何做网站的推广本文用于记录一些使用频率较高但归类繁杂,非系统性的一些代码。 主要方便自己使用和查阅,随时更新。 1、从GDB数据库中打开【FeatureDataset\FeatureClass\Table】 using Geodatabase gdb new Geodatabase(new FileGeodatabaseConnectionPath(new Uri…

本文用于记录一些使用频率较高但归类繁杂,非系统性的一些代码。

主要方便自己使用和查阅,随时更新。


1、从GDB数据库中打开【FeatureDataset\FeatureClass\Table】

using Geodatabase gdb = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(gdbPath)));
FeatureDataset featureDataset = gdb.OpenDataset<FeatureDataset>(featureDatasetName);
FeatureClass featureClass = gdb.OpenDataset<FeatureClass>(featureClassName);
Table table = gdb.OpenDataset<Table>(tableName);

2、从GDB数据库中获取【FeatureDatasetDefinition\FeatureClassDefinition\TableDefinition】

// 扩展用法:GetDefinitions<>
FeatureDatasetDefinition featureDatasetDefinition = gdb.GetDefinition<FeatureDatasetDefinition>(featureDatasetName);
FeatureClassDefinition featureClassDefinition = gdb.GetDefinition<FeatureClassDefinition>(featureClassName);
TableDefinition tableDefinition = gdb.GetDefinition<TableDefinition>(tableName);

3、从【FeatureLayer\FeatureClass】中获取【Feature\Row】

using (RowCursor rowCursor = featureLayer.Search())
{while (rowCursor.MoveNext()){using Feature feature2 = rowCursor.Current as Feature;using Row row = rowCursor.Current;}
}

4、Feature转换为Geometry

Geometry geometry1 = feature.GetShape();

5、Geometry转换为Polygon

Polygon polygon1 = geometry as Polygon;

6、设置Feature的几何形状

feature.SetShape(geometry);

7、获取线、面要素的折点、首末点

ReadOnlyPointCollection mapPoints = polygon.Points;
ReadOnlyPointCollection mapPoints2 = polyline.Points;
MapPoint startPoint = mapPoints.First();
MapPoint endPoint = mapPoints.Last();

8、switch用法示例

string featureclass_type = esriGeometryType switch
{esriGeometryType.esriGeometryPoint => "Point",esriGeometryType.esriGeometryPolyline => "Polyline",esriGeometryType.esriGeometryPolygon => "Polygon",_ => "",
};

9、获取活动地图视图中选择框选定的要素【SelectiontSet】

SelectionSet selectedSet = MapView.Active.Map.GetSelection();

10、在MapTool中获取选择的要素【SelectiontSet】

SelectionSet selectedSet2 = MapView.Active.GetFeatures(geometry);

11、从【SelectionSet】中获取【Geometry】

var selectionList = selectedSet.ToDictionary();
Inspector inspector = new Inspector();
foreach (var selection in selectionList)
{MapMember mapMember = selection.Key;List<long> oids = selection.Value;foreach (var oid in oids){inspector.Load(mapMember, oid);Polygon polygon2 = inspector.Shape as Polygon;}
}

12、Geometry的属性

double polygonArea = polygon.Area;  // 面积
Envelope polygonExtent = polygon.Extent;   // 范围
GeometryType geometryType = geometry.GeometryType;  // 要素类型
SpatialReference spatialReference = geometry.SpatialReference;   // 坐标系
int pointCount = polyline.PointCount;    // 折点数
http://www.hrbkazy.com/news/9109.html

相关文章:

  • 报社网站建设之思考关键词优化seo排名
  • 免费虚拟主机的好处优化20条措施
  • 邵阳做网站的公司巢湖网站制作
  • 如何创建网站教程视频乐陵seo外包
  • 网站建设了解一下图片苏州seo报价
  • 找人做一下网站大概多少钱重庆seo网站哪家好
  • 网站建设 php 企业网站重庆seo招聘
  • 昆明小程序定制开发深圳seo推广培训
  • 匹配网站favicon交换链接适合哪些网站
  • 做物流的网站有哪些内容每天看七个广告赚40元的app
  • 行业推广做哪个网站好昆明seocn整站优化
  • 可以做网站挂在百度上吗seo实战培训中心
  • 做网站厂家本地推广平台
  • 信息型网站有哪些模板建网站价格
  • 怎么看网站是谁做的文章优化软件
  • 家具商务网站策划案搜狗友链交换
  • 智能建站网网络推广网站有哪些
  • 外贸网站推广机构长春网站建设技术托管
  • 网站建设合同】优化公司哪家好
  • 门户网站如何做谷歌seo百度指数分析官网
  • 做网站的无锡信息流优化师怎么入行
  • 万网网站建设百度竞价怎么开户
  • 如何做一张网站平面效果图西安seo建站
  • 网站关于我们怎么做单页面模板seo代码优化步骤
  • 南宁优质手机网站建设公司网站查询
  • html5手机网页模板seo企业优化顾问
  • 食品包装设计网站网络营销软件代理
  • 网站商城运营成本51网站统计
  • 做期货关注网站昆明网络推广
  • 静安网站建设100%能上热门的文案