Hei Dan, you will need to work with FeatureCollections. To extend a "layer" (i.e. a FeatureCollection) by an attribute requires to create a new FeatureCollection/FeatureDataset with a different/extended FeatureSchema. Then all features need to be copied towards the new schema and the values set. We have a couple of API methods that help you here, i.e. look into the class org.openjump.core.apitools.FeatureCollectionTools.java and FeatureSchemaTools. If you would search then the openjump sources for the method copyFeatureSchema or copyFeature you should certainly find PlugIn classes/functions that modify attributes/tables.
hope that helps stefan Dan Jones schrieb: > Hello everyone! My name's Daniel Jones, and I'm totally new to > programming for OpenJUMP. I'm working on a plugin that will automate the > process of normalizing an attribute for a feature class, and haven't had > any luck finding classes or methods that will allow me to access an > attribute table, add a new column, and populate it with values derived > from another column. I read the sample code on displaying all the values > in an attribute table, but was wondering about how to then manipulate > those values and plug them back into the table. > > Any help would be appreciated! > > Dan > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel ------------------------------------------------------------------------------ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel