Ciao a tutti,<br><br>grazie nuovamente a Guido per l&#39;aiuto, purtroppo ancora niente:(...<br><br>Dunque quello che ho fatto è stato:<br><br>- installare lo script &quot;proxy.cgi&quot; nella cartella dei cgi-bin: se poi mi collego a <a href="http://localhost/cgi-bin/proxy.cgi">http://localhost/cgi-bin/proxy.cgi</a> vedo la home page di OpenLayers, anche se sformattata e non vedo alcune cose come la mappa del mondo (potrebbe essere un problema?)<br>
<br>- copiare la mia pagina all&#39;interno di geoserver (/home/damiano/sito/geoserver/webapps/geoserver/samples/rdn)<br><br>ma ancora niente, quando vado alla pagina <a href="http://localhost:8080/geoserver/samples/rdn/mappa.php">http://localhost:8080/geoserver/samples/rdn/mappa.php</a> ottengo tutti gli altri layer meno il vettoriale che mi interessa, definito così:<br>
<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var stazioni_rdn = new OpenLayers.Layer.Vector(&quot;stazioni_rdn&quot;, {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strategies: [new OpenLayers.Strategy.BBOX()],<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; protocol: new OpenLayers.Protocol.WFS({<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; url: &quot;<a href="http://localhost:8080/geoserver/wfs/">http://localhost:8080/geoserver/wfs/</a>&quot;,<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; featureType: &quot;stazioni_rdn&quot;,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; featureNS: &quot;<a href="http://www.openplans.org/topp/">http://www.openplans.org/topp/</a>&quot;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; })<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; });<br><br>Se può aiutare, per prova sono andato alla pagina <a href="http://localhost:8080/geoserver/wfs/">http://localhost:8080/geoserver/wfs/</a> e quello che ho ottenuto è stato il seguente messaggio:<br>
<br>&lt;ows:ExceptionReport version=&quot;1.0.0&quot; xsi:schemaLocation=&quot;<a href="http://www.opengis.net/ows">http://www.opengis.net/ows</a> <a href="http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd">http://localhost:8080/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd</a>&quot;&gt;<br>
&minus;<br>&lt;ows:Exception exceptionCode=&quot;MissingParameterValue&quot; locator=&quot;request&quot;&gt;<br>&minus;<br>&lt;ows:ExceptionText&gt;<br>Could not determine geoserver request from http request GET /geoserver/wfs/ HTTP/1.1<br>
Host: localhost:8080<br><br>User-Agent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13<br><br>Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>
<br>Accept-Language: it-it,it;q=0.8,en-us;q=0.5,en;q=0.3<br><br>Accept-Encoding: gzip,deflate<br><br>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7<br><br>Keep-Alive: 115<br><br>Connection: keep-alive<br><br>Cookie: JSESSIONID=um4sfkhm4swh<br>
<br><br><br>&lt;/ows:ExceptionText&gt;<br>&lt;/ows:Exception&gt;<br>&lt;/ows:ExceptionReport&gt;<br><br>Mentre collegandomi alla pagina <br><br><a href="http://localhost:8080/geoserver/wms?service=WMS&amp;version=1.1.0&amp;request=GetMap&amp;layers=cite:stazioni_rdn&amp;styles=&amp;bbox=770394.328,4234504.102,2604289.431,6300983.125&amp;width=454&amp;height=512&amp;srs=EPSG:900913&amp;format=application/openlayers">http://localhost:8080/geoserver/wms?service=WMS&amp;version=1.1.0&amp;request=GetMap&amp;layers=cite:stazioni_rdn&amp;styles=&amp;bbox=770394.328,4234504.102,2604289.431,6300983.125&amp;width=454&amp;height=512&amp;srs=EPSG:900913&amp;format=application/openlayers</a><br>
<br>posso vedere ed interrogare correttamente la mappa. <br><br>Qualcuno saprebbe mica darmi un consiglio sul da farsi?<br><br>grazie ancora,<br>Damiano<br><br><br><br><br><div class="gmail_quote">Il giorno 18 febbraio 2011 18:27, Diego Guidi <span dir="ltr">&lt;<a href="mailto:diegoguidi@gmail.com">diegoguidi@gmail.com</a>&gt;</span> ha scritto:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">&gt; Sono riuscito a visualizzare il codice sorgente degli esempi di OpenLayers,<br>

&gt; tuttavia il mio livello vettoriale non si vede ancora (sebbene nel layertree<br>
&gt; compaia, che è già qualcosa!).<br>
</div>a naso direi che è un problema di proxy:<br>
<a href="http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost" target="_blank">http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost</a><br>
<br>
le richieste WFS, come tutte le richieste dati, non possono essere<br>
crossdomain, ovvero per farla breve se chiedi i dati a geoserver<br>
all&#39;indirizzo &quot;localhost:8080&quot;, necessariamene la tua pagina deve<br>
essere pubblicata da quel dominio e porta.<br>
prova a far pubblicare la pagina da geoserver (magari piazzala dentro<br>
webapps\geoserver\sample) e vedi se funziona.<br>
in ogni caso se l&#39;errore è questo, la console di firebug ti<br>
mostrerebbe l&#39;errore...<br>
</blockquote></div><br><br clear="all"><br>-- <br><div>Damiano Natali</div><div>mail <a href="mailto:damiano.natali@gmail.com" target="_blank">damiano.natali@gmail.com</a></div><div>skype damiano.natali</div><div><br></div>
<div><br></div><br>