Olá Luís,<br><br>A única coisa que diz é o seguinte:<br><br>[Fri May 13 15:41:40 2011].243884 CGI Request 1 on process 7701<br>[Fri May 13 15:41:40 2011].244208 msDrawMap(): WMS/WFS set-up and query, 0.000s<br>[Fri May 13 15:41:40 2011].246110 msDrawMap(): Layer 0 (cartograma), 0.002s<br>

[Fri May 13 15:41:40 2011].246125 msDrawMap(): Drawing Label Cache, 0.000s<br>[Fri May 13 15:41:40 2011].246130 msDrawMap() total time: 0.002s<br>[Fri May 13 15:41:40 2011].249876 msSaveImage() total time: 0.004s<br>[Fri May 13 15:41:40 2011].249960 mapserv request processing time (loadmap not incl.): 0.006s<br>

[Fri May 13 15:41:40 2011].249966 msFreeMap(): freeing map at 0x2460230.<br><br><br>Parece-me que existe algum erro na penúltima linha do log -&gt;(loadmap not incl.)<br>embora não tenha a certeza. <br><br>Experimentei o OPACITY 100 e TRANSPARENCY 0 e nada feito...<br>
<br>Mais alguma sugestão?<br>Abc,<br><br>Hugo<br><br><div class="gmail_quote">On Fri, May 13, 2011 at 5:49 PM, Luis Miguel <span dir="ltr">&lt;<a href="mailto:lmikegeo@yahoo.com">lmikegeo@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hugo,<br>
<br>Vê o k é k diz o ficheiro <span style="font-style: italic;">log</span> que definiste na variável MS_ERRORFILE. Dá algum erro?<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br>
Luis Tavares<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Hugo &lt;<a href="mailto:hfpmartins@gmail.com" target="_blank">hfpmartins@gmail.com</a>&gt;<br>
<b><span style="font-weight: bold;">To:</span></b> portugal &lt;<a href="mailto:Portugal@lists.osgeo.org" target="_blank">Portugal@lists.osgeo.org</a>&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Fri, May 13, 2011 3:46:41 PM<br>
<b><span style="font-weight: bold;">Subject:</span></b> [Portugal] HELP MAPSERVER<br></font><div><div></div><div class="h5"><br>
Olá a todos,<br><br>Estou com alguns problemas com o mapserver e preciso da ajuda da malta do Mapserver!<br><span>Neste momento estou apenas a tentar publicar um ficheiro raster (carta militar) mas não sei o que se passa que qdo chamo o url (<a href="http://localhost/cgi-bin/mapserv?map=/home/hfpm/Desktop/teste/teste2.map&amp;mode=map" target="_blank">http://localhost/cgi-bin/mapserv?map=/home/hfpm/Desktop/teste/teste2.map&amp;mode=map</a>) apenas me devolve uma imagem branca. Se publicar uma shapefile tudo funciona bem. Eis o meu mapfile com a shape e com o raster (a shape é mostrada mas não o raster):</span><br>

<br>MAP<br> CONFIG  &quot;MS_ERRORFILE&quot; &quot;/tmp/mapserver.log&quot;<br> DEBUG 5<br> NAME &quot;TESTE-MAPSERVER&quot;<br> EXTENT -86861.223691 -301747.706447 72084.420840 -228246.008574<br> UNITS METERS<br> SIZE 800 600<br>

 IMAGETYPE PNG<br> SHAPEPATH &quot;/home/hfpm/Desktop/teste/final/warp&quot;<br><br> OUTPUTFORMAT<br>  NAME &quot;aggpng24&quot;<br>  DRIVER AGG/PNG<br>  MIMETYPE &quot;image/png&quot;<br>  IMAGEMODE RGB<br>  EXTENSION &quot;png&quot;<br>

 END<br> <br> PROJECTION<br>  &quot;init=epsg:3763&quot;<br> END<br><br> LEGEND<br>  IMAGECOLOR 255 255 255<br>  STATUS ON<br>  KEYSIZE 18 12<br>  LABEL<br>   TYPE BITMAP<br>   SIZE MEDIUM<br>   COLOR 0 0 89<br>  END<br>
 END<br>
 <br> WEB<br>  IMAGEPATH &#39;/tmp/&#39;<br>  IMAGEURL &#39;/tmp/&#39;<br>  METADATA<br>   &#39;ows_title&#39;           &#39;TESTE-MAPSERVER&#39;<br><span>   &#39;ows_onlineresource&#39;  &#39;<a href="http://localhost/cgi-bin/mapserv?map=/home/hfpm/Desktop/teste/teste.map" target="_blank">http://localhost/cgi-bin/mapserv?map=/home/hfpm/Desktop/teste/teste.map</a>&#39;</span><br>

   &#39;ows_srs&#39;             &#39;EPSG:3763&#39;<br>  END<br>  TEMPLATE &#39;fooOnlyForWMSGetFeatureInfo&#39;<br> END<br><br> LAYER<br>  NAME &quot;cartograma&quot;<br>  DATA &#39;cartograma_rgb.shp&#39;<br>  STATUS DEFAULT<br>

  TYPE POLYGON<br>  CLASS<br>   NAME &quot;Concelhos&quot;<br>   STYLE<br>    COLOR 220 220 220<br>    OUTLINECOLOR 176 176 176<br>   END<br>  END <br> END<br><br> LAYER<br>    NAME &#39;CM&#39;<br>    PROCESSING &quot;DITHER=YES&quot;<br>

    PROCESSING &quot;RESAMPLE=AVERAGE&quot;<br>    TYPE RASTER<br>    DUMP FALSE<br>    TEMPLATE fooOnlyForWMSGetFeatureInfo<br>    EXTENT 32002.688 -239999.086 48005.188 -229996.586<br>    DATA &#39;/home/hfpm/Desktop/teste/final/warp/566.tif&#39;<br>

    METADATA<br>      &#39;ows_title&#39; &#39;566&#39;<br>    END<br>    STATUS ON<br>    TRANSPARENCY 100<br>    PROJECTION<br>    &quot;init=epsg:3763&quot;<br>    END<br>  END<br>END<br><br>Inicialmente pensei que fosse algum problema com o extent mas fazendo um gdalinfo ao raster eis o que obtenho ( e de onde tirei o extent para configurar no layer raster):<br>

<br>Coordinate System is:<br>PROJCS[&quot;ETRS89 / Portugal TM06&quot;,<br>    GEOGCS[&quot;ETRS89&quot;,<br>        DATUM[&quot;European_Terrestrial_Reference_System_1989&quot;,<br>            SPHEROID[&quot;GRS 1980&quot;,6378137,298.2572221010002,<br>

                AUTHORITY[&quot;EPSG&quot;,&quot;7019&quot;]],<br>            AUTHORITY[&quot;EPSG&quot;,&quot;6258&quot;]],<br>        PRIMEM[&quot;Greenwich&quot;,0],<br>        UNIT[&quot;degree&quot;,0.0174532925199433],<br>

        AUTHORITY[&quot;EPSG&quot;,&quot;4258&quot;]],<br>    PROJECTION[&quot;Transverse_Mercator&quot;],<br>    PARAMETER[&quot;latitude_of_origin&quot;,39.66825833333333],<br>    PARAMETER[&quot;central_meridian&quot;,-8.133108333333334],<br>

    PARAMETER[&quot;scale_factor&quot;,1],<br>    PARAMETER[&quot;false_easting&quot;,0],<br>    PARAMETER[&quot;false_northing&quot;,0],<br>    UNIT[&quot;metre&quot;,1,<br>        AUTHORITY[&quot;EPSG&quot;,&quot;9001&quot;]],<br>

    AUTHORITY[&quot;EPSG&quot;,&quot;3763&quot;]]<br>Origin = (32002.688000000001921,-229996.586000000010245)<br>Pixel Size = (2.500000000000004,-2.500000000000004)<br>Metadata:<br>  AREA_OR_POINT=Area<br>Image Structure Metadata:<br>

  INTERLEAVE=PIXEL<br>Corner Coordinates:<br>Upper Left  (   32002.688, -229996.586) (  7d46&#39;14.62&quot;W, 37d35&#39;44.95&quot;N)<br>Lower Left  (   32002.688, -239999.086) (  7d46&#39;16.19&quot;W, 37d30&#39;20.52&quot;N)<br>

Upper Right (   48005.188, -229996.586) (  7d35&#39;22.31&quot;W, 37d35&#39;42.45&quot;N)<br>Lower Right (   48005.188, -239999.086) (  7d35&#39;24.67&quot;W, 37d30&#39;18.02&quot;N)<br>Center      (   40003.938, -234997.836) (  7d40&#39;49.45&quot;W, 37d33&#39; 1.61&quot;N)<br>

<br>No log do mapserver aparece o seguinte:<br><br>[Fri May 13 15:41:40 2011].243884 CGI Request 1 on process 7701<br>[Fri May 13 15:41:40 2011].244208 msDrawMap(): WMS/WFS set-up and query, 0.000s<br>[Fri May 13 15:41:40 2011].246110 msDrawMap(): Layer 0 (cartograma), 0.002s<br>

[Fri May 13 15:41:40 2011].246125 msDrawMap(): Drawing Label Cache, 0.000s<br>[Fri May 13 15:41:40 2011].246130 msDrawMap() total time: 0.002s<br>[Fri May 13 15:41:40 2011].249876 msSaveImage() total time: 0.004s<br>[Fri May 13 15:41:40 2011].249960 mapserv request processing time (loadmap not incl.): 0.006s<br>

[Fri May 13 15:41:40 2011].249966 msFreeMap(): freeing map at 0x2460230.<br><br>Todos os contributos são bem-vindos :)<br><br>Abc,<br>Hugo<br><br><br clear="all"><br>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>Campus de Campolide<br>

1070-312 Lisboa<br>N 38°43&#39;56.84&quot;, W 9°9&#39;35.74&quot;<br>
</div></div></div></div>
</div></div><br>_______________________________________________<br>
Portugal mailing list<br>
<a href="mailto:Portugal@lists.osgeo.org">Portugal@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/portugal" target="_blank">http://lists.osgeo.org/mailman/listinfo/portugal</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Hugo Martins<br>LabNT - ISEGI UNL<br>Campus de Campolide<br>1070-312 Lisboa<br>N 38°43&#39;56.84&quot;, W 9°9&#39;35.74&quot;<br>