Re: [JPP-Devel] Adding attributes and attribute values

2007-07-16 Thread Stefan Steiniger
as far as i remember it is not possible to simply extend the FeatureSchema of a FeatureDataSet and the set the attribute. You need to "copy/transform" every Feature towards the new Schema and create a new Feature and a new Feature Collection. see for instance: org.openjump.core.spatialAttributeO

[JPP-Devel] Adding attributes and attribute values

2007-07-15 Thread Anthony Jjumba
I would like to add a new attribute to a schema and then start adding values to the added attribute however I am having problems with it. I have a shapefile from which I get: FeatureCollection allFeatures; FeatureSchema lyrSchema = allFeatures.getFeatureSchema(); Iterator fIt = allFeatu