If I use Query.setSortBy I can see in the GeoTools logging that in the Oracle 
SQL query the order-by-clause is not generated:
/* query contains a query with setSortBy used */                        
FeatureLayer layer = new FeatureLayer(featureSource, styleGeometry);            
            layer.setQuery(query);
If I use a FeatureCollection the order-by-clause is correctly generated:
/* query contains a query with setSortBy used */
                        FeatureCollection featureCollection = 
featureSource.getFeatures(query);                        FeatureLayer layer = 
new FeatureLayer(featureCollection, styleGeometry);

Why is the sortBy not respected in FeatureLayer using setQuery?I want to avoid 
using FeatureCollection because it seems less fast.
Thanks for any help.
Ron


------------------------------------------------------------------------------
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to