首页 / 浏览问题 / 组件GIS / 问题详情
如何创建矢量线型点符号
13EXP 2020年12月04日
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);

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

目标:

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);
4,620EXP 2020年12月04日
...