Package org.opengis.geometry.primitive

Examples of org.opengis.geometry.primitive.Point


    assertNotNull(positionFactory);
    assertNotNull(primitiveFactory);
   
    // create position and point
    DirectPosition here = positionFactory.createDirectPosition(ords);
    Point point = primitiveFactory.createPoint(here);
    assertNotNull(here.getCoordinateReferenceSystem());
    assertNotNull(point.getCoordinateReferenceSystem());
    assertEquals(here.getCoordinateReferenceSystem(), point.getCoordinateReferenceSystem());
    assertEquals(here, point.getDirectPosition());
    assertEquals(here.hashCode(), point.getDirectPosition().hashCode());
    assertEquals(point.getCentroid(), here);
   
    // get ordinates out of point
    double[] ords2 = point.getCentroid().getCoordinate();
  }
View Full Code Here

TOP

Related Classes of org.opengis.geometry.primitive.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.