Examples of FilterCapabilities


Examples of org.opengis.filter.capability.FilterCapabilities

        assertEquals("PrimitiveGeoFeature", ((FeatureTypeType) ftl.getFeatureType().get(2))
                .getName().getLocalPart());
    }

    void assertFilterCapabilities(WFSCapabilitiesType caps) {
        FilterCapabilities fc = (FilterCapabilities) caps.getFilterCapabilities();
        assertTrue(fc.getIdCapabilities().hasEID());
        assertTrue(fc.getIdCapabilities().hasFID());

        assertEquals(4, fc.getSpatialCapabilities().getGeometryOperands().size());

        SpatialOperators spatial = (SpatialOperators) fc.getSpatialCapabilities()
                .getSpatialOperators();
        assertEquals(10, spatial.getOperators().size());
        assertNotNull(spatial.getOperator("BBOX"));
        assertNotNull(spatial.getOperator("Intersects"));
    }

Examples of org.opengis.filter.capability.FilterCapabilities

    public FilterCapabilities getFilterCapabilities() {       
        return capabilities.getFilterCapabilities();
    }
   
    public Filter[] splitFilters(Filter filter) {
        FilterCapabilities filterCapabilities = getFilterCapabilities();
        Capabilities filterCaps = new Capabilities();
        if (filterCapabilities != null) {
            filterCaps.addAll(filterCapabilities);
        }
        return strategy.splitFilters(filterCaps, filter);

Examples of org.opengis.filter.capability.FilterCapabilities

            GMLObjectTypeType type = factory.createGMLObjectTypeType();
            type.setName(GML._Feature);
            supportsGmlObj.getGMLObjectType().add(type);
            caps.setSupportsGMLObjectTypeList(supportsGmlObj);
        }
        FilterCapabilities filterCaps = createTestFilterCapabilities();
        caps.setFilterCapabilities(filterCaps);

        final Document dom = encode(caps, WFS.WFS_Capabilities);
        final Element root = dom.getDocumentElement();

Examples of org.opengis.filter.capability.FilterCapabilities

            boolean eid = true;
            boolean fid = true;
            idCaps = filterFac.idCapabilities(eid, fid);
        }

        FilterCapabilities filterCaps;
        filterCaps = filterFac.capabilities(version, scalarCaps, spatialCaps, idCaps);
        return filterCaps;
    }

Examples of org.opengis.filter.capability.FilterCapabilities

            (IdCapabilities) node.getChildValue(IdCapabilities.class));
    }

    public Object getProperty(Object object, QName name)
        throws Exception {
        FilterCapabilities capabilities = (FilterCapabilities) object;

        if ("version".equals(name.getLocalPart())) {
            return capabilities.getVersion();
        }

        if ("Scalar_Capabilities".equals(name.getLocalPart())) {
            return capabilities.getScalarCapabilities();
        }

        if ("Spatial_Capabilities".equals(name.getLocalPart())) {
            return capabilities.getSpatialCapabilities();
        }

        if ("Id_Capabilities".equals(name.getLocalPart())) {
            return capabilities.getIdCapabilities();
        }

        return null;
    }

Examples of org.opengis.filter.capability.FilterCapabilities

            (SpatialCapabilities) node.getChildValue(SpatialCapabilities.class), null);
    }

    public Object getProperty(Object object, QName name)
        throws Exception {
        FilterCapabilities capabilities = (FilterCapabilities) object;

        if ("version".equals(name.getLocalPart())) {
            return capabilities.getVersion();
        }

        if ("Scalar_Capabilities".equals(name.getLocalPart())) {
            return capabilities.getScalarCapabilities();
        }

        if ("Spatial_Capabilities".equals(name.getLocalPart())) {
            return capabilities.getSpatialCapabilities();
        }

        return null;
    }

Examples of org.opengis.filter.capability.FilterCapabilities

    public void testParse() throws Exception {
        FilterMockData.capabilities(document, document);

        // print(document);
       
        FilterCapabilities caps = (FilterCapabilities) parse();

        assertEquals(FilterCapabilities.VERSION_100, caps.getVersion());
        assertNotNull(caps.getScalarCapabilities());
        assertNotNull(caps.getSpatialCapabilities());
    }

Examples of org.opengis.filter.capability.FilterCapabilities

        "</Spatial_Operators>" +
        "</Spatial_Capabilities>" +
        "</Filter_Capabilities>";
       
        Parser parser = new Parser(createConfiguration());
        FilterCapabilities caps = (FilterCapabilities) parser.parse(new ByteArrayInputStream(xml.getBytes()));
        assertEquals(FilterCapabilities.VERSION_100, caps.getVersion());
        assertNotNull(caps.getScalarCapabilities());
        assertNotNull(caps.getSpatialCapabilities());
    }

Examples of org.opengis.filter.capability.FilterCapabilities

    }

    public void testParse() throws Exception {
        FilterMockData.capabilities(document, document);

        FilterCapabilities caps = (FilterCapabilities) parse();

        assertEquals(FilterCapabilities.VERSION_110, caps.getVersion());
        assertNotNull(caps.getScalarCapabilities());
        assertNotNull(caps.getSpatialCapabilities());
        assertNotNull(caps.getIdCapabilities());
    }

Examples of org.opengis.filter.capability.FilterCapabilities

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetFilterCapabilities(FilterCapabilities newFilterCapabilities, NotificationChain msgs) {
        FilterCapabilities oldFilterCapabilities = filterCapabilities;
        filterCapabilities = newFilterCapabilities;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Csw20Package.CAPABILITIES_TYPE__FILTER_CAPABILITIES, oldFilterCapabilities, newFilterCapabilities);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
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.