Package org.geotools.referencing.crs

Examples of org.geotools.referencing.crs.AbstractCRS.toWKT()


     * @throws FactoryException if an error occured while querying the factory.
     */
    @Test
    public void testIntern() throws FactoryException {
        final AbstractCRS epsgCrs = (AbstractCRS) CRS.decode("EPSG:4326");
        final String      wkt     = epsgCrs.toWKT();
        final AbstractCRS wktCrs  = (AbstractCRS) CRS.parseWKT(wkt);

        assertTrue   ("equals ignore metadata",  epsgCrs.equals(wktCrs, false));
        assertFalse  ("equals compare metadata", epsgCrs.equals(wktCrs, true));
        assertFalse  ("equals",   epsgCrs.equals(wktCrs));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.