Package org.geotools.geometry.jts.spatialschema

Examples of org.geotools.geometry.jts.spatialschema.PositionFactoryImpl


    private PositionFactoryImpl postitionFactory;
    private PrimitiveFactoryImpl primitiveFactory;
    private JTSGeometryFactory geometryFactory;
   
    protected void setUp() throws Exception {
        postitionFactory = new PositionFactoryImpl( DefaultGeographicCRS.WGS84 );
        primitiveFactory = new PrimitiveFactoryImpl( DefaultGeographicCRS.WGS84 );
        geometryFactory = new JTSGeometryFactory( DefaultGeographicCRS.WGS84 );
        // TODO Auto-generated method stub
        super.setUp();
    }
View Full Code Here


    assertEquals(here, point.getDirectPosition());
    assertEquals(here.hashCode(), point.getDirectPosition().hashCode());
  }

  public void testNewFactoryPointHere() {
    PositionFactory gFact = new PositionFactoryImpl(
        DefaultGeographicCRS.WGS84);
    double[] ords = { 48.44, -123.37 };
    DirectPosition here = gFact.createDirectPosition(ords);

    Point point = new PointImpl(here);
    assertNotNull(point.getCoordinateReferenceSystem());
    assertEquals(here.getCoordinateReferenceSystem(), point
        .getCoordinateReferenceSystem());
View Full Code Here

TOP

Related Classes of org.geotools.geometry.jts.spatialschema.PositionFactoryImpl

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.