Examples of SFSLayer


Examples of org.geotools.data.sfs.SFSLayer

        assertEquals(new NameImpl(NAMESPACE, "layerAsia"), it.next());
        assertEquals("layerAmerica", it.next().getLocalPart());
        assertEquals("layerEurope", it.next().getLocalPart());

        /*Test CRS String*/
        SFSLayer layerAsia = ods.getLayer(new NameImpl(NAMESPACE, "layerAsia"));
        assertEquals("urn:ogc:def:crs:EPSG:4326", layerAsia.getLayerSRS());
        assertEquals(false, layerAsia.isXYOrder());
        assertEquals(CRS.decode("EPSG:4326", true), layerAsia.getCoordinateReferenceSystem());
        assertEquals(new Envelope(-40, 80, -10, 30), layerAsia.getBounds());
       
        SFSLayer layerAmerica = ods.getLayer(new NameImpl(NAMESPACE, "layerAmerica"));
        assertEquals("urn:ogc:def:crs:EPSG:32632", layerAmerica.getLayerSRS());
        assertEquals(true, layerAmerica.isXYOrder());
        assertEquals(CRS.decode("EPSG:32632", true), layerAmerica.getCoordinateReferenceSystem());
        assertNull(layerAmerica.getBounds());
       
        SFSLayer layerEurope = ods.getLayer(new NameImpl(NAMESPACE, "layerEurope"));
        assertEquals("urn:ogc:def:crs:EPSG:32632", layerEurope.getLayerSRS());
        assertEquals(true, layerEurope.isXYOrder());
        assertEquals(CRS.decode("EPSG:32632", true), layerEurope.getCoordinateReferenceSystem());
        assertEquals(new Envelope(15000000, 18000000, 49000000, 52000000), layerEurope.getBounds());
    }
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.