Yes - what you are referring to is handled by the Filter classes in GeoTools; they are based on some specification - here is a good overview of different ways to create a Filter. - http://docs.codehaus.org/display/GEOTDOC/Filter+Interfaces
One of the easier ways to start out with is using the "common query lanague" parser: - http://docs.codehaus.org/display/GEOTDOC/14+CQL The hard part is knowing what functions are available to use; so far this page offers the best list: - http://udig.refractions.net/confluence/display/EN/Common+Query+Language So it look sike the following should work: Filter filter = CQL.toFilter("geomLength( the_geom ) > 2000"); FeatureCollection features = featureSource.getFeatures( filter ); Manfred PAUL wrote: > > > is there a possibility to do something like this: > > select... where shape.length > 2000 with a geotools filter? > > Regards Manfred > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > ------------------------------------------------------------------------ > > _______________________________________________ > Geotools-gt2-users mailing list > Geotools-gt2-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > ArcSDE filter on shapeHi, ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Geotools-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users