Re: [Geotools-devel] Sorting FeatureCollections

2007-07-17 Thread Jody Garnett
It was part of the Filter 1.1 stuff - and I agree it has not been communicated to my satisfaction either. At the time not a lot of people were on trunk and I did well to even write down the interface changes. Bleck, Jody > Jody Garnett ha scritto: >> Nope I ment FeatureList - the provided query

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-17 Thread Andrea Aime
Jody Garnett ha scritto: > Nope I ment FeatureList - the provided query was supposed to request a > sort order :-( Jody, frankly it's the first time I've heard speaking about FeatureList, and of the supposed requirement to return an instance of it when sorting stuff... Cheers Andrea --

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-17 Thread Jody Garnett
Nope I ment FeatureList - the provided query was supposed to request a sort order :-( Jody > Gertjan van Oosten ha scritto: >> As quoted from Jody Garnett <[EMAIL PROTECTED]>: >>> I have gathered up the two FeatureList examples provided and place >>> them onto the following page: >>> - http://do

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-17 Thread Andrea Aime
Gertjan van Oosten ha scritto: > As quoted from Jody Garnett <[EMAIL PROTECTED]>: >> I have gathered up the two FeatureList examples provided and place them >> onto the following page: >> - http://docs.codehaus.org/display/GEOTDOC/10+FeatureList > > You wrote: > > FeatureList featureList = (Fe

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-17 Thread Gertjan van Oosten
As quoted from Jody Garnett <[EMAIL PROTECTED]>: > I have gathered up the two FeatureList examples provided and place them > onto the following page: > - http://docs.codehaus.org/display/GEOTDOC/10+FeatureList You wrote: FeatureList featureList = (FeatureList) source.getFeatures(query); Can I

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-16 Thread Jody Garnett
I have gathered up the two FeatureList examples provided and place them onto the following page: - http://docs.codehaus.org/display/GEOTDOC/10+FeatureList > Well, actually I was using: > > final FeatureIterator iter = features.features(); > while (iter.hasNext()) { > // ... > } > iter.

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-16 Thread Justin Deoliveira
Hi Gertjan, Andrea is correct when he states that FeatureCollection is an inconsistent entity in geotools. To be quite honest with you it is a complete mess. The *only* part of the FeatureCollection api that is actually implemented relativley consistently is the iterator part of it. This is s

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-16 Thread Gertjan van Oosten
As quoted from Andrea Aime <[EMAIL PROTECTED]>: > Geoserver uses feature sorting, so it works, but only if you specify > it in the Query apparently? For those keeping notes (or trying to get their own question answered by searching through the archives): this way of sorting does not currently work

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-16 Thread Andrea Aime
Gertjan van Oosten ha scritto: > As quoted from Andrea Aime <[EMAIL PROTECTED]>: >> FeatureCollection is one of those topics where geotools developers >> are not agreeing with each other, as such is not evenly covered usage >> wise (which also mean QA wise). I personally don't like them, and >> don

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-16 Thread Gertjan van Oosten
As quoted from Andrea Aime <[EMAIL PROTECTED]>: > FeatureCollection is one of those topics where geotools developers > are not agreeing with each other, as such is not evenly covered usage > wise (which also mean QA wise). I personally don't like them, and > don't rely on them more than as a glorif

Re: [Geotools-devel] Sorting FeatureCollections

2007-07-16 Thread Andrea Aime
Gertjan van Oosten ha scritto: > Hello again, > > If I try to sort a FeatureCollection, I get a null FeatureList. > So I do: > > final FeatureCollection fc = source.getFeatures(filter); > > and this returns my feature collection (an instance of > JDBCFeatureCollection to be precise). Good. B

[Geotools-devel] Sorting FeatureCollections

2007-07-16 Thread Gertjan van Oosten
Hello again, If I try to sort a FeatureCollection, I get a null FeatureList. So I do: final FeatureCollection fc = source.getFeatures(filter); and this returns my feature collection (an instance of JDBCFeatureCollection to be precise). Good. But: final SortBy rt = ff.sort(sortField,