[Portugal] duvidas sobre openlayers

Jorge de Jesus jmdj pml.ac.uk
Terça-Feira, 13 de Dezembro de 2011 - 06:11:22 EST


Oi

Pelo que vejo:

1) Nao tens a proxy instalada para poderes contactar http://localhost:8080

http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#HowdoIsetupaProxyHost

Ate teres a proxy instalada o browser nao vai pedir nada ao servidor...

2) Tens duas vezes projection:
projection: 'map.getProjectionObject()',
reproject: 'True',
projection: new OpenLayers.Projection('4326'),

Geralmente JS usa o ultimo valor definido, portanto estas a usar
projeccao 4325

3) O uso correct the OpenLayers.Projection e' com EPSG

OpenLayers.Projection("EPSG:4326")

All the best

Jorge


On 13/12/11 10:50, Pedro Costa wrote:
> Acho que o problema é mesmo os wms que não são reprojectados:
> Reparem neste exemplo que fiz:
>
>
> http://pastebin.com/6i9TEWsH
>
>
>
> Simplesmente não aparece o wms
>
>
>
>
>
> On 12-12-2011 09:38, Jorge de Jesus wrote:
>>
>> Bons dias
>>
>>
>> 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.
>>
>> No firebug, ve os pedidos feitos pela pagina (Seccao Net) e ve o
>> pedido feito ao servidor e a resposta data.
>>
>> Por exemplo tenho um sistema que faz o seguinte pedido:
>>
>> 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
>>
>> Experimenta a fazer um pedido ao teu WMS usando SRS=EPSG%3A900913
>>
>> Jorge
>>
>>
>> On 10/12/11 15:25, Pedro Costa wrote:
>>> Jorge,
>>>
>>> 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.
>>>
>>>
>>> Obrigado
>>> bom fim de semana
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 10-12-2011 09:26, Jorge Mendes de Jesus wrote:
>>>>
>>>> Oi
>>>>
>>>> Parece tudo em ordem, mas tens um ligeiro problema :)
>>>>
>>>> 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:
>>>>
>>>> http://localhost:8080
>>>>
>>>> è 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.
>>>>
>>>> Alem disso, tens o WMS a funcionar a 100%? Experimentaste a fazer
>>>> uma pedido com EPSG:900913 ??
>>>>
>>>> Jorge
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: portugal-bounces at lists.osgeo.org on behalf of Pedro Costa
>>>> Sent: Fri 09/12/2011 13:47
>>>> To: portugal at lists.osgeo.org
>>>> Subject: Re: [Portugal] duvidas sobre openlayers
>>>>
>>>> On 09-12-2011 09:22, Jorge de Jesus wrote:
>>>> > No meu caso nao defino a projeccao da camada WMS e o OpenLayers usa a
>>>> > projeccao da baseLayer da google para tudo, o meu WMS tem suporte
>>>> > nativo para 900913. Acho que devia ter tido mais atencao ao codigo e
>>>> > seria mais correcto adicionar a informacao da projeccao
>>>> >
>>>> > projection: map.getProjectionObject()
>>>>
>>>>
>>>>
>>>> Tentei assim:
>>>>
>>>> http://pastebin.com/WLkRVbxu
>>>>
>>>>
>>>> Mas continuo sem sucesso, só é visivel o layer proprietário. Nem sequer
>>>> aparece o "+" do layer switcher, não percebo o porquê...
>>>>
>>>> Alguma sugestão?
>>>>
>>>> Obrigado
>>>>
>>>>
>>>> PS: O firebug tb não detecta nenhum erro.
>>>> _______________________________________________
>>>> Portugal mailing list
>>>> Portugal at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/portugal
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Portugal mailing list
>>>> Portugal at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/portugal
>>>
>>>
>>> _______________________________________________
>>> Portugal mailing list
>>> Portugal at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/portugal
>>
>>
>> -- 
>> PGP public key: 0x595FF9D3
>>
>> ------------------------------------------------------------------------
>>
>> Plymouth Marine Laboratory
>> Registered Office:
>> Prospect Place
>> The Hoe
>> Plymouth PL1 3DH
>>
>> Website: www.pml.ac.uk <http://www.pml.ac.uk>
>> Click here for PML Annual Review
>> <http://www.pml.ac.uk/pdf/PMLAR2010.pdf>
>> Registered Charity No. 1091222
>> PML is a company limited by guarantee
>> registered in England & Wales
>> company number 4178503
>>
>> Please think before you print.
>>
>> ------------------------------------------------------------------------
>>
>> This e-mail, its content and any file attachments are confidential.
>>
>> 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 at pml.ac.uk and then delete the email without making any
>> copies or using it in any other way.
>>
>> The content of this message may contain personal views which are not
>> the views of Plymouth Marine Laboratory unless specifically stated.
>>
>> 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.
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>>
>> _______________________________________________
>> Portugal mailing list
>> Portugal at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/portugal
>
>
> _______________________________________________
> Portugal mailing list
> Portugal at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/portugal


-- 
PGP public key: 0x595FF9D3


--------------------------------------------------------------------------------
Plymouth Marine Laboratory
 
Registered Office:
Prospect Place 
The Hoe
Plymouth  PL1 3DH
 
Website: www.pml.ac.uk
Click here for PML Annual Review
Registered Charity No. 1091222
PML is a company limited by guarantee
registered in England & Wales
company number 4178503

Please think before you print

--------------------------------------------------------------------------------
This e-mail, its content and any file attachments are confidential.

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 at pml.ac.uk and then delete the email without making any copies or using it in any other way.

The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.

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.
--------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/portugal/attachments/20111213/933857c5/attachment-0001.html


Mais informações acerca da lista Portugal