<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    <br>
    Eu quando tive de trabalhar em openlayers foi com o mapserver (isto
    ha 2 anos...) e nao tive de usar a porta 8080&nbsp; portanto nao tive
    problemas, desculpem pela informacao incorrecta :)<br>
    <br>
    Mas lembro-me que tive ainda algumas horas a bater com a cabeca nas
    paredes porque as layers WFS nao apareciam, no final era um problema
    de namespaces, que eh ligeramente diferente entre mapserver e
    geoserver<br>
    <br>
    Jorge<br>
    <br>
    <br>
    On 12/01/11 14:13, Hugo wrote:
    <blockquote
      cite="mid:AANLkTi=kE2DaUjoSV4tW=b_vfmJym_-24OyZb_U6-GkE@mail.gmail.com"
      type="cite">Ol&aacute;,<br>
      <br>
      <br>
      <div class="gmail_quote">
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;"><br>
          O OpenLayers.ProxyHost so tem de ser configurado se estas a
          aceder a um<br>
          a web service que esteja num outro server quando tens tudo em
          localhost<br>
          nao necessitas de Proxyhost<br>
        </blockquote>
        <div><br>
          Isto n&atilde;o &eacute; bem assim Jorge. Mesmo no caso de ter tudo no mesmo
          servidor os dom&iacute;nios n&atilde;o s&atilde;o os mesmos e n&atilde;o respeitam a regra
          <i>Same Origin Policy</i>. <a moz-do-not-send="true"
            href="http://localhost">http://localhost</a> n&atilde;o &eacute; o mesmo
          dom&iacute;nio que <a moz-do-not-send="true"
            href="http://localhost:8080">http://localhost:8080</a>.<br>
          <br>
          No caso do WMS de facto n&atilde;o &eacute; preciso preocuparmo-nos com o
          proxy mas no caso do WFS &eacute; estritamente necess&aacute;rio
          configurarmos o proxy. Outro problema tamb&eacute;m recorrente na
          utiliza&ccedil;&atilde;o de WFS em Openlayers &eacute; o namespace (que &eacute; definido
          ao n&iacute;vel do geoserver por exemplo). Tenta definir o teu WFS da
          seguinte forma:<br>
          <br>
          var pontos2 = new OpenLayers.Layer.Vector(<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "WFS PostgreSQL",<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; projection: mercator,<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strategies: [new
          OpenLayers.Strategy.BBOX()],<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &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; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; version: '1.1.0',<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; url: '<a moz-do-not-send="true"
            href="http://localhost:8080/geoserver/wfs?">http://localhost:8080/geoserver/wfs?</a>',<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; srsName: 'EPSG:900913',<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; featureType: 'sede_concelhos',<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; featureNS: '<a moz-do-not-send="true"
            href="http://localhost/open">http://localhost/open</a>',<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; geometryName: 'the_geom'<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; })<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
          &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; );<br>
          <br>
          <br>
        </div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <br>
          Nao &nbsp;sei que a ponto estao habituados a fazer desenvolvimento
          em<br>
          Javascript mas aconselho a usar a extensao firebug to firefox<br>
          <br>
          <a moz-do-not-send="true" href="http://getfirebug.com/"
            target="_blank">http://getfirebug.com/</a><br>
          <br>
          dar uma vista de olhos aos tutoriais e depois usar o firebug
          para ver o<br>
          que o servidor esta a mandar e tb ver se existe algo dentro do
          var wfslayer<br>
        </blockquote>
        <div><br>
          Sem d&uacute;vida que o firebug &eacute; uma ferramenta essencial e muito
          poderosa no debugging e tweaking.<br>
          <br>
          Espero ter ajudado.<br>
          Abc,<br>
          <br>
          Hugo<br>
          &nbsp;</div>
        <br>
      </div>
      <br clear="all">
      <br>
      -- <br>
      Hugo Martins<br>
      LabNT - ISEGI UNL<br>
      Campus de Campolide<br>
      1070-312 Lisboa<br>
      N 38&deg;43'56.84", W 9&deg;9'35.74"<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Portugal mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/portugal">http://lists.osgeo.org/mailman/listinfo/portugal</a>
</pre>
    </blockquote>
    <br>
  <br />
<hr />
<p><font face="Arial" size="1">
Plymouth Marine Laboratory<br />
Registered Office: <br />
Prospect Place<br />
The Hoe<br />
Plymouth  PL1 3DH
</font></p>

<p><font face="Arial" size="1">Website: <a href="http://www.pml.ac.uk">www.pml.ac.uk</a>
<br />
Registered Charity No. 1091222<br />
PML is a company limited by guarantee<br />
registered in England & Wales<br />
company number 4178503</font></p>

<p><font face="Arial" size="1" color="green">Please think before you print.</font></p>

<hr />

<p><font face="Arial" size="1">This e-mail, its content and any file attachments are confidential.</font></p>

<p><font face="Arial" size="1">If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail forinfo@pml.ac.uk and then delete the email without making any copies or using it in any other way.</font></p>

<p><font face="Arial" size="1">The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.</font></p>

<p><font face="Arial" size="1">You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses.</font></p>

<hr />
<br />
<br /></body>
</html>