如何创建矢量线型点符号

0 投票
Point2Ds point2Ds = new Point2Ds();
Point2D point2D1 = new Point2D();
point2D1.X = 0;
point2D1.Y = 1;
point2Ds.Add(point2D1);
Point2D point2D2 = new Point2D();
point2D2.X = 1;
point2D2.Y = 0;
point2Ds.Add(point2D2);

GeoLine geoLine = new GeoLine(point2Ds);
                        
SymbolMarker marker = new SymbolMarker();
SymbolMarkerStroke symbolMarkerStroke = new SymbolMarkerStroke(geoLine);
                        
marker.Add(symbolMarkerStroke);

保存工作空间时报错:外部组件发生异常。

目标:

12月 4, 2020 分类:  82次浏览 | 用户: wang2543311 才疏学浅 (11 分)

1个回答

1 投票
 
已采纳
Point2Ds point2Ds = new Point2Ds();

            point2Ds.Add(new Point2D(0,0));
            point2Ds.Add(new Point2D(100,100));

            GeoLine geoLine = new GeoLine(point2Ds);

            SymbolMarker marker = new SymbolMarker();
          
            marker.FromGeometry(geoLine, new Rectangle2D(new Point2D(0, 0), new Point2D(100, 100)));

            marker.Name = "330105";
            marker.Origin =new Point(50, 50);
            marker.Size = 6;

            int index = m_workspace.Resources.MarkerLibrary.Add(marker);
12月 4, 2020 用户: 程逸诗 名扬四海 (4,071 分)
采纳于 12月 4, 2020 用户:wang2543311
...