Package net.opengis.wfs

Examples of net.opengis.wfs.FeatureTypeListType


     * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
     * @generated
     */
  public NotificationChain basicSetFeatureTypeList(FeatureTypeListType newFeatureTypeList, NotificationChain msgs) {
        FeatureTypeListType oldFeatureTypeList = featureTypeList;
        featureTypeList = newFeatureTypeList;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WfsPackage.WFS_CAPABILITIES_TYPE__FEATURE_TYPE_LIST, oldFeatureTypeList, newFeatureTypeList);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here


        assertEquals("Lock", ((net.opengis.wfs.OperationType) o.getOperation().get(4)).getName());
       
    }

    void assertFeatureTypeList(WFSCapabilitiesType caps) {
        FeatureTypeListType ftl = caps.getFeatureTypeList();
        assertNotNull(ftl);

        assertEquals(3, ftl.getFeatureType().size());
        assertEquals("AggregateGeoFeature", ((FeatureTypeType) ftl.getFeatureType().get(0))
                .getName().getLocalPart());
        assertEquals("sf", ((FeatureTypeType) ftl.getFeatureType().get(0)).getName().getPrefix());
        assertEquals("http://cite.opengeospatial.org/gmlsf", ((FeatureTypeType) ftl
                .getFeatureType().get(0)).getName().getNamespaceURI());

        assertEquals("Entit\u00E9G\u00E9n\u00E9rique", ((FeatureTypeType) ftl.getFeatureType().get(
                1)).getName().getLocalPart());
        assertEquals("PrimitiveGeoFeature", ((FeatureTypeType) ftl.getFeatureType().get(2))
                .getName().getLocalPart());
    }
View Full Code Here

    public void testEncode() throws Exception {
        WFSCapabilitiesType caps = factory.createWFSCapabilitiesType();
        caps.setVersion("1.1.0");
        {
            FeatureTypeListType ftl = factory.createFeatureTypeListType();
            caps.setFeatureTypeList(ftl);
        }
        {
            GMLObjectTypeListType servesGmlObj = factory.createGMLObjectTypeListType();
            GMLObjectTypeType gmlObj = factory.createGMLObjectTypeType();
View Full Code Here

    public FeatureTypeListTypeBindingTest() {
        super(WFS.FeatureTypeListType, FeatureTypeListType.class, Binding.OVERRIDE);
    }

    public void testEncode() throws Exception {
        FeatureTypeListType ftl = factory.createFeatureTypeListType();
        {
            OperationsType ops = factory.createOperationsType();
            ops.getOperation().add(OperationType.DELETE_LITERAL);
            ops.getOperation().add(OperationType.INSERT_LITERAL);
            ops.getOperation().add(OperationType.QUERY_LITERAL);
            ftl.setOperations(ops);
        }
        {
            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();
            List operationList = operations.getOperation();
            operationList.add(OperationType.QUERY_LITERAL);
            operationList.add(OperationType.INSERT_LITERAL);
            operationList.add(OperationType.UPDATE_LITERAL);
            operationList.add(OperationType.DELETE_LITERAL);
            OutputFormatListType outputFormat = factory.createOutputFormatListType();
            outputFormat.getFormat().add("GML2");
            ft.setOutputFormats(outputFormat);
            WGS84BoundingBoxType bbox = Ows10Factory.eINSTANCE.createWGS84BoundingBoxType();
            bbox.setCrs("urn:ogc:crs:EPSG:6.7:4326");
            ft.getWGS84BoundingBox().add(bbox);
            ftl.getFeatureType().add(ft);
        }

        final Document dom = encode(ftl, WFS.FeatureTypeList);
        final Element root = dom.getDocumentElement();
View Full Code Here

        final Object parsed = parse(WFS.FeatureTypeList);
        assertNotNull(parsed);
        assertTrue(parsed instanceof FeatureTypeListType);

        final FeatureTypeListType ftl = (FeatureTypeListType) parsed;

        List operations = ftl.getOperations().getOperation();
        assertEquals(4, operations.size());
        assertSame(OperationType.DELETE_LITERAL, operations.get(0));
        assertSame(OperationType.INSERT_LITERAL, operations.get(1));
        assertSame(OperationType.QUERY_LITERAL, operations.get(2));
        assertSame(OperationType.GET_GML_OBJECT_LITERAL, operations.get(3));

        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());
View Full Code Here

                    + "). Defaulting to " + this.serviceVersion);
        }

        typeInfos.clear();

        FeatureTypeListType featureTypeList = this.capabilities.getFeatureTypeList();

        if (featureTypeList == null || featureTypeList.getFeatureType().isEmpty()) {
            Loggers.MODULE.info("WFS Server contains no FeatureTypes: "
                    + getOperationURI(GET_CAPABILITIES, GET));
            return;
        }

        @SuppressWarnings("unchecked")
        List<FeatureTypeType> featureTypes = featureTypeList.getFeatureType();

        for (FeatureTypeType typeInfo : featureTypes) {
            FeatureTypeType transTypeInfo = translateTypeInfo(typeInfo);
            QName name = transTypeInfo.getName();
            typeInfos.put(name, transTypeInfo);
View Full Code Here

        assertEquals("Lock", ((net.opengis.wfs.OperationType) o.getOperation().get(4)).getName());
       
    }

    void assertFeatureTypeList(WFSCapabilitiesType caps) {
        FeatureTypeListType ftl = caps.getFeatureTypeList();
        assertNotNull(ftl);

        assertEquals(3, ftl.getFeatureType().size());

        FeatureTypeType featureType = (FeatureTypeType) ftl.getFeatureType().get(0);
        assertEquals("poly_landmarks", featureType.getName().getLocalPart());
        assertEquals("tiger", featureType.getName().getPrefix());
        assertEquals("http://www.census.gov", featureType.getName().getNamespaceURI());

        assertEquals("EPSG:4326", featureType.getDefaultSRS());
View Full Code Here

TOP

Related Classes of net.opengis.wfs.FeatureTypeListType

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.