public moFeature Clone() { moGeometryTypeConstant sShapeType = _ShapeType; moGeometry sGeometry = null; moAttributes sAttributes = _Attributes.Clone(); if (_ShapeType == moGeometryTypeConstant.Point) { moPoint sPoint = (moPoint)_Geometry; sGeometry = sPoint.Clone(); } else if (_ShapeType == moGeometryTypeConstant.MultiPolyline) { moMultiPolyline sMultiPolyline = (moMultiPolyline)_Geometry; sGeometry = sMultiPolyline.Clone(); } else if (_ShapeType == moGeometryTypeConstant.MultiPolygon) { moMultiPolygon sMultiPolygon = (moMultiPolygon)_Geometry; sGeometry = sMultiPolygon.Clone(); } moFeature sFeature = new moFeature(sShapeType, sGeometry, sAttributes); return(sFeature); }
public moMapLayer(string name, moGeometryTypeConstant shapeType, moFields attributeFields) { _Name = name; _ShapeType = shapeType; _AttributeFields = attributeFields; Initialize(); }
private moSymbol _Symbol; //配置的符号 #endregion #region 构造函数 public moFeature(moGeometryTypeConstant shapeType, moGeometry geometry, moAttributes attributes) { _ShapeType = shapeType; _Geometry = geometry; _Attributes = attributes; }
public moMapLayer(string name, moGeometryTypeConstant shapeType) { _Name = name; _ShapeType = shapeType; Initialize(); }