2009/10/3 Alex wrote:
> Now for my second tool I would like to batch reproject them in a new folder.
>
> I tried the sample given here :
> http://docs.codehaus.org/display/GEOTOOLS/ShapeReprojector
> But I get a compilation error at
>
> writer.setFeatures(reprojectedSource.getFeatures().reader());
>
> It seems the reader() method does not exist anymore. Probably the
> documentation is for an older version.
> What can I do ?
>

Hi Alex,

There is a GeoTools example that could have been written just for you :-)

http://svn.osgeo.org/geotools/trunk/demo/example/src/main/java/org/geotools/demo/Shp2Shp.java

This will run with GeoTools version 2.6-M3

If you are using GeoTools version 2.5.x and want to stick with that
you can refer to this earlier version of the same class:

http://svn.osgeo.org/geotools/tags/2.5.7/demo/example/src/main/java/org/geotools/demo/Shp2Shp.java

Hope this helps.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to