Examples of DWithin


Examples of org.opengis.filter.spatial.DWithin

        SFSFilterVisitor visitor = new SFSFilterVisitor(true);
        /* Testing for point geometry*/
        GeometryFactory gf = new GeometryFactory();
        Point p = gf.createPoint(new Coordinate(100.1, 0.1));

        DWithin dws = FF.dwithin(FF.property("Point"), FF.literal(p), 10, "");
        visitor.visit(dws, null);
        visitor.finish(builder, false);
        assertEquals(URL_LAYER_ASIA + "?epsg=&lat=0.1&lon=100.1&tolerance=10.0", URLDecoder.decode(builder.toString(),"UTF-8"));
    }
View Full Code Here

Examples of org.opengis.filter.spatial.DWithin

      FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null);
     
      PropertyName p = ff.property(aname("geom"));       
      Literal collect = ff.literal(geometry);
   
      DWithin dwithinGeomCo  = ((FilterFactory2) ff).dwithin(p, collect, 5, "meter");
      Query dq = new Query(tname("road"), dwithinGeomCo);
      SimpleFeatureCollection features = dataStore.getFeatureSource(tname("road")).getFeatures(dq);
      assertEquals(0, features.size());
    }
View Full Code Here

Examples of org.opengis.filter.spatial.DWithin

                return ReprojectingFilterVisitor.super.visit((DWithin) filter, extraData);
            }

            Object cloneFilter(BinarySpatialOperator bso, Object extraData, Expression ex1,
                    Expression ex2) {
                DWithin filter = (DWithin) bso;
                return ff.dwithin(ex1, ex2, filter.getDistance(), filter.getDistanceUnits());
            }
        }.transform(filter, extraData);
    }
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.