chiming in late after vacation, sorry for the late response Paul. Actually I don't think that's possible. SHAPE.length is sort of an special property of geometric fields in arcsde. We don't expose it as an attribute but just the geometric property SHAPE. So if you issue a filter like that you'll probably get an error saying shape.field is not a valid attribute.
Gabriel On Thursday 10 July 2008 12:31:11 pm Jody Garnett wrote: > 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 > > !DSPAM:4045,48762b4b106805210051143! ------------------------------------------------------------------------- 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-gt2-users mailing list Geotools-gt2-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users