[Gvsig_english] WFS property dialog bug?

Jorge Piera Llodrá jpiera at prodevelop.es
Thu May 20 09:11:00 CEST 2010


Hi Flavio.

Thats true. I've had a look to the source code and I've found the error. 
We will fix it for next release.

Regards,
Jorge


On 05/20/2010 09:00 AM, Flavio Pompermaier wrote:
> 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
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>    


-- 
Jorge Piera Llodrá
gvSIG Development Team
PRODEVELOP
Plaza Don Juan de Villarrasa, 14 - 5
46001 Valencia
Tel: +34 963510612
Fax: +34 963510908
e-mail: jpiera at prodevelop.es
http://www.prodevelop.es
http://www.gvsig.org



More information about the Gvsig_internacional mailing list