Hi all,

I'm about to try to work with complex features. I don't seem to able to fugure 
the correct way to modify complex features.

Consider to following FeatureType:

{
     "isAbstract": false,
     "name": "Company",
     "binding": "java.util.Collection",
     "isInline": false,
     "descriptors": [
         {
             "isAbstract": false,
             "name": "docs",
             "maxOccurs": 100,
             "binding": "java.lang.String",
             "type": "AttributeType",
             "isNillable": false,
             "minOccurs": 0
         }
     ],
     "type": "ComplexType",
     "isSimple": false,
     "isIdentified": true
}

The property "docs" has String values and can occur up to 100 times.

How to create 2 such properties using FeatureStore.modifyFeatures()?

Consider to following code:

     descriptor = feature.getProperty("docs").getDescriptor();
     fs.modifyFeatures(descriptor, "first", feature.getIdentifier() );
     fs.modifyFeatures(descriptor, "second", feature.getIdentifier() );

What is the result? I would assume that there is one property with value 
"second" now. But how to create a second property then? The AttributeDescriptor 
does not seem to be able to identify the element of a collection. Do I miss 
something?

Thanks for *any* help or pointer!

-Falko
-- 
Falko Bräutigam
http://polymap.org/polymap3

------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to