Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public moMapLayer(string name, moGeometryTypeConstant shapeType, moFields attributeFields)
 {
     _Name            = name;
     _ShapeType       = shapeType;
     _AttributeFields = attributeFields;
     Initialize();
 }
Esempio n. 3
0
 private moSymbol _Symbol;         //配置的符号
 #endregion
 #region 构造函数
 public moFeature(moGeometryTypeConstant shapeType, moGeometry geometry, moAttributes attributes)
 {
     _ShapeType  = shapeType;
     _Geometry   = geometry;
     _Attributes = attributes;
 }
Esempio n. 4
0
 public moMapLayer(string name, moGeometryTypeConstant shapeType)
 {
     _Name      = name;
     _ShapeType = shapeType;
     Initialize();
 }