Package org.geoserver.catalog

Examples of org.geoserver.catalog.Keyword


        replay(fs);
           
        FeatureTypeInfo ftInfo = cb.buildFeatureType(fs);
        assertEquals("foo title", ftInfo.getTitle());
        assertEquals("foo description", ftInfo.getDescription());
        assertTrue(ftInfo.getKeywords().contains(new Keyword("foo")));
        assertTrue(ftInfo.getKeywords().contains(new Keyword("bar")));
        assertTrue(ftInfo.getKeywords().contains(new Keyword("baz")));
    }
View Full Code Here


        featureType.setProjectionPolicy(pp);
       
        featureType.setTitle(ftInfoReader.title());
        featureType.setAbstract(ftInfoReader.abstrct());
        for (String kw : ftInfoReader.keywords()) {
            featureType.getKeywords().add(new Keyword(kw));
        }

        for ( Map m : ftInfoReader.metadataLinks() ) {
            MetadataLinkInfo link = factory.createMetadataLink();
            link.setContent( (String) m.get( null ) );
View Full Code Here

        coverage.setName(cInfoReader.name());
        coverage.setNativeName(cInfoReader.name());
        coverage.setTitle(cInfoReader.label());
        coverage.setDescription(cInfoReader.description());
        for (String kw : cInfoReader.keywords()) {
            coverage.getKeywords().add(new Keyword(kw));
        }

        Map<String,Object> envelope = cInfoReader.envelope();
        String userDefinedCrsIdentifier = (String)envelope.get( "srsName" );
        String nativeCrsWkt = (String)envelope.get("crs");
View Full Code Here

        assertEquals( 201, response.getStatusCode() );

        FeatureTypeInfo ft = catalog.getFeatureTypeByName("gs", "pdsa");
        assertNotNull(ft);

        assertTrue(ft.getKeywords().contains(new Keyword("features")));
    }
View Full Code Here

TOP

Related Classes of org.geoserver.catalog.Keyword

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.