Exemplo n.º 1
0
 /// <exclude/>
 public PolyClass MakePoly(int x, int y)
 {
     PolyClass retVal = new PolyClass();
     retVal.Int = x + y;
     retVal.Double = x * y;
     retVal.Date = DateTime.Now;
     Coordinate[] coords = new Coordinate[5];
     coords[0] = new Coordinate(x, y);
     coords[1] = new Coordinate(x + 10, y);
     coords[2] = new Coordinate(x + 10, y + 20);
     coords[3] = new Coordinate(x, y + 20);
     coords[4] = new Coordinate(x, y);
     retVal.Shape = new Polygon(new LinearRing(coords));
     retVal.Shape.SRID = -1;
     return retVal;
 }