andriod arcgis createPolygons创建带空的面
private void createPolygons() { // create input polygon 1 PointCollection pointsPoly = new PointCollection(SpatialReferences.getWebMercator()); pointsPoly.add(new Point(-13160, 6710100)); pointsPoly.add(new Point(-13300, 6710500)); pointsPoly.add(new Point(-13760, 6710730)); pointsPoly.add(new Point(-14660, 6710000)); pointsPoly.add(new Point(-13960, 6709400)); inputPolygon1 = new Polygon(pointsPoly); // create and add a blue graphic to show input polygon 1 SimpleFillSymbol fillSymbol = new SimpleFillSymbol(SimpleFillSymbol.Style.SOLID, 0x990000CC, lineSymbol); inputGeometryOverlay.getGraphics().add(new Graphic(inputPolygon1, fillSymbol)); // create input polygon 2 with a green (0xFF009900) symbol // outer ring PointCollection outerRingSegmentCollection = new PointCollection(SpatialReferences.getWebMercator()); outerRingSegmentCollection.add(new Point(-13060, 6711030)); outerRingSegmentCollection.add(new Point(-12160, 6710730)); outerRingSegmentCollection.add(new Point(-13160, 6709700)); outerRingSegmentCollection.add(new Point(-14560, 6710730)); outerRingSegmentCollection.add(new Point(-13060, 6711030)); Part outerRing = new Part(outerRingSegmentCollection); // inner ring PointCollection innerRingSegmentCollection = new PointCollection(SpatialReferences.getWebMercator()); innerRingSegmentCollection.add(new Point(-13060, 6710910)); innerRingSegmentCollection.add(new Point(-12450, 6710660)); innerRingSegmentCollection.add(new Point(-13160, 6709900)); innerRingSegmentCollection.add(new Point(-14160, 6710630)); innerRingSegmentCollection.add(new Point(-13060, 6710910)); Part innerRing = new Part(innerRingSegmentCollection); // add both parts (rings) to a part collection and create a geometry from it PartCollection polygonParts = new PartCollection(outerRing); polygonParts.add(innerRing); inputPolygon2 = new Polygon(polygonParts); // create and add a green graphic to show input polygon 2 fillSymbol = new SimpleFillSymbol(SimpleFillSymbol.Style.SOLID, 0x99009900, lineSymbol); inputGeometryOverlay.getGraphics().add(new Graphic(inputPolygon2, fillSymbol)); }
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
2016-10-10 Ieditor
2015-10-10 C# 错误!!容量超出了最大容量。参数名: capacity 这个是什么问题呢?
2015-10-10 arcgis英文版补丁下载地址
2009-10-10 C# 获得打印机的分辨率
2009-10-10 A*寻路算法
2009-10-10 DataTable 添加列、设置主键、添加行、查询、更新
2009-10-10 (int)和Convert.ToInt32区别