Ejemplo n.º 1
0
        public List <ShapeParams> GetShapeParams(GeoMultiPolygon geo_multiPoligon, OperationShapeProperty property)
        {
            List <ShapeParams> param_list = null;

            if (geo_multiPoligon != null)
            {
                int polygon_count = ((Point[][][])geo_multiPoligon.coordinates).GetLength(0);

                if (polygon_count > 0)
                {
                    param_list = new List <ShapeParams>();
                    for (int i = 0; i < polygon_count; i++)
                    {
                        ShapeParams p = new ShapeParams();
                        p.ShapeName       = "OperationPolygon" + (i + 1).ToString();
                        p.ShapeType       = "Polygon";
                        p.StrokeWeight    = property.StrokeWeight;
                        p.StrokeColor     = property.StrokeColor;
                        p.FillColor       = property.FillColor;
                        p.GeometricParams = GetNamedParams(((Point[][][])geo_multiPoligon.coordinates)[i]);
                        param_list.Add(p);
                    }
                }
            }
            return(param_list);
        }
Ejemplo n.º 2
0
 public CProperties()
 {
     opProperty = new OperationShapeProperty[3];
     for (int i = 0; i < 3; i++)
     {
         opProperty[i] = new OperationShapeProperty();
     }
 }