Hi,
i have the following code:

        for( Iterator it = lines.iterator(); it.hasNext(); ) {
                SimpleFeature sf = (SimpleFeature)it.next();
                if( sf.getAttribute("osm_id").equals(new Integer("4882717") ) )
                        System.out.println(sf.getID());
        }
        for( Iterator it = lines.iterator(); it.hasNext(); ) {
                SimpleFeature sf = (SimpleFeature)it.next();
                if( sf.getAttribute("osm_id").equals(new Integer("4882717") ) )
                        System.out.println(sf.getID());
        }

If i load the features from db into memory with 

   lines = DataUtilities.collection( featureSource.getFeatures( filter ) );

the sample-code returns identical Ids, but if i access the features directly 
from db with

   lines = featureSource.getFeatures(filter);

The returned ids differ.
So, why do i get different IDs for the same Feature? Is this itentional?

Sincerely,
Julian
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to