If you add a WFS layer containing unederscored attributes to your vista, make it visible and you go to the Filer tab of the WFS attributes panel (reachable via the menu that appears right-clicking on the selected layer), you can see that underscored attributes are displayed correctly but when you click on one of them to see the known values, they aren't loaded. Oppositely, if you click on non-underscored attributes you'll see all known values. It is a problem that occurs when creating theSelectableDataSource associated to the WFS layer. In fact, when you read the field names of the layer you will see that underscored attributes contain white spaces. Use the following lines for example: SelectableDataSource sds = wfsLayer.getRecordset(); ReadableVectorial rv = wfsLayer.getSource(); // Desde el modelo se debería acceder a los campos y sus valores cargados for (int i = 0; i < sds.getFieldCount(); i++) { String fieldName = sds.getFieldName(i); ..... } The problem has also been reported twice: - http://osgeo-org.1803224.n2.nabble.com/WFS-layer-attributes-bug-td493565... - http://listserv.gva.es/pipermail/gvsig_internacional/2010-June/005484.html - http://listserv.gva.es/pipermail/gvsig_internacional/2010-June/005485.html - http://listserv.gva.es/pipermail/gvsig_internacional/2010-June/005487.html - http://listserv.gva.es/pipermail/gvsig_internacional/2010-June/005488.html
OperatingSystem | Windows |
BuildNumber | Cog A |
SubprojectResolveBuildNumber | OpenVMS |
Keywords | None |
Resolution | Fixed |
Severity | normal |
SubprojectName | gvSIG |
Component | gvSIG - WFS |
Version | gvSIG - 1.11.0 |
SubprojectVersion | gvSIG - 1.11.0 |
SubprojectResolveVersion | gvSIG - 1.12.0 |
Has patch | None |
Comments
Fixed [gvsig-desktop 37154]