Re: [Geotools-devel] Shapefile order of features

2012-08-22 Thread Matthijs Laan
On 2012-08-22 10:24, Andrea Aime wrote: On Wed, Aug 22, 2012 at 10:14 AM, Matthijs Laan mailto:[email protected]>> wrote: You can't, but you can add an attribute with the original line number from the CSV and sort on that. Actually, both of the ways I've suggested above shoul

Re: [Geotools-devel] Shapefile order of features

2012-08-22 Thread Andrea Aime
On Wed, Aug 22, 2012 at 10:14 AM, Matthijs Laan wrote: > You can't, but you can add an attribute with the original line number > from the CSV and sort on that. > Actually, both of the ways I've suggested above should preserve the insertion order (it's not true in general as you note, but it shoul

Re: [Geotools-devel] Shapefile order of features

2012-08-22 Thread Matthijs Laan
On 2012-08-21 23:00, leiche im teich wrote: > Hi, > > i use most of the code from the Csv2Shape example > http://docs.geotools.org/latest/userguide/tutorial/feature/csv2shp.html to > generate a shape file from my own special csv file. The problem is, > that i need the same order of the features

[Geotools-devel] Shapefile order of features

2012-08-21 Thread leiche im teich
Hi, i use most of the code from the Csv2Shape example http://docs.geotools.org/latest/userguide/tutorial/feature/csv2shp.html to generate a shape file from my own special csv file. The problem is, that i need the same order of the features as in the csv file. I add the features in the same order a