Flavio, are you solved this problem?<br><br><br><div class="gmail_quote">2010/12/16 Flavio Pompermaier <span dir="ltr"><<a href="mailto:fla83tn@gmail.com">fla83tn@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi to all,<br>
can comeone help me with this problem? I would like to refresh WFS and<br>
WMS layers after a modification to underlying data in SDE. However,<br>
the SAME code that reloads geometries in map after a pan doesn't work<br>
when I force it after the closure of a dialog.<br>
I also tried to call View invalidate, MapControl invalidate() and all<br>
possible methods to make gvSIG redraw the view content.<br>
Am I missing something?<br>
<br>
Here's the code that I use for WMS layers for example:<br>
FLayers layers = mapCtrl.getMapContext().getLayers();<br>
mapCtrl.getMapContext().beginAtomicEvent();<br>
for (FLayer fLayer : visibles) {<br>
else if (fLayer instanceof FLyrWMS) {<br>
FLyrWMS wmsLayer = (FLyrWMS) fLayer;<br>
try {<br>
wmsLayer.load();<br>
}<br>
catch (LoadLayerException e) {<br>
log.error("Error while refreshing layer " + wmsLayer.getName(), e);<br>
}<br>
String infoText = traduci("refreshing_layer") + " " +<br>
wmsLayer.getName();<br>
PluginServices.getMainFrame().getStatusBar().setInfoText(infoText);<br>
}<br>
}<br>
mapCtrl.getMapContext().endAtomicEvent();<br>
<br>
For WFS layers I even have to replace the FLayer to force their<br>
reloading...o can there be a simpler way? Using only load() o reload()<br>
does nothing...<br>
<br>
Best regards,<br>
Flavio<br>
_______________________________________________<br>
Gvsig_internacional mailing list<br>
<a href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>
<a href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional" target="_blank">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br>
</blockquote></div><br><br>