<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Oi<br>
<br>
Pelo que vejo:<br>
<br>
1) Nao tens a proxy instalada para poderes contactar
<a class="moz-txt-link-freetext" href="http://localhost:8080">http://localhost:8080</a><br>
<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#HowdoIsetupaProxyHost">http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#HowdoIsetupaProxyHost</a><br>
<br>
Ate teres a proxy instalada o browser nao vai pedir nada ao
servidor...<br>
<br>
2) Tens duas vezes projection:<br>
projection: 'map.getProjectionObject()',<br>
reproject: 'True',<br>
projection: new OpenLayers.Projection('4326'),<br>
<br>
Geralmente JS usa o ultimo valor definido, portanto estas a usar
projeccao 4325<br>
<br>
3) O uso correct the OpenLayers.Projection e' com EPSG<br>
<br>
OpenLayers.Projection("EPSG:4326")<br>
<br>
All the best<br>
<br>
Jorge<br>
<br>
<br>
On 13/12/11 10:50, Pedro Costa wrote:
<blockquote cite="mid:4EE72DF7.7040903@sapo.pt" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Acho que o problema é mesmo os wms que não são reprojectados:<br>
Reparem neste exemplo que fiz:<br>
<br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://pastebin.com/6i9TEWsH">http://pastebin.com/6i9TEWsH</a><br>
<br>
<br>
<br>
Simplesmente não aparece o wms<br>
<br>
<br>
<br>
<br>
<br>
On 12-12-2011 09:38, Jorge de Jesus wrote:
<blockquote cite="mid:4EE5CBAC.9030004@pml.ac.uk" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<br>
Bons dias<br>
<br>
<br>
Bem, se tens acerteza que o wms funciona sem problemas sem o
layer proprietario, o mais provavel e' que o WMS nao supporta
EPSG:900913 ou gera um erro quando fazes o pedido.<br>
<br>
No firebug, ve os pedidos feitos pela pagina (Seccao Net) e ve o
pedido feito ao servidor e a resposta data.<br>
<br>
Por exemplo tenho um sistema que faz o seguinte pedido: <br>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://localhost/rasdaman/wms.py?LAYERS=rasdamanImage&FORMAT=image%2Fpng&TIME=2011-06-20&STRATEGIES=%5Bobject%20Object%5D&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-6300637.7833253,4684889.401321,6076045.8348875,10359574.380423&WIDTH=1265&HEIGHT=580">http://localhost/rasdaman/wms.py?LAYERS=rasdamanImage&FORMAT=image%2Fpng&TIME=2011-06-20&STRATEGIES=%5Bobject%20Object%5D&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=-6300637.7833253,4684889.401321,6076045.8348875,10359574.380423&WIDTH=1265&HEIGHT=580</a><br>
<br>
Experimenta a fazer um pedido ao teu WMS usando
SRS=EPSG%3A900913<br>
<br>
Jorge<br>
<br>
<br>
On 10/12/11 15:25, Pedro Costa wrote:
<blockquote cite="mid:4EE379CD.402@sapo.pt" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Jorge,<br>
<br>
Sim lembro-me.Esclarece-me só a seguinte dúvida, o que é que o
browser não está a conseguir ir buscar na tua opinião mais
precisamente? É que ele vai buscar o layer proprietário, os
wms é que não. Mas noutros exercicios que efectuei sem o layer
proprietario ele ia buscar tudo.<br>
<br>
<br>
Obrigado<br>
bom fim de semana<br>
<br>
<br>
<br>
<br>
<br>
<br>
On 10-12-2011 09:26, Jorge Mendes de Jesus wrote:
<blockquote
cite="mid:7546D505C3AF304280B10C3D8B8DFD390635B4E9@burgh.npm.ac.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="MS Exchange Server version
6.5.7654.12">
<title>RE: [Portugal] duvidas sobre openlayers</title>
<!-- Converted from text/plain format -->
<p><font size="2">Oi<br>
<br>
Parece tudo em ordem, mas tens um ligeiro problema :)<br>
<br>
Lembras-te da explicacao relativa a cross-domain, ou
seja podes acecer a outros URLs partir de Javascript ?!
Pois quando tens um url com uma porta diferente tens a
mesma situacao, ou seja:<br>
<br>
<a moz-do-not-send="true" href="http://localhost:8080">http://localhost:8080</a><br>
<br>
è um URL differente e tens de usar uma proxy para buscar
os resultados. Eu sempre pensei que mesmo com uma porta
difererente nao haveria problemas mas à alguns meses
algume teve o mesmo problema e foi tudo explicado no
mailing list, acho que podes procurar no google pelos
emails mais antigos.<br>
<br>
Alem disso, tens o WMS a funcionar a 100%?
Experimentaste a fazer uma pedido com EPSG:900913 ??<br>
<br>
Jorge<br>
<br>
<br>
-----Original Message-----<br>
From: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:portugal-bounces@lists.osgeo.org">portugal-bounces@lists.osgeo.org</a>
on behalf of Pedro Costa<br>
Sent: Fri 09/12/2011 13:47<br>
To: <a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:portugal@lists.osgeo.org">portugal@lists.osgeo.org</a><br>
Subject: Re: [Portugal] duvidas sobre openlayers<br>
<br>
On 09-12-2011 09:22, Jorge de Jesus wrote:<br>
> No meu caso nao defino a projeccao da camada WMS e
o OpenLayers usa a<br>
> projeccao da baseLayer da google para tudo, o meu
WMS tem suporte<br>
> nativo para 900913. Acho que devia ter tido mais
atencao ao codigo e<br>
> seria mais correcto adicionar a informacao da
projeccao<br>
><br>
> projection: map.getProjectionObject()<br>
<br>
<br>
<br>
Tentei assim:<br>
<br>
<a moz-do-not-send="true"
href="http://pastebin.com/WLkRVbxu">http://pastebin.com/WLkRVbxu</a><br>
<br>
<br>
Mas continuo sem sucesso, só é visivel o layer
proprietário. Nem sequer<br>
aparece o "+" do layer switcher, não percebo o porquê...<br>
<br>
Alguma sugestão?<br>
<br>
Obrigado<br>
<br>
<br>
PS: O firebug tb não detecta nenhum erro.<br>
_______________________________________________<br>
Portugal mailing list<br>
<a moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/portugal">http://lists.osgeo.org/mailman/listinfo/portugal</a><br>
<br>
</font> </p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Portugal mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/portugal">http://lists.osgeo.org/mailman/listinfo/portugal</a>
</pre>
</blockquote>
<br>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Portugal mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a>
<a moz-do-not-send="true" 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>
<pre class="moz-signature" cols="72">--
PGP public key: 0x595FF9D3</pre>
<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
moz-do-not-send="true" href="http://www.pml.ac.uk">www.pml.ac.uk</a>
<br>
<a moz-do-not-send="true"
href="http://www.pml.ac.uk/pdf/PMLAR2010.pdf">Click here
for PML Annual Review</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" color="green" size="1">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 <a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:forinfo@pml.ac.uk">forinfo@pml.ac.uk</a> 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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Portugal mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/portugal">http://lists.osgeo.org/mailman/listinfo/portugal</a>
</pre>
</blockquote>
<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>
<pre class="moz-signature" cols="72">--
PGP public key: 0x595FF9D3</pre>
<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 />
<a href="http://www.pml.ac.uk/pdf/PMLAR2010.pdf">Click here for PML Annual Review</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>