On Tuesday 23 September 2008 17:23:00 Jody Garnett wrote: > Mauricio Pazos wrote: > > Hi > > I am working to extend cql. Now it parses bbox sentences like: > > > > BBOX(the_geom, 10.0, 20.0, 30.0, 40.0) > > > > The idea is extend it to allow to write a sentence like > > > > BBOX(buffer( the_geom , 10), 10.0, 20.0, 30.0, 40.0) > > > > The FilterFactory2 has bbox(Expression, double, ....) > > That signature is enough to implement the new bbox syntax but the > > implementation of bbox requires a *PropertyName* as first argument. > > Which implementation?
org.geotools.filter.FilterFactoryImpl Class public BBOX bbox( Expression e, double minx, double miny, double maxx, double maxy, String srs) { PropertyName name = null; if ( e instanceof PropertyName ) { name = (PropertyName) e; } else { throw new IllegalArgumentException(); } ..... } > > > Is there any plan to extend the factory method bbox to accept functions > > or Geometries? > > Make a proposal - the functionality sounds fine. Ok > Jody > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Geotools-devel mailing list > Geotools-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-devel -- Mauricio Pazos Director www.axios.es ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel