[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Revised: StationProfileFeatureCollection does not implement getPointFeatureCollec,tionIterator()

Hi Bob:

On 1/31/2011 10:26 AM, Bob Simons wrote:
Please ignore my previous email.

If I use
NestedPointFeatureCollection npfc =
PointFeatureCollection pfc = npfc.flatten(latLonRect, dateRange);

A call to pfc.resetIteration() throws

Exception in thread "main" java.lang.UnsupportedOperationException:
StationProfileFeatureCollection does not implement getPointFeatureCollec

Why not?

That seems to be the best (only?) way to specify a latLonRect and dateRange, and I *want* flattened data.

Im not sure why thats failing, it may be the implementation is not complete or something deeper. Can you send me a sample file?

Perhaps I'm making a mistake.

Just curious (I have to ask, because one time, for other code, the answer was 'no'), is all of the Point Feature Collection code finished and ready to be used?

Im thinking the iteration should work the first time through, ie without calling resetIteration(), just start calling pfc.hasNext() / next() ??

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.