[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Can feature, created programmaticaly, has another ID than "newN"?
|
Hi,
So this is a tricky part of the API. When features are added to a
new datastore the ids are chosen by that datastore so that the
datastore does not have duplicate ids. There is nothing that can be
done about that. However the AddFeaturesCommand does have a
getNewFeature method that returns the new feature. Also if you use
the CopyFeatureCommand it will automatically select the copied features.
Jesse
On Apr 10, 2007, at 10:33 AM, Sergiy Doroshenko wrote:
When we add features with AddFeatureCommand() it doesn't matter what
is the featureID. The feature, added to map, will have "newN" (e.g.
"new15") ID.
But can we somehow create features with ID that we need?
For example, I want to select M newly added features with FidFilter.
What should I do - add "new0", "new1", ..., "newM" to FidFilter? It
doesn't look very good.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel