<!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>
Ola<br>
<br>
O map file parece em ordem, infelizmente o mapserver pode ser
bastante "manhoso".....<br>
<br>
Eu comecava por testar o outputformat e trocava o existe for algo
mais simples do genero:<br>
<br>
<pre><span class="k">OUTPUTFORMAT</span>
<span class="k">NAME</span> <span class="nb">png</span>
<span class="k">DRIVER</span> <span class="s">"GD/PNG"</span>
<span class="k">MIMETYPE</span> <span class="s">"image/png"</span>
<span class="k">IMAGEMODE</span> <span class="nb">PC256</span>
<span class="k">EXTENSION</span> <span class="s">"png"</span>
<span class="k">END</span>
</pre>
E no style evitava coisas como:<br>
<br>
<br>
COLOR -1 -1 -1<br>
<br>
<pre></pre>
Jorge<br>
<br>
<br>
On 09/11/10 16:30, Marco Afonso wrote:
<blockquote
cite="mid:AANLkTikZ5vviZH=-YEGTrbfOOfe-3XnFD+ad=xS4yynS@mail.gmail.com"
type="cite">
<pre wrap="">Olá a todos,
Antes de mais gostava de dizer que foi um prazer participar no III
SASIG. Obrigado a todos!
Gostava que me ajudassem na seguinte situação. Estou a migrar
Mapserver e Postgis de Windows para Ubuntu Lucid.
Instalei todo o software GIS apartir do repositório estável: ppa:ubuntugis/ppa
Após uma serie de configurações (permissões, caminhos, etc...), tenho
ambos a funcionar individualmente.
No Mapserver uso ligações ao Postgis. Também já corrigi as
configurações no pg_hba.conf para aceitar ligações na rede.
Acontece que ao fazer o pedido no browser:
<a class="moz-txt-link-freetext" href="http://server/cgi-bin/mapserv?map=/var/www/mapfiles/lim_adm/lim_adm.map&mode=map&layers=freguesias">http://server/cgi-bin/mapserv?map=/var/www/mapfiles/lim_adm/lim_adm.map&mode=map&layers=freguesias</a>
estou a obter uma imagem em branco.
Nos logs do mapserver não obtenho nada de especial:
Tue Nov 9 17:24:05 2010].417010 CGI Request 1 on process 2197
[Tue Nov 9 17:24:05 2010].460512 msDrawMap(): Layer 1 (freguesias), 0.041s
[Tue Nov 9 17:24:05 2010].460544 msDrawMap(): Drawing Label Cache, 0.000s
[Tue Nov 9 17:24:05 2010].460551 msDrawMap() total time: 0.043s
[Tue Nov 9 17:24:05 2010].490005 msSaveImage() total time: 0.029s
[Tue Nov 9 17:24:05 2010].490058 mapserv request processing time
(loadmap not incl.): 0.073s
[Tue Nov 9 17:24:05 2010].490065 msFreeMap(): freeing map at 0x839f4c0.
Segue o mapfile em anexo.
Como posso tentar isolar o problema?
Obrigado e continuem com a mesma força :)
Marco Afonso
</pre>
<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>