Examples of createPolygon()


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

        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
  public void testClosestPoint() {
    SnappingAlgorithm algorithm = new ClosestPointAlgorithm(geometries, ruleDistance);
View Full Code Here

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

    Feature feature = new Feature();
    GeometryFactory factory = new GeometryFactory(4326, -1);
    LinearRing invalidRing = factory.createLinearRing(new Coordinate[] {new Coordinate(10, 10),
        new Coordinate(20, 10), new Coordinate(15, 20)/*, new Coordinate(15, 5)*/});
    Polygon inValidPolygon = factory.createPolygon(invalidRing, null);
    feature.setGeometry(inValidPolygon);
    mapModel.getFeatureEditor().startEditing(new Feature[] {feature}, new Feature[] {feature});
  }

  @Test
View Full Code Here

Examples of org.opengis.geometry.coordinate.GeometryFactory.createPolygon()

                    (com.vividsolutions.jts.geom.LinearRing) jtsPolygon.getInteriorRingN(i),
                    crs));
            }
            SurfaceBoundary boundary = pf.createSurfaceBoundary(externalRing,
                    internalRings);
            Polygon polygon = gf.createPolygon(boundary);
            ArrayList patches = new ArrayList();
            patches.add(polygon);
            PolyhedralSurface result = gf.createPolyhedralSurface(patches);
            return result;
       
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.