Package org.opengis.filter.spatial

Examples of org.opengis.filter.spatial.BBOX


        fids.add(new FeatureIdImpl("comuni11.2671"));
        Query query = new Query(typeName, ff.bbox("the_geom", 4623055.0, 815134.0, 4629904.0, 820740.0, "EPSG:3857"));
       
        SimpleFeatureSource source = ds.getFeatureSource(typeName);
        source.getFeatures(query).features();
        BBOX filter = (BBOX)wfs.getRequest().getFilter();
       
        // filter coordinates are NOT inverted
        assertEquals(4623055.0, filter.getMinX(), 0.0);
        assertEquals(815134.0, filter.getMinY(), 0.0);
        assertEquals(4629904.0 , filter.getMaxX(), 0.0);
        assertEquals(820740.0, filter.getMaxY(), 0.0);
    }
View Full Code Here


        fids.add(new FeatureIdImpl("comuni11.2671"));
        Query query = new Query(typeName, ff.bbox("the_geom", 4623055.0, 815134.0, 4629904.0, 820740.0, "EPSG:3857"));
       
        SimpleFeatureSource source = ds.getFeatureSource(typeName);
        source.getFeatures(query).features();
        BBOX filter = (BBOX)wfs.getRequest().getFilter();
       
        // filter coordinates are NOT inverted
        assertEquals(4623055.0, filter.getMinX(), 0.0);
        assertEquals(815134.0, filter.getMinY(), 0.0);
        assertEquals(4629904.0 , filter.getMaxX(), 0.0);
        assertEquals(820740.0, filter.getMaxY(), 0.0);
    }
View Full Code Here

     */
    public BBOX buildBBoxWithCRS() throws CQLException{
       
        String crs = getResultStack().popStringValue();
        assert crs != null;
        BBOX bbox = buildBBox( crs);
        return bbox;
    }
View Full Code Here

     * @return {@link BBOX}}
     * @throws CQLException
     */
    public  BBOX buildBBox() throws CQLException {
       
        BBOX bbox = buildBBox(null);
       
        return bbox;
    }
View Full Code Here

        Expression expr = getResultStack().popExpression();

        FilterFactory2 ff = (FilterFactory2)getFilterFactory();
       
        BBOX bbox = ff.bbox(
                    expr, minX, minY, maxX, maxY, crs);
        return bbox;
    }
View Full Code Here

    public org.opengis.filter.spatial.BBOX buildBBox() throws CQLException {

        SpatialOperationBuilder builder = new SpatialOperationBuilder(getResultStack(),
                getFilterFactory());

        BBOX filter = builder.buildBBox();

        return filter;
    }
View Full Code Here

            throws CQLException {

        SpatialOperationBuilder builder = new SpatialOperationBuilder(getResultStack(),
                getFilterFactory());

        BBOX filter = builder.buildBBoxWithCRS();

        return filter;
    }
View Full Code Here

        if (!isGeographySupportAvailable()) {
            return;
        }

        FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);
        BBOX bbox = ff.bbox("", -200, -200, 200, 200, "EPSG:4326");
        // should select everything without bombing out
        Query q = new Query(tname("geopoint"));
        q.setFilter(bbox);
        FeatureReader r = dataStore.getFeatureReader(q, Transaction.AUTO_COMMIT);
        assertTrue(r.hasNext());
View Full Code Here

        if (!isGeographySupportAvailable()) {
            return;
        }

        FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);
        BBOX bbox = ff.bbox("", -300, -40, -200, 40, "EPSG:4326");
        // should select everything without bombing out
        Query q = new Query(tname("geopoint"));
        q.setFilter(bbox);
        FeatureReader r = dataStore.getFeatureReader(q, Transaction.AUTO_COMMIT);
        assertFalse(r.hasNext());
View Full Code Here

        if (!isGeographySupportAvailable()) {
            return;
        }

        FilterFactory ff = CommonFactoryFinder.getFilterFactory(null);
        BBOX bbox = ff.bbox("", -140, -50, 140, 50, "EPSG:4326");
        // should select everything without bombing out
        Query q = new Query(tname("geopoint"));
        q.setFilter(bbox);
        FeatureReader r = dataStore.getFeatureReader(q, Transaction.AUTO_COMMIT);
        assertTrue(r.hasNext());
View Full Code Here

TOP

Related Classes of org.opengis.filter.spatial.BBOX

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.