Examples of createLinearRing()


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

    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)});
    LinearRing interiorRing1 = factory.createLinearRing(new Coordinate[] {new Coordinate(20.0, 20.0),
        new Coordinate(40.0, 20.0), new Coordinate(40.0, 40.0), new Coordinate(20.0, 40.0)});
    LinearRing interiorRing2 = factory.createLinearRing(new Coordinate[] {new Coordinate(60.0, 60.0),
        new Coordinate(80.0, 60.0), new Coordinate(80.0, 80.0), new Coordinate(60.0, 80.0)});
    polygon = factory.createPolygon(exteriorRing, new LinearRing[] {interiorRing1, interiorRing2});
    multiPolygon = factory.createMultiPolygon(new Polygon[] {(Polygon) polygon.clone()});

    index = new TransactionGeomIndex();
View Full Code Here

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

    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)});
    LinearRing interiorRing1 = factory.createLinearRing(new Coordinate[] {new Coordinate(20.0, 20.0),
        new Coordinate(40.0, 20.0), new Coordinate(40.0, 40.0), new Coordinate(20.0, 40.0)});
    LinearRing interiorRing2 = factory.createLinearRing(new Coordinate[] {new Coordinate(60.0, 60.0),
        new Coordinate(80.0, 60.0), new Coordinate(80.0, 80.0), new Coordinate(60.0, 80.0)});
View Full Code Here

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

        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)});
    LinearRing interiorRing1 = factory.createLinearRing(new Coordinate[] {new Coordinate(20.0, 20.0),
        new Coordinate(40.0, 20.0), new Coordinate(40.0, 40.0), new Coordinate(20.0, 40.0)});
    LinearRing interiorRing2 = factory.createLinearRing(new Coordinate[] {new Coordinate(60.0, 60.0),
        new Coordinate(80.0, 60.0), new Coordinate(80.0, 80.0), new Coordinate(60.0, 80.0)});
    polygon = factory.createPolygon(exteriorRing, new LinearRing[] {interiorRing1, interiorRing2});
    multiPolygon = factory.createMultiPolygon(new Polygon[] {(Polygon) polygon.clone()});
View Full Code Here

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

    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)});
    LinearRing interiorRing1 = factory.createLinearRing(new Coordinate[] {new Coordinate(20.0, 20.0),
        new Coordinate(40.0, 20.0), new Coordinate(40.0, 40.0), new Coordinate(20.0, 40.0)});
    LinearRing interiorRing2 = factory.createLinearRing(new Coordinate[] {new Coordinate(60.0, 60.0),
        new Coordinate(80.0, 60.0), new Coordinate(80.0, 80.0), new Coordinate(60.0, 80.0)});
    polygon = factory.createPolygon(exteriorRing, new LinearRing[] {interiorRing1, interiorRing2});
    multiPolygon = factory.createMultiPolygon(new Polygon[] {(Polygon) polygon.clone()});

    index = new TransactionGeomIndex();
View Full Code Here

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

    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)});
    LinearRing interiorRing1 = factory.createLinearRing(new Coordinate[] {new Coordinate(20.0, 20.0),
        new Coordinate(40.0, 20.0), new Coordinate(40.0, 40.0), new Coordinate(20.0, 40.0)});
    LinearRing interiorRing2 = factory.createLinearRing(new Coordinate[] {new Coordinate(60.0, 60.0),
        new Coordinate(80.0, 60.0), new Coordinate(80.0, 80.0), new Coordinate(60.0, 80.0)});
View Full Code Here

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

        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)});
    LinearRing interiorRing1 = factory.createLinearRing(new Coordinate[] {new Coordinate(20.0, 20.0),
        new Coordinate(40.0, 20.0), new Coordinate(40.0, 40.0), new Coordinate(20.0, 40.0)});
    LinearRing interiorRing2 = factory.createLinearRing(new Coordinate[] {new Coordinate(60.0, 60.0),
        new Coordinate(80.0, 60.0), new Coordinate(80.0, 80.0), new Coordinate(60.0, 80.0)});
    polygon = factory.createPolygon(exteriorRing, new LinearRing[] {interiorRing1, interiorRing2});
    multiPolygon = factory.createMultiPolygon(new Polygon[] {(Polygon) polygon.clone()});
View Full Code Here

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

    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)});
    LinearRing interiorRing1 = factory.createLinearRing(new Coordinate[] {new Coordinate(20.0, 20.0),
        new Coordinate(40.0, 20.0), new Coordinate(40.0, 40.0), new Coordinate(20.0, 40.0)});
    LinearRing interiorRing2 = factory.createLinearRing(new Coordinate[] {new Coordinate(60.0, 60.0),
        new Coordinate(80.0, 60.0), new Coordinate(80.0, 80.0), new Coordinate(60.0, 80.0)});
    polygon = factory.createPolygon(exteriorRing, new LinearRing[] {interiorRing1, interiorRing2});
    multiPolygon = factory.createMultiPolygon(new Polygon[] {(Polygon) polygon.clone()});

    index = new TransactionGeomIndex();
View Full Code Here

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

  /**
   * Constructor that sets up an initial list of geometries to snap to.
   */
  public SnappingAlgorithmTest() {
    GeometryFactory factory = new GeometryFactory(4326, -1);
    LinearRing shell1 = factory.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, 20.0),
        new Coordinate(10.0, 10.0)});
    LinearRing hole1 = factory.createLinearRing(new Coordinate[] {new Coordinate(12.0, 12.0),
        new Coordinate(18.0, 12.0), new Coordinate(18.0, 18.0), new Coordinate(12.0, 18.0),
        new Coordinate(12.0, 12.0)});
View Full Code Here

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

  public SnappingAlgorithmTest() {
    GeometryFactory factory = new GeometryFactory(4326, -1);
    LinearRing shell1 = factory.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, 20.0),
        new Coordinate(10.0, 10.0)});
    LinearRing hole1 = factory.createLinearRing(new Coordinate[] {new Coordinate(12.0, 12.0),
        new Coordinate(18.0, 12.0), new Coordinate(18.0, 18.0), new Coordinate(12.0, 18.0),
        new Coordinate(12.0, 12.0)});
    geometries.add(factory.createPolygon(shell1, new LinearRing[] {hole1}));
    LinearRing shell2 = factory.createLinearRing(new Coordinate[] {new Coordinate(5.0, 5.0),
        new Coordinate(15.0, 5.0), new Coordinate(15.0, 25.0), new Coordinate(5.0, 25.0)});
View Full Code Here

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

        new Coordinate(10.0, 10.0)});
    LinearRing hole1 = factory.createLinearRing(new Coordinate[] {new Coordinate(12.0, 12.0),
        new Coordinate(18.0, 12.0), new Coordinate(18.0, 18.0), new Coordinate(12.0, 18.0),
        new Coordinate(12.0, 12.0)});
    geometries.add(factory.createPolygon(shell1, new LinearRing[] {hole1}));
    LinearRing shell2 = factory.createLinearRing(new Coordinate[] {new Coordinate(5.0, 5.0),
        new Coordinate(15.0, 5.0), new Coordinate(15.0, 25.0), new Coordinate(5.0, 25.0)});
    geometries.add(factory.createPolygon(shell2, null));
  }

  @Test
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.