I'm more and more convinced this is a bug - certainly it doesn't seem to behave as described in the docs :

When I add a feature using FeatureStore.addFeatures I get incorrect FeatureIds returned.

Actually, after walking through the source it turns out that the featureIds are correct at the moment they're returned, but at that point they aren't actually stored yet. As soon as the transaction is committed the new Features seem to get their attributes copied to another Feature with an internally generated FeatureId - so the featureId returned by addFeatures is no longer valid.

Is there any way to add a feature to a DataStore and keep some kind of handle to it ?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to