[Chameleon] Chameleon not returning images
Tony Baylis
tony.baylis at resexmap.com.au
Tue Mar 10 01:02:46 EST 2009
Hi Julien,
No mapserver is supporting TIFF, see below:
/usr/lib/cgi-bin/mapserv -v
MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL
INPUT=SHAPEFILE
Well...it should be supporting TIFF but when I comment out the TIFF
layer in the mapfile, all works. I'm not sure what is going on there
but when I convert the TIFF to ECW and modify the mapfile to suit all
works. Very strange but at least I have a working app now. I just need
to add a bit more functionality and do my own data.
Thanks very much for your help. I will more than likely be back.
Cheers,
Tony
Tony Baylis
Spatial Information Specialist
Resource and Exploration Mapping
Suite 8, 290 Boundary St
Spring Hill QLD 4000
Ph 3832 1600
Fax 3832 1603
Mob 0419 759 131
Email tony.baylis at resexmap.com.au
www resexmap.com.au
Julien-Samuel Lacroix wrote:
> Hi,
>
> It seems that your mapserver installation is not supporting tiff
> raster image. If you run the mapserver cgi on the command-line it will
> tell you what is supported:
> /var/www/cgi-bin/mapserv -v
>
> What's the output?
>
> Julien
>
> Tony Baylis wrote:
>> Thanks for your reply Julien,
>>
>> I've installed Firebug and it has been a great help and definitely
>> allowed me to follow my problems. I have now solved some of the
>> issues, I have my buttons displaying now but still not the map.
>> I'll continue to work at it but from looking through the Firebug
>> details it seems my problems revolve around the drawmap.php. My
>> response from the GET drawmap.php?map_session_mode=1 as found in
>> Firebug are below, ie the errors with the URL for the GET below
>>
>> <br />
>> <b>Warning</b>: [MapServer Error]: msDrawMap(): Failed to draw layer
>> named 'bathymetry'.
>> in <b>/opt/chameleon/htdocs/common/wrapper/drawmap.php</b> on line
>> <b>534</b><br />
>> <br />
>> <b>Warning</b>: [MapServer Error]: msDrawRaster(): Unrecognized or
>> unsupported image format
>> in <b>/opt/chameleon/htdocs/common/wrapper/drawmap.php</b> on line
>> <b>534</b><br />
>> <br />
>> <b>Warning</b>: [MapServer Error]: drawEPP():
>> /var/www/chameleondemo/map/../data/bath_mapserver.tif
>> is not an EPPL file.
>> in <b>/opt/chameleon/htdocs/common/wrapper/drawmap.php</b> on line
>> <b>534</b><br />
>> <br />
>> <b>Warning</b>: Cannot modify header information - headers already
>> sent by (output started at /opt/chameleon
>> /htdocs/common/wrapper/drawmap.php:534) in
>> <b>/opt/chameleon/htdocs/common/wrapper/drawmap.php</b> on
>> line <b>1501</b><br />
>>
>>
>> http://mapserver1/chameleon/common//wrapper/drawmap.php?map_session_mode=1&run_query=0&sid=49b4f0696604b&streaming=true&dummy=0.81784400+1236594793&UniqId=1236594811048632
>>
>>
>> Any assistance would be grateful and I'd owe you a beer!
>>
>> Tony
>>
>> Tony Baylis
>> Spatial Information Specialist
>> Resource and Exploration Mapping
>> Suite 8, 290 Boundary St
>> Spring Hill QLD 4000
>> Ph 3832 1600
>> Fax 3832 1603
>> Mob 0419 759 131
>> Email tony.baylis at resexmap.com.au
>> www resexmap.com.au
>>
>>
>>
>> Julien-Samuel Lacroix wrote:
>>> Hi,
>>>
>>> Welcome to the list!
>>>
>>> Here's some tips:
>>>
>>> Did you got MapServer working outside the Chameleon environment?
>>> If you are using Firefox, you can use Firebug [1] to get the
>>> complete URL to your map image. Simply open and click on the Inspect
>>> button and then on the map. In the HTML console you should see the
>>> URL to the map. If you copy and paste that in another window or tab,
>>> you should get a more meaningful error message.
>>>
>>> [1] http://getfirebug.com/
>>>
>>> Julien
>>>
>>> Tony Baylis wrote:
>>>> Good morning all, this is my first post and I'm very new to
>>>> Chameleon so please be gentle...
>>>>
>>>> I have worked through the configuration issues and am now trying to
>>>> get the sample map and the first widgets to display. I have got to
>>>> a stage where no basic config errors are occuring ie paths and the
>>>> EPSG are all available and my page displays BUT there are no
>>>> images. Neither the map or the first buttons (zoom in) are displayed.
>>>>
>>>> I have 'installed' chameleon in the recommended directory
>>>> /opt/chameleon and created a symlink from webroot
>>>> (/var/www/chameleon) to /opt/chameleon/htdocs/. When viewing the
>>>> source it seems the symlink is being followed with the following
>>>> being my path to IMG SRC:
>>>>
>>>> <td><a name="mapanchor" ><IMG
>>>> SRC="http://mapserver1/chameleon>//skins/default/images/a_pixel.gif"
>>>> galleryimg="no" WIDTH="400" HEIGHT="400" NAME="mapimage"
>>>> id="mapimage" border="0"></a></td>
>>>>
>>>> This image and path is used for what I assume to be the frame and
>>>> the map image. The imagepath in the map file is /var/www/ms_tmp/
>>>> and imageurl is /ms_tmp/
>>>>
>>>> Any ideas?
>>>>
>>>> Cheers
>>>>
>> _______________________________________________
>> Chameleon mailing list
>> Chameleon at lists.maptools.org
>> http://lists.maptools.org/mailman/listinfo/chameleon
>>
>
More information about the Chameleon
mailing list