Package org.geotools.geometry

Examples of org.geotools.geometry.GeneralDirectPosition


    @Test
    public void toDirectPosition() {
        Coordinate c = new Coordinate(40,40);
        DirectPosition wrapper = JTS.toDirectPosition(c, DefaultGeographicCRS.WGS84 );
       
        GeneralDirectPosition expected = new GeneralDirectPosition( DefaultGeographicCRS.WGS84);
        expected.setOrdinate(0,40);
        expected.setOrdinate(1,40);
       
        assertEquals( expected, wrapper );
    }
View Full Code Here

TOP

Related Classes of org.geotools.geometry.GeneralDirectPosition

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.