Thanks a lot for the tip Andrea,

May I ask, once I've implemented the new FeatureCollection, how do I wire
it to the StreamingParser so that its parse() method would return my FC
implementation?

Thank again,
Logan


>> My follow up question is if you know a FeatureCollection implementation
>> that streams Features one at a time. Something that probably takes in a
>> StreamingParser instance and calls parser.parse() for each iterator.next()
>> call to grab the features inside the FeatureCollection object. I had a
>> quick look around the codebase but didn't see anything.
>>
>>
> I believe you'll have to implement your own, but it should not be too hard.
> On trunk (the 9.x series) AbstractFeatureCollection can be extended by
> providing little more than a FeatureIterator,
> on the stable series it's similar, but uglier, and you have to provide an
> Iterator instead
>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054  Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 1660272
> mob: +39  339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to