There are a couple of feature collection implementations to choose from; the 
default one sorts by feature id using a tree set.

For more details the user guide discusses the options:
- 
http://docs.codehaus.org/display/GEOTDOC/08+FeatureCollection#08FeatureCollection-DifferentKindsofFeatureCollection

On 16/09/2010, at 9:12 PM, GTn00b wrote:

> 
> Hello,
> 
> I've noticed that when writing a shapefile, the original line order of the
> source (e.g. csv file) is not maintained. I believe this is due to Features
> being not specifically ordered within the FeatureCollection? I saw somewhere
> that a FeatureList may be an option, but I'm not sure if this is still
> implemented in GeoTools.
> 
> So, is it possible to maintain the line order of the source when creating a
> shapefile?
> 
> Thanks.
> -- 
> View this message in context: 
> http://osgeo-org.1803224.n2.nabble.com/Maintaining-line-order-when-creating-a-shapefile-tp5537984p5537984.html
> Sent from the geotools-gt2-users mailing list archive at Nabble.com.
> 
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Geotools-gt2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to