Package net.opengis.wcs10

Examples of net.opengis.wcs10.KeywordsType


        ServiceIdentificationType sa = caps.getServiceIdentification();
        assertNotNull(sa);

        assertEquals(1, sa.getKeywords().size());

        KeywordsType keywords = (KeywordsType) sa.getKeywords().get(0);
        assertTrue(keywords.getKeyword().contains("WFS"));
        assertTrue(keywords.getKeyword().contains("NY"));
        assertTrue(keywords.getKeyword().contains("New York"));

        assertEquals("WFS", sa.getServiceType().getValue());
        assertEquals("1.1.0", sa.getServiceTypeVersion());
    }
View Full Code Here


            String crs = value == null ? null : String.valueOf(value);
            ((FeatureTypeType) eObject).setDefaultSRS(crs);
        } else if ("Keywords".equals(property)){
            if (value instanceof String) {
                String[] split = ((String) value).split(",");
                KeywordsType kwd = Ows10Factory.eINSTANCE.createKeywordsType();
                for(int i = 0; i < split.length; i++){
                    String kw = split[i].trim();
                    kwd.getKeyword().add(kw);
                }
                ((FeatureTypeType) eObject).getKeywords().add(kwd);
                return;
            }
        } else if ("LatLongBoundingBox".equals(property)){ // WFS 1.0
View Full Code Here

        {
            FeatureTypeType ft = factory.createFeatureTypeType();
            ft.setName(new QName("http://www.openplans.org/topp", "Type1"));
            ft.setTitle("Title1");
            ft.setAbstract("Abstract1");
            KeywordsType kwd = Ows10Factory.eINSTANCE.createKeywordsType();
            kwd.getKeyword().add("keword1");
            kwd.getKeyword().add("keword2");
            ft.getKeywords().add(kwd);
            ft.setDefaultSRS("urn:ogc:crs:EPSG:6.7:4326");
            ft.getOtherSRS().add("urn:ogc:crs:EPSG:6.7:23030");
            ft.setOperations(factory.createOperationsType());
            OperationsType operations = ft.getOperations();
View Full Code Here

        assertEquals(1, ftl.getFeatureType().size());
        FeatureTypeType ft = (FeatureTypeType) ftl.getFeatureType().get(0);
        assertEquals(new QName("http://www.openplans.org/topp", "name1"), ft.getName());
        assertEquals("title1", ft.getTitle());
        assertEquals(1, ft.getKeywords().size());
        KeywordsType kw = (KeywordsType) ft.getKeywords().get(0);
        assertEquals(2, kw.getKeyword().size());
        assertEquals("urn:ogc:crs:EPSG:6.7:4326", ft.getDefaultSRS());
        assertEquals(1, ft.getOtherSRS().size());
        assertEquals("urn:ogc:crs:EPSG:6.7:23030", ft.getOtherSRS().get(0));
        assertEquals(1, ft.getOutputFormats().getFormat().size());
        assertEquals("GML2", ft.getOutputFormats().getFormat().get(0));
View Full Code Here

        ServiceIdentificationType sa = caps.getServiceIdentification();
        assertNotNull(sa);

        assertEquals(1, sa.getKeywords().size());

        KeywordsType keywords = (KeywordsType) sa.getKeywords().get(0);
        assertTrue(keywords.getKeyword().contains("WFS"));
        assertTrue(keywords.getKeyword().contains("NY"));
        assertTrue(keywords.getKeyword().contains("New York"));

        assertEquals("WFS", sa.getServiceType().getValue());
        assertEquals("1.0.0", sa.getServiceTypeVersion());
    }
View Full Code Here

        String name = (String) node.getChildValue("Name");
        String title = (String) node.getChildValue("Title");
        String keywords = (String) node.getChildValue("Keywords");
        if (keywords != null) {
            KeywordsType kwd = ows10Factory.createKeywordsType();
            String[] split = (keywords).split(",");
            for (int i = 0; i < split.length; i++) {
                String kw = split[i].trim();
                kwd.getKeyword().add(kw);
            }
            service.getKeywords().add(kwd);
        }

        String abstract_ = (String) node.getChildValue("Abstract");
View Full Code Here

       
        ServiceIdentificationType si = caps.getServiceIdentification();
        assertEquals("con terra GmbH Catalogue Server", si.getTitle());
        assertEquals("terraCatalog 2.1 - Web based Catalogue Service \n" +
            "        (CS-W 2.0.0/AP ISO19115/19 0.9.3 (DE-Profil 1.0.1)) for service, datasets and applications", si.getAbstract());
        KeywordsType keywords = (KeywordsType) si.getKeywords().get(0);
        assertEquals("CS-W", keywords.getKeyword().get(0));
        assertEquals("ISO19119", keywords.getKeyword().get(1));
        assertEquals("http://www.conterra.de", keywords.getType().getCodeSpace());
        assertEquals("theme", keywords.getType().getValue());
        assertEquals("CSW", si.getServiceType().getValue());
        // minor trouble here, this should be a list, not a string
        assertEquals("2.0.2", si.getServiceTypeVersion());
       
        ServiceProviderType sp = caps.getServiceProvider();
View Full Code Here

            caps.setServiceIdentification(si);

            si.setTitle(csw.getTitle());
            si.setAbstract(csw.getAbstract());

            KeywordsType kw = null;
            List<KeywordInfo> keywords = csw.getKeywords();
            if (keywords != null && keywords.size() > 0) {
                kw = owsf.createKeywordsType();
                for (KeywordInfo keyword : keywords) {
                    kw.getKeyword().add(keyword.getValue());
                }
            }

            if (kw != null) {
                si.getKeywords().add(kw);
View Full Code Here

        caps.setServiceIdentification( si );
       
        si.getTitle().add( Ows11Util.languageString( wps.getTitle() ) );
        si.getAbstract().add( Ows11Util.languageString( wps.getAbstract() ) );
       
        KeywordsType kw = Ows11Util.keywords( wps.getKeywords( ) ); ;
        if ( kw != null ) {
            si.getKeywords().add( kw );
        }
       
        si.setServiceType( Ows11Util.code( "WPS" ) );
View Full Code Here

   
    public static KeywordsType keywords( List<String> keywords) {
        if ( keywords == null || keywords.size() == 0 ) {
            return null;
        }
        KeywordsType kw = f.createKeywordsType();
        for ( String keyword : keywords ) {
            kw.getKeyword().add( languageString( keyword ) );
        }
        return kw;
    }
View Full Code Here

TOP

Related Classes of net.opengis.wcs10.KeywordsType

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.