Examples of createLineString()


Examples of com.vividsolutions.jts.geom.GeometryFactory.createLineString()

    public void testNullZeroOp() throws Exception {
        //create features suitable for the test
        GeometryFactory factory=new GeometryFactory();
        // test with 2 arbitrary features, with the second having a null attribute
        LineString[] line = new LineString[3];
        line[0] = factory.createLineString(new Coordinate[]{new Coordinate(10, 10),
                new Coordinate(10, 20),});
        line[1] = factory.createLineString(new Coordinate[]{new Coordinate(20, 10),
                new Coordinate(20, 20), new Coordinate(30, 15), new Coordinate(20, 15),
                new Coordinate(20, 30)});
       
View Full Code Here

Examples of com.vividsolutions.jts.geom.GeometryFactory.createLineString()

        GeometryFactory factory=new GeometryFactory();
        // test with 2 arbitrary features, with the second having a null attribute
        LineString[] line = new LineString[3];
        line[0] = factory.createLineString(new Coordinate[]{new Coordinate(10, 10),
                new Coordinate(10, 20),});
        line[1] = factory.createLineString(new Coordinate[]{new Coordinate(20, 10),
                new Coordinate(20, 20), new Coordinate(30, 15), new Coordinate(20, 15),
                new Coordinate(20, 30)});
       
        String[] attrValues = new String[2];
        attrValues[0] = "value0"; attrValues[1] = null; //$NON-NLS-1$
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory.createLineString()

    if (Geometry.POINT.equals(geometryType)) {
      gwt = factory.createPoint(geometry.getCoordinates()[0]);
    } else if (Geometry.LINEAR_RING.equals(geometryType)) {
      gwt = factory.createLinearRing(geometry.getCoordinates());
    } else if (Geometry.LINE_STRING.equals(geometryType)) {
      gwt = factory.createLineString(geometry.getCoordinates());
    } else if (Geometry.POLYGON.equals(geometryType)) {
      LinearRing exteriorRing = (LinearRing) toGwt(geometry.getGeometries()[0]);
      LinearRing[] interiorRings = new LinearRing[geometry.getGeometries().length - 1];
      for (int i = 0; i < interiorRings.length; i++) {
        interiorRings[i] = (LinearRing) toGwt(geometry.getGeometries()[i + 1]);
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory.createLineString()

  // Constructor
  // -------------------------------------------------------------------------

  public RemoveCoordinateOperationTest() {
    GeometryFactory gwtFactory = new GeometryFactory(SRID, PRECISION);
    lineString = gwtFactory.createLineString(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0)});
    linearRing = gwtFactory.createLinearRing(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0), new Coordinate(10.0, 10.0)});
  }
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory.createLineString()

  // Constructor
  // -------------------------------------------------------------------------

  public SetCoordinateOperationTest() {
    GeometryFactory gwtFactory = new GeometryFactory(SRID, PRECISION);
    lineString = gwtFactory.createLineString(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0)});
    linearRing = gwtFactory.createLinearRing(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0), new Coordinate(10.0, 10.0)});
  }
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory.createLineString()

  // Constructor
  // -------------------------------------------------------------------------

  public TranslateCoordinateOperationTest() {
    GeometryFactory gwtFactory = new GeometryFactory(SRID, PRECISION);
    lineString = gwtFactory.createLineString(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0)});
    linearRing = gwtFactory.createLinearRing(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0), new Coordinate(10.0, 10.0)});
  }
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory.createLineString()

  // Constructor
  // -------------------------------------------------------------------------

  public InsertCoordinateOperationTest() {
    GeometryFactory gwtFactory = new GeometryFactory(SRID, PRECISION);
    lineString = gwtFactory.createLineString(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0)});
    linearRing = gwtFactory.createLinearRing(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0), new Coordinate(10.0, 10.0)});
  }
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory.createLineString()

  // Constructor
  // -------------------------------------------------------------------------

  public RemoveCoordinateTest() {
    GeometryFactory factory = new GeometryFactory(SRID, PRECISION);
    lineString = factory.createLineString(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0), new Coordinate(30.0, 30.0)});
    multiLineString = factory.createMultiLineString(new LineString[] {(LineString) lineString.clone()});

    LinearRing exteriorRing = factory.createLinearRing(new Coordinate[] {new Coordinate(0.0, 0.0),
        new Coordinate(100.0, 0.0), new Coordinate(100.0, 100.0), new Coordinate(0.0, 100.0)});
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory.createLineString()

  // Constructor
  // -------------------------------------------------------------------------

  public AddCoordinateTest() {
    GeometryFactory factory = new GeometryFactory(SRID, PRECISION);
    lineString = factory.createLineString(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0)});
    multiLineString = factory.createMultiLineString(new LineString[] {(LineString) lineString.clone()});

    LinearRing exteriorRing = factory.createLinearRing(new Coordinate[] {new Coordinate(0.0, 0.0),
        new Coordinate(100.0, 0.0), new Coordinate(100.0, 100.0), new Coordinate(0.0, 100.0)});
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory.createLineString()

  // Constructor
  // -------------------------------------------------------------------------

  public SetCoordinateTest() {
    GeometryFactory factory = new GeometryFactory(SRID, PRECISION);
    lineString = factory.createLineString(new Coordinate[] {new Coordinate(10.0, 10.0),
        new Coordinate(20.0, 10.0), new Coordinate(20.0, 20.0), new Coordinate(30.0, 30.0)});
    multiLineString = factory.createMultiLineString(new LineString[] {(LineString) lineString.clone()});

    LinearRing exteriorRing = factory.createLinearRing(new Coordinate[] {new Coordinate(0.0, 0.0),
        new Coordinate(100.0, 0.0), new Coordinate(100.0, 100.0), new Coordinate(0.0, 100.0)});
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.