[Gvsig_english] WFS layer attributes bug
Flavio Pompermaier
fla83tn at gmail.com
Wed Apr 21 10:53:30 CEST 2010
Yes I'm sure. 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 will see
all known values.
I think 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);
.....
}
2010/4/21 Benjamin Ducke <benjamin.ducke at oxfordarch.co.uk>:
> Are you sure that the name has actually been modified?
>
> Sometimes, underscores ("_") are simply not visible if the
> entry fields in the Java GUI are too small. But they are there.
> I have seen this happen in a number of gvSIG dialogs.
>
> Cheers,
>
> Ben
>
> ----- Original Message -----
> From: "Flavio Pompermaier" <fla83tn at gmail.com>
> To: "Users and Developers mailing list" <gvsig_internacional at listserv.gva.es>
> Sent: Wednesday, April 21, 2010 10:18:18 AM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
> Subject: [Gvsig_english] WFS layer attributes bug
>
> Hi,
> I'm using gvSIG 1.9 buidl 1253 and I discovered that the WFS
> attributes are not well-managed by gvSIG.
> In fact, if you have an attribute containing the '_' character then it
> will be substituted by a white space character (' ').
> For example, in my WFS layer I have the 'OGLM_TYPE' attribute but in
> the column name I see 'OGLM TYPE'.
> This is not only a representation error because this is also the
> column name in the SelectableDataSource class.
> Is it a bug of gvSIG (also if actually the error is caused by the
> gdbms library...)?
>
> Best regards,
> Flavio
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>
>
>
> ------
> Files attached to this email may be in ISO 26300 format (OASIS Open Document Format). If you have difficulty opening them, please visit http://iso26300.info for more information.
>
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>
More information about the Gvsig_internacional
mailing list