On 03/03/2010, at 6:53 PM, Andrea Aime wrote: > Jody Garnett ha scritto: >> And for something you actually care about: - "Fixed" CQL bug (seems >> to be a shapefile bug - filter only works if the feature collection >> includes the attributes being tested) > > Mind, filtering in shapefiles is performed fully in memory inside > the filter objects, with the exception of spatial filters.
Right. I thought there was code that would check the filter and include any attributes required for the filter evaluation. I see a visitor implemented in GeoTools[1]: Set set = (Set) myFilter.accept( new FilterAttributeExtractor(), null ); In anycase I will use that to come up with a valid list of names on the uDig side. Jody [1] http://docs.codehaus.org/display/GEOTDOC/FilterVisitor+Examples > If you use a attribute name that is not there I think PropertyIsxxx > filters will return false so you should not get any result... > well, unless that changed recently or I'm remembering it wrong. > > Cheers > Andrea > > -- > Andrea Aime > OpenGeo - http://opengeo.org > Expert service straight from the developers. > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
