From: Paolo R. <oi...@ti...> - 2005-02-16 14:43:47
|
Hi all, it seems to be no way to specify an ordering for features returned by a query to a DataStore. Maybe it's because ordering is not supported in WFS either... Is there any prevision of implementing it in GeoTools any time soon??? If not, I found these possible solutions / workarounds: .) Create an ordered view in the RDBMS and query that (CONS: don't like i= t). .) Create a WrappingDataStore capable of sorting features from a wrappee (CONS: it's a waste of resource, since the RDBMS can sort on its own). .) Patching XXXDataStore (for me it will be PostgisDataStore) to interpre= t special "ordering" Filters putting them into an "ORDER BY" clause instead= that into the "WHERE". (CONS: it'll work only with "patched" DataStores).= Does anyone has any idea on this matter??? Bye Paolo Rizzi __________________________________________________________________ Tiscali Adsl 3 Mega Flat, 3 MESI GRATIS! Con Tiscali Adsl 3 Mega Flat navighi in Rete alla supervelocita' a soli 29.95 euro al mese senza limiti di tempo. Attivati entro il 28 Febbraio 2005, 3 MESI sono GRATIS Scopri come http://abbonati.tiscali.it/adsl/sa/2flat_tc/ |