private static IGeometryCollection MakeMultiPoint(IGeometry geometry,int pointcount)
{
IGeometryCollection g=new MultipointClass();
if(geometry.GeometryType==esriGeometryType.esriGeometryPolyline)
{
IConstructGeometryCollection cc=new GeometryBagClass();
cc.ConstructDivideEqual(geometry as IPolyline ,pointCount,esriConstructDivideEnum.esriDivideIntoPolylines);
var enumGeometry=cc as IEnumGeometry;
var polyline=enumGeometry as IPolyline;
object o=Type.Missing;
if(polyline!=null)
{
g.AddGeometry(poyline.FromPoint,ref o,ref o);
while(polyline!=null)
{
g.AddGeometry(poyline.ToPoint,ref o,ref o);
polyline=enumGeometry.Next() as IPolyline;
}
}
}
return g;
}
相关文章
- 微服务中怎么获取请求头信息-何时使用? 当需要访问 @RequestHeader 不直接支持的功能,或者需要更底层的控制时(虽然比较少见)。 3. 在过滤器 (Filter) 或拦截器 (Interceptor) 中获取 在微服务中,很多横切关注点(Cross-Cutting Concerns)如认证、授权、日志记录、分布式追踪上下文传播等,在请求到达 Controller 之前处理。这时,可以在 Filter 或 Interceptor 中获取请求头。 示例 (使用 Servlet Filter):
- EF调用存储过程查询表中的部分字段,报数据读取器与指定的“AdventureWorksDWModel.Student”不兼容。某个类型为“Age”的成员在同名的数据读取器中没有对应的列。
- delphi 取json中数组的值(ISuperArray)
- VS2022中解决方案显示0项目 | 找不到指定的SDK“”
- git 拉取指定的远程分支(三种方式)
- Python3批量爬取指定微博中的图片
- select标签,获取数据库中的值作为option. 修改时定位在指定位置
- 在字符串中获取指定位置的一段字符(java)
- python的复数的实部虚部都是浮点数吗_python中复数的共轭复数知识点总结
- 【问题描述】 编写程序统计一个英文文本文件中每个单词的出现次数(词频统计),并将统计结果按单词出现频率由高至低输出到指定文件中。 注:在此单词为仅由字母组成的字符序列。包含大写字母的单词应将大写字母转