Hi all,

I have identified a strange behaviour when setting the value of a property:

I retrieve and set the property as follows:
feature.getProperty(propertyname).setValue(new_geometry);

feature is a SimpleFeatureImpl, with a SimpleFeatureType that has among 
others a geometry property identified by propertyname, new_geometry a 
JTS Point Geomentry.

Stepping through the debugger, everything looks OK - in the end, 
setValue() of PropertyImpl is invoked. However, after this procedure, 
the feature's property doesn't have any value assigned to it.

To make things even stranger, this doesn't happen always, it seems that 
only geometric attributes are affected.

I should add that when using FeatureImpl instead of SimpleFeatureImpl, 
setting the value also works.

Any ideas what this issue might be? N.b. that I am using GT 2.5.8.

Thanks & kind regards,

Thorsten

-- 
Thorsten Reitz

Fraunhofer-Institut für Graphische Datenverarbeitung IGD
Fraunhoferstr. 5  |  64283 Darmstadt  |  Germany
Tel +49 6151 155-416  |  Fax +49 6151 155-444
[email protected]  |  www.igd.fraunhofer.de

------------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to