Author: jdeolive
Date: 2009-11-01 23:16:28 -0500 (Sun, 01 Nov 2009)
New Revision: 34299
Modified:
trunk/modules/library/main/src/main/java/org/geotools/data/memory/MemoryDataStore.java
Log:
GEOT-2701, ensuring order of features in memory data store
Modified: trunk/modules/library/main/src/main/java/org/geotools/data/memory/MemoryDataStore.java
===================================================================
--- trunk/modules/library/main/src/main/java/org/geotools/data/memory/MemoryDataStore.java 2009-11-02 04:16:24 UTC (rev 34298)
+++ trunk/modules/library/main/src/main/java/org/geotools/data/memory/MemoryDataStore.java 2009-11-02 04:16:28 UTC (rev 34299)
@@ -84,7 +84,7 @@
* @param schema An empty feature collection of this type will be made available
*/
public MemoryDataStore(SimpleFeatureType featureType) {
- Map<String,SimpleFeature> featureMap = new HashMap<String,SimpleFeature>();
+ Map<String,SimpleFeature> featureMap = new LinkedHashMap<String,SimpleFeature>();
String typeName = featureType.getTypeName();
schema.put(typeName, featureType);
memory.put(typeName, featureMap);
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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/devconference_______________________________________________
GeoTools-commits mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geotools-commits