Re: [Geotools-gt2-users] Problem with Csv2Shape tutorial

2015-08-22 Thread Augustin Doury
Thanks it helps ! Just about System.exit(0|1) : I want my method to return the created File. When I add* return newFile;* at the end of my method : the System.exit(1) is before and so my method does not return the newFile (as you explained "because you are calling system.exit so the program termi

Re: [Geotools-gt2-users] Problem with Csv2Shape tutorial

2015-08-19 Thread Mark Prins
2015-08-18 13:19 GMT+02:00 Augustin Doury : > Hi all, > > I try to learn how to create a shapefile with Geotools following > Csv2Shape tutorial [1]. > > Most of the code (below) is exactly the same as the tutorial code. I > used the csv file as suggested in the tutorial [2]. > I just : > 1) change

[Geotools-gt2-users] Problem with Csv2Shape tutorial

2015-08-18 Thread Augustin Doury
Hi all, I try to learn how to create a shapefile with Geotools following Csv2Shape tutorial [1]. Most of the code (below) is exactly the same as the tutorial code. I used the csv file as suggested in the tutorial [2]. I just : 1) changed the line "SimpleFeatureCollection collection = FeatureCol