ArcGis Runtime for.net

有没有人 用过ArcGis  Runtime for.net 的GeodesicSectorParameters画过扇区呀!能不能给点意见。
已邀请:

席西

赞同来自: 朱新颖 hcj33517

  请尝试,如下代码:  
 public static Polygon SetSector(MapPoint Location)
        {
             GeodesicSectorParameters para = new GeodesicSectorParameters(0,AngularUnits.Degrees, Location,LinearUnits.Kilometers,5,10,GeometryType.Polygon,90,40,40,90);
             Polygon SectorPolygon = GeometryEngine.SectorGeodesic(para) as Polygon;
             return SectorPolygon;
        }

        public static void DrawPolygonGraphic(Polygon polygonShape, GraphicsOverlay polygonGraphicOverlay)
        {
            var outlineSymbol = new SimpleLineSymbol(SimpleLineSymbolStyle.Dash, Colors.Blue, 3.0);
            var fillSymbol = new SimpleFillSymbol(SimpleFillSymbolStyle.Cross, Colors.Aqua, outlineSymbol);
            Graphic poygonGraphic = new Graphic(polygonShape, fillSymbol);
            polygonGraphicOverlay.Graphics.Add(poygonGraphic);
        }
效果图:
QQ图片20170313115423.png


QQ图片20170313132845.png


QQ图片20170313134237.jpg

 

请叫我红领巾。

赞同来自:

666666

要回复问题请先登录注册