skyline 6.0中iLayer.ExecuteSpatialQuery(iGeometry, IntersectionType.IT_INTERSECT)第一个参数如何设置
展开全部
iGeometry在skylinev6中就是个Geometry对象。 实现要创建一个对象 在Creator 接口中的GeometryCreator属性能够通过多种方法创建Geometry对象具体可以查阅开发文档。下面有个示例参考一下。
IGeometry cPolygonGeometry = null;
SGWorld sgworld = new SGWorld();
double[] cVerticesArray = new double[] {
-122.415025, 37.76059, 10,
-122.415868, 37.760546, 11,
-122.415922, 37.761244, 12,
-122.415592, 37.761254, 13,
-122.415557, 37.760973, 14,
-122.415081, 37.76099, 15,
};
ILinearRing cRing = sgworld.Creator.GeometryCreator.CreateLinearRingGeometry(cVerticesArray);
cPolygonGeometry = sgworld.Creator.GeometryCreator.CreatePolygonGeometry(cRing, null);
IGeometry cPolygonGeometry = null;
SGWorld sgworld = new SGWorld();
double[] cVerticesArray = new double[] {
-122.415025, 37.76059, 10,
-122.415868, 37.760546, 11,
-122.415922, 37.761244, 12,
-122.415592, 37.761254, 13,
-122.415557, 37.760973, 14,
-122.415081, 37.76099, 15,
};
ILinearRing cRing = sgworld.Creator.GeometryCreator.CreateLinearRingGeometry(cVerticesArray);
cPolygonGeometry = sgworld.Creator.GeometryCreator.CreatePolygonGeometry(cRing, null);
聚保华泰
2024-10-21 广告
2024-10-21 广告
商业综合责任险(Commercial General Liability, CGL)是我们聚保华泰保险为众多企业客户提供的核心保障之一。它旨在覆盖企业在日常运营中可能因意外事故、疏忽或过失导致的第三方人身伤害、财产损失而面临的法律责任及赔偿...
点击进入详情页
本回答由聚保华泰提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询