Package org.gwtopenmaps.openlayers.client.geometry

Examples of org.gwtopenmaps.openlayers.client.geometry.Point


        lonLat.transform(new Projection("EPSG:4326").getProjectionCode(), map.getProjection());
        return lonLat;
    }

    public Point createPoint(double x, double y) {
        Point point = new Point(x, y);
        point.transform(new Projection("EPSG:4326"), new Projection(map.getProjection()));
        return point;
    }
View Full Code Here


        for (int i = 0; i < 40; i++) {
            angle += 360 / 40;
            double radius = storeBinder.getModel().getRadius();
            LonLat lonLat = LonLat.narrowToLonLat(destinationVincenty(center.lon(), center.lat(), angle, radius));
            lonLat.transform("EPSG:4326", map.getProjection());
            points[i] = new Point(lonLat.lon(), lonLat.lat());
        }
        LinearRing ring = new LinearRing(points);
        Polygon polygon = new Polygon(new LinearRing[] { ring });

        vectorLayer.addFeature(new VectorFeature(polygon));
View Full Code Here

    for (int i = 0; i < 40; i++) {
      angle += 360 / 40;
      double radius = storeBinder.getModel().getRadius();
      LonLat lonLat = LonLat.narrowToLonLat(destinationVincenty(center.lon(), center.lat(), angle, radius));
      lonLat.transform("EPSG:4326", map.getProjection());
      points[i] = new Point(lonLat.lon(), lonLat.lat());
    }
    LinearRing ring = new LinearRing(points);
    Polygon polygon = new Polygon(new LinearRing[]{ring});

    vectorLayer.addFeature(new VectorFeature(polygon));
View Full Code Here

TOP

Related Classes of org.gwtopenmaps.openlayers.client.geometry.Point

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.