Examples of CoordinateArraySequence


Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

      if (nextCoord == null) {
        throw new UnmarshallException("inner coordinate missing");
      }
      coordinates[i] = new Coordinate(nextCoord.getDouble("x"), nextCoord.getDouble("y"));
    }
    geometry = new LineString(new CoordinateArraySequence(coordinates), factory);
    return geometry;
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

    if (coord == null) {
      throw new UnmarshallException("inner coordinate missing");
    }

    Coordinate coordinate = new Coordinate(coord.getDouble("x"), coord.getDouble("y"));
    geometry = new Point(new CoordinateArraySequence(new Coordinate[] {coordinate}), factory);
    return geometry;
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

    }
   
    ArrayList<Point> jtsPoints = new ArrayList<Point>();
    for (VectorXZ p : points) {
      CoordinateSequence coordinateSequence =
        new CoordinateArraySequence(new Coordinate[] {
            vectorXZToJTSCoordinate(p)});
      jtsPoints.add(new Point(coordinateSequence, GF));
    }
   
    triangulationBuilder.setSites(
View Full Code Here

Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

    Coordinate[] points = {
        vectorXZToJTSCoordinate(segment.p1),
        vectorXZToJTSCoordinate(segment.p2)
    };
   
    return new LineString(new CoordinateArraySequence(points), GF);
   
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

      VectorXZ vertex = vertices.get(i);
      array[i] = vectorXZToJTSCoordinate(vertex);
    }
   
    return new Polygon(
        new LinearRing(new CoordinateArraySequence(array), GF),
        null, GF);
   
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

    return ei;
  }
 
  public String toString()
  {
    return WKTWriter.toLineString(new CoordinateArraySequence(pts));
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

        return this.endArray();
    }

    private JSONBuilder writeCoordinates(Coordinate[] coords)
        throws JSONException {
        return writeCoordinates(new CoordinateArraySequence(coords));
    }
View Full Code Here

Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

  if (nonRobustInCircle != isInCircleDD || nonRobustInCircle != isInCircleCC) {
    System.out.println("inCircle robustness failure (double result = "
        + nonRobustInCircle
        + ", DD result = " + isInCircleDD
        + ", CC result = " + isInCircleCC + ")");
    System.out.println(WKTWriter.toLineString(new CoordinateArraySequence(
        new Coordinate[] { a, b, c, p })));
    System.out.println("Circumcentre = " + WKTWriter.toPoint(circumCentre)
        + " radius = " + a.distance(circumCentre));
    System.out.println("p radius diff a = "
        + Math.abs(p.distance(circumCentre)/a.distance(circumCentre) - 1));
View Full Code Here

Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

    return Octant.octant(getCoordinate(index), getCoordinate(index + 1));
  }

  public String toString()
  {
    return WKTWriter.toLineString(new CoordinateArraySequence(pts));
  }
View Full Code Here

Examples of com.vividsolutions.jts.geom.impl.CoordinateArraySequence

    return ei;
  }
 
  public String toString()
  {
    return WKTWriter.toLineString(new CoordinateArraySequence(pts));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.