Package org.opengis.filter.capability

Examples of org.opengis.filter.capability.SpatialOperator


        return factory.spatialOperator((String) node.getAttributeValue("name"), gos);
    }

    public Object getProperty(Object object, QName name)
        throws Exception {
        SpatialOperator sop = (SpatialOperator) object;

        if ("GeometryOperands".equals(name.getLocalPart())) {
            return sop.getGeometryOperands();
        }

        if ("name".equals(name.getLocalPart())) {
            return sop.getName();
        }

        return null;
    }
View Full Code Here


    }

    public void testParse() throws Exception {
        FilterMockData.spatialOperator(document, document, "Intersect");

        SpatialOperator sop = (SpatialOperator) parse(OGC.SpatialOperatorType);

        assertEquals("Intersect", sop.getName());
    }
View Full Code Here

        FilterCapabilities filterCapabilities = caps.getContents();
        SpatialCapabilities spatialCapabilities = filterCapabilities.getSpatialCapabilities();
        if (spatialCapabilities != null) {
            SpatialOperators spatialOperators = spatialCapabilities.getSpatialOperators();
            if (spatialOperators != null) {
                SpatialOperator missnamedIntersects = spatialOperators.getOperator("Intersect");
                if (missnamedIntersects != null) {
                    LOGGER.fine("Ionic capabilities states the spatial operator Intersect. "
                            + "Assuming it is Intersects and adding Intersects as a "
                            + "supported filter type");
                    caps.addName(Intersects.NAME);
View Full Code Here

       
        return (SpatialOperatorsImpl) spatialOperands;
    }
   
    private static SpatialOperator spatialOperator(final String name) {
        return new SpatialOperator() {

            @Override
            public String getName() {
                return name;
            }
View Full Code Here

TOP

Related Classes of org.opengis.filter.capability.SpatialOperator

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.