Package org.geomajas.gwt.client.spatial.geometry

Examples of org.geomajas.gwt.client.spatial.geometry.GeometryFactory


    mapModel.initialize(info);
    mapModel.selectLayer(mapModel.getLayer("testLayer"));

    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});
  }
View Full Code Here

TOP

Related Classes of org.geomajas.gwt.client.spatial.geometry.GeometryFactory

Copyright © 2018 www.massapicom. 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.