Examples of WFSServiceInfo


Examples of org.geotools.data.wfs.WFSServiceInfo

    public String getDefaultEncoding() {
        return protocolHandler.getEncoding();
    }
   
    public WFSServiceInfo getInfo() {
        return new WFSServiceInfo() {
            public String getDescription() {
                return capabilities.getService().get_abstract();
            }

            public Icon getIcon() {
View Full Code Here

Examples of org.geotools.data.wfs.WFSServiceInfo

    }
     
    @Test
    public void testGetInfo() throws Exception {
        WFSClient client = newClient("GeoServer_1.7.x/1.1.0/GetCapabilities.xml");
        WFSServiceInfo info = client.getInfo();
        assertEquals("My GeoServer WFS", info.getTitle());
        assertEquals("1.1.0", info.getVersion());
        assertEquals(3, info.getKeywords().size());
        assertTrue(info.getKeywords().contains("GEOSERVER"));
        assertTrue(info.getKeywords().contains("WFS"));
        assertTrue(info.getKeywords().contains("WMS"));
        assertEquals("http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd", info.getSchema().toString());
        assertEquals("http://localhost:8080/geoserver/wfs?", info.getSource().toString());
        assertEquals("\n\t\t\tThis is a description of your Web Feature Server." +
                "\n\n\t\t\tThe GeoServer is a full transactional Web Feature Server, you may wish to limit GeoServer to a Basic service" +
          "\n\t\t\tlevel to prevent modificaiton of your geographic data." +
                "\n\t\t", info.getDescription());
    }
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.