The FastBBOX evaluate method casts the given object to SimpleFeature. This prevents the use of PropertyAccessors for other types of objects. As far as I can see, the cast is actually irrelevant, since the method goes on to use generic property evaluation to access the field (For background, I have a complex, linear-reference-based data set which is not represented as SimpleFeatures, but use CQL/filters through a custom PropertyAccessor. To visualize these, I turn them into SimpleFeatures once all processing is done, and hand them off through a DataStore for a GeoServer to render. I would like to include any filters from the GeoServer query in my processing, but GeoServer hands off a filter which uses FastBBOX, making it unusable against the "raw" objects due to the hardcoded cast, despite the objects containing all relevant information available through the PropertyAccessor.) |