On Fri, 2006-03-31 at 11:10 -0800, Jesse Eichar wrote: > This could be a bug in the memory datastore. I wouldn't be > surprised. Memory datastore was originally designed to be only used > for testing but was too handy to stay that way... > > On closer reading of your message, I'm not sure entirely what you > mean. (sorry) You want to delete a feature and then add a feature > with the same ID? or when you add a feature it adds it as a feature > with the same ID? Yes, I want to delete a feature and then add a feature with the same ID. > Part of the API states that you cannot choose the ID of the features > you are adding. The datastore gets to determine that. That is why > the addFeatures method returns a set of Feature IDs. (All the > features that you added). In my case I am creating a layer "A" of buffered features (created from some other layer "B"s features), so therefore it would be nice to be able to choose the ID of a feature in "A" so that it can easily be understood which ID this refers to in layer "B". An example, from "feature_73" i would create a "buffered_feature_73". And if I later delete "buffered_feature_73" the problem right now is that I cannot add a new "buffered_feature_73" (i would have to create a "buffered_feature_73_nr2" or something).
But good to know that the API says I cannot choose the ID. Maybe the name is really unimportant, just thought the above would be nice. Jonas > On 31-Mar-06, at 9:13 AM, Jonas Johansson wrote: > > > Hi! > > > > I have discovered something fishy: > > > > It is not possible to add a Feature to a MemoryDataStore if it has the > > exact name as a Feature that once existed but was deleted (using the > > standard uDig Feature deletion operation) at some time. > > > > What works of course is always adding Features with a unique name over > > time (never using names that have been used before, even if they were > > deleted from the DataStore). It is strange to have to keep that in > > mind > > when adding new Features and deleting them from a MemoryDataStore > > though. > > > > Jonas > > > > _______________________________________________ > > User-friendly Desktop Internet GIS (uDig) > > http://udig.refractions.net > > http://lists.refractions.net/mailman/listinfo/udig-devel > > _______________________________________________ > User-friendly Desktop Internet GIS (uDig) > http://udig.refractions.net > http://lists.refractions.net/mailman/listinfo/udig-devel _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
