Examples of beyond()


Examples of org.opengis.filter.FilterFactory2.beyond()

          try {
            Expression geometry1 =  (Expression) value[0].getValue();
            Expression geometry2 = (Expression) value[1].getValue();
            Literal literal = (Literal) value[2];
            double distance = ((Number)literal.getValue()).doubleValue();           
            return factory.beyond(geometry1, geometry2, distance, null)
          }
          catch( ClassCastException wrong){
            throw new SAXException( wrong );
          } catch (IllegalFilterException illegalFilterException) {
            throw new SAXException( illegalFilterException );
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.beyond()

        Expression property = this.resultStack.popExpression();
       
        FilterFactory2  ff = (FilterFactory2) filterFactory; // TODO this cast must be removed. It depends of Geometry implementation

        return ff.beyond(property, geom, tolerance, unit);
    }

    /**
     * builds a PeriodNode (date1,date2)
     *
 
View Full Code Here

Examples of org.opengis.filter.FilterFactory2.beyond()

        init("not-active");
        FilterFactory2 ff = (FilterFactory2) dataStore.getFilterFactory();
        GeometryFactory gf = new GeometryFactory();
        PackedCoordinateSequenceFactory sf = new PackedCoordinateSequenceFactory();
        Point ls = gf.createPoint(sf.create(new double[] { 1, 1 }, 2));
        Beyond f = ff.beyond(ff.property("geo"), ff.literal(ls), 1, SI.METRE.getSymbol());
        SimpleFeatureCollection features = featureSource.getFeatures(f);
        assertEquals(1, features.size());
        SimpleFeatureIterator fsi = features.features();
        assertTrue(fsi.hasNext());
        assertEquals(fsi.next().getID(), "not-active.13");
View Full Code Here
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.