Package org.geomajas.puregwt.client.spatial

Examples of org.geomajas.puregwt.client.spatial.MultiPoint


  @Test
  public void testTransformMultiPoint() {
    Point point1 = factory.createPoint(new Coordinate(0, 0));
    Point point2 = factory.createPoint(new Coordinate(5, 10));
    MultiPoint multiPoint = factory.createMultiPoint(new Point[] { point1, point2 });

    Geometry result = viewPort.transform(multiPoint, RenderSpace.WORLD, RenderSpace.SCREEN);
    Coordinate coordinate = result.getGeometryN(0).getCoordinate();
    Assert.assertEquals(MAP_WIDTH / 2, coordinate.getX(), DELTA);
    Assert.assertEquals(MAP_HEIGHT / 2, coordinate.getY(), DELTA);
View Full Code Here

TOP

Related Classes of org.geomajas.puregwt.client.spatial.MultiPoint

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.