Skip to main content

WFS: underscored attributes bug

Anonymous (not verified)
Published on: 21/06/2010 Discussion Archived

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



OperatingSystemWindows
BuildNumberCog A
SubprojectResolveBuildNumberOpenVMS
KeywordsNone
ResolutionFixed
Severitynormal
SubprojectNamegvSIG
ComponentgvSIG - WFS
VersiongvSIG - 1.11.0
SubprojectVersiongvSIG - 1.11.0
SubprojectResolveVersiongvSIG - 1.12.0
Has patchNone

Category

Bugs

Comments

Anonymous (not verified) Fri, 28/10/2011 - 20:10

Fixed [gvsig-desktop 37154]