[mapserver-users] problems generating image

Fco. Javier García Ricca fjricca at gmail.com
Tue Nov 30 10:31:32 EST 2010


Hello Jeff,

Yes, I use gdalinfo and gdal_translate and I have not problems.





2010/11/30 Jeff McKenna <jmckenna at gatewaygeomatics.com>

> Hello,
>
> Can GDAL read your sombras.tif file?  (what does 'gdalinfo sombras.tif'
> return?)
>
> -jeff
>
>
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> http://www.gatewaygeomatics.com/
>
>
>
> On 10-11-30 9:03 AM, Fco. Javier García Ricca wrote:
>
>> *Hello,
>>
>>
>> I'll tried to run my application with apache+php+mapserver+pmapper in
>> RHEL. I'm getting the next errors when I run my application.*
>>
>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
>> [MapServer Error]: msDrawMap(): Failed to draw layer named 'sombras'.\n
>> in
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
>> on line 326, referer:
>>
>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
>> [MapServer Error]: msDrawRaster(): Unrecognized or unsupported image
>> format\n in
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
>> on line 326, referer:
>>
>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Warning:
>> [MapServer Error]: drawEPP():
>> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is
>> not an EPPL file.\n in
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/map/map.php
>> on line 326, referer:
>>
>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>> [Tue Nov 30 11:29:01 2010] [error] [client 10.226.103.16] PHP Fatal
>> error:  Call to a member function saveImage() on a non-object in
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/incphp/common.php
>> on line 257, referer:
>>
>> http://localhost/cultura/museos/CAC/sicac/necropolis_map.phtml?config=necropolis
>>
>> *I check this:*
>>
>> *./mapserv -v
>> MapServer version 5.6.4 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV
>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER
>> SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR
>> INPUT=GDAL INPUT=SHAPEFILE
>>
>> **gdalinfo --formats
>> Supported Formats:
>>   VRT (rw+): Virtual Raster
>>   GTiff (rw+): GeoTIFF
>>   .
>>   .
>>   .
>>
>> *Everything seems ok and then I tried with:
>>
>> *./shp2img -m
>>
>> /var/www/html/cultura/museos/CAC/sicac/pmapper-4.0.0/config/necropolis/necropolis.map
>> -o /var/www/html/cultura/museos/CAC/sicac/ms_tmp/prueba.jpg
>> msDrawMap(): Image handling error. Failed to draw layer named 'sombras'.
>> <br>
>> msDrawRaster(): Image handling error. Unrecognized or unsupported image
>> format <br>
>> drawEPP(): Image handling error.
>> /var/www/html/cultura/museos/CAC/sicac/datos_necropolis/sombras.tif is
>> not an EPPL file. <br>
>> *
>> *I don't know what else can I try. Any idea to solve this problem.
>>
>> Thanks in advance
>>
>>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>



-- 
FJRicca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101130/80bd2f23/attachment.html


More information about the mapserver-users mailing list