Bom dia,<br><br>Estou tentando montar uma aplicação com estas duas
ferramentas mas estou encontrando alguns problemas. Como fonte de
aprendizado tenho utilizado um WorkShop da OpenGeo no site<br><br><span><a rel="nofollow" target="_blank" href="http://geo.ifip.tuwien.ac.at/imak/2009/stack_workshop/doc/wms_browser/index.html#geoext-stores">http://geo.ifip.tuwien.ac.at/imak/2009/stack_workshop/doc/wms_browser/index.html#geoext-stores</a></span><br>
<br>Inicialmente
o workshop ensina a criar um Grid e preencher com informações de um
link wms, mas não está funcionando. Não aparece mensagem de erro alguma
nem os dados que deveriam aparecer.<br><br><span>Utilizo o link para o wms: <a rel="nofollow" target="_blank" href="http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities">http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities</a></span><br>
Se utilizar esse mesmo link no navegador web consigo visualizar um xml com as informações corretamente.<br>Preciso configurar algo no GeoServer?<br><br>Segue o código utilizado:<br><br> <script type="text/javascript"><br>
Ext.onReady(function() {<br><br> var grid = new Ext.grid.GridPanel({<br> title: "Available WMS Layers",<br> renderTo: document.body,<br> width: 800,<br>
height: 150,<br> viewConfig: {forceFit: true},<br> store: new GeoExt.data.WMSCapabilitiesStore({<br> url: "<a href="http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities">http://localhost:8080/geoserver/ows?SERVICE=WMS&REQUEST=GetCapabilities</a>",<br>
autoLoad: true<br> }),<br> columns: [ <br><br> {header: "Name", dataIndex: "name", sortable: true},<br> {header: "Title", dataIndex: "title", sortable: true},<br>
{header: "Abstract", dataIndex: "abstract"}<br><br> ]<br> });<br> });<br> </script><br><div> <br>Grato pela atenção<br clear="all"></div><br>
-- <br>Arley Pinto<br><br>"Se avexe não, amanhã pode acontecer tudo, inclusive nada..."<br><br>