Hi Matthias,

I think the tutorial needs to use ListFeatureCollection to avoid using
deprecated methods. So instead of creating a SimpleFeatureCollection
instance and adding features to it, we would create a simple
java.util.List<SimpleFeature>, add features to that and then do:

SimpleFeatureCollection collection = new ListFeatureCollection(TYPE, list);

Then the rest of the tutorial would be as is.

(Jody: if that sounds ok I'll update the tutorial).

Michael


On 28 September 2012 16:29, Leiche teich <[email protected]> wrote:
> Hi,
>
> how should i replace a FeatureCollection.add() in GT8, because the add()
> method is deprecated? Are there any examples? Please can anyone update the
> "Feature Tutorial" at
> http://docs.geotools.org/latest/userguide/tutorial/feature/csv2shp.html.
>
> Thanks
>
> Matthias
>
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> GeoTools-GT2-Users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to