Hi all,
I would to change some fields value in a FeatureCollection, and in the
related shp file. I try to do it with loop on my collection:
UndoableMapCommand undoableMapCommand =
cmdFactor.createSetAttributeCommand( networkFeature, network,
PipesTrentoP.DRAIN_AREA.getAttributeName(), ((MultiPolygon)
featureAre.getDefaultGeometry())
.getArea() / M_TO_HA);
toolContext.sendSyncCommand(undoableMapCommand);
Where networkFeature is my feature,
PipesTrentoP.DRAIN_AREA.getAttributeName() the name of the field,
network the FeatureCollection, and the last parameter is the new value
to put.
At the end the FeatureCollection contains the right value but in the
table (and in the shp) they are random mixed.
I have try to take a look at the code but I can't understand the
problems, it seems to happen after I added a new feature in a next
session.
Thanks and regards.
--
Daniele Andreis
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel