[Gvsig_english] WFS property dialog bug?

Flavio Pompermaier fla83tn at gmail.com
Thu May 20 09:00:08 CEST 2010


Hi to all,
I'm using gvSIG 1.9 build 1253 from SVN with WFS2 extension and I
discover that if you have a WFS layer named X, when you use WFS
property dialog and you click on Accept or Apply button,
the name of the layer is  replaced by the serviceName of the layer. Example:

WFS serviceName = street_view
LayerName = X

After the use of the WFS panel (and clicking on apply or accept
button), the layer name becomes street_view.

The problem is caused by the WFSPropertiesDialogListener class that
use as the name of the new layer getName() instead of getLayerName()
(see the next two lines of code):

Line 119 String oldLayerName = oldLayer.getName();
...
Line 145 mapCtrl.getMapContext().getLayers().replaceLayer(oldLayerName,
newLayer);

Best regards,
Flavio


More information about the Gvsig_internacional mailing list