示例#1
0
        public override double getArea()
        {
            throw new NotImplementedException();

            double area = 0.0;

            foreach (GeoShape i in getShapes())
            {
                if (!i.getSRS().isProjected())
                {
                    GeoShape shape = Registry.SRSFactory().createCEA().transform(i);
                    foreach (GeoPart j in shape.getParts())
                    {
                        area += Math.Abs(GeomUtils.getPolygonArea2D(j));
                    }
                }
                else
                {
                    foreach (GeoPart j in i.getParts())
                    {
                        area += Math.Abs(GeomUtils.getPolygonArea2D(j));
                    }
                }
            }
            return(area);
        }
示例#2
0
 public virtual void setProperty(Property prop)
 {
     if (prop.getName() == "wkt")
     {
         setSRS(Registry.SRSFactory().createSRSfromWKT(prop.getValue()));
     }
     //base.setProperty(prop);
 }