if(filter == null) {
return null;
}
// do we have any spatial filter?
SpatialFilterVisitor sfv = new SpatialFilterVisitor();
filter.accept(sfv, null);
if(!sfv.hasSpatialFilter()) {
return filter;
}
// all right, we need to default the literals to the declaredCRS and then reproject to
// the native one