[Chameleon] Chameleon WMS problems??

Jason Grimes jgrimes at gi.alaska.edu
Thu Mar 10 18:09:44 EST 2005


Hi,

I have set up a WMS server on my Linux box using mapserv version 4.4.0
and I renamed it ginawms.  I wrote a wms.map file following the
guidelines in the mapserver WMS server documentation.  I added the
Apache directive to point to this map file whenever ginawms is called. 
I tested it directly from a URL setting all of the necessary parameters
and I was able to do a get capabilities and get an image for all the
layers.  So far so good.

I then created a map file (alaskamap.map) for chameleon following the
mapserver WMS client documentation.  Chameleon points to the mapserv CGI
that also resides in the cgi-bin directory along with ginawms.  They are
both version 4.4.0 and have both WMS client and server support compiled
in.  I tested this map file as well from a URL and it responds as it
should except that it only sends back a 8-bit PNG, but that is another
problem. :-)

When I create a simple Chameleon template with just a MapDHTML widget in
it I get the following error in the display area:

Error rendering map image:
a fatal error occurred drawing the map

In the apache error log the following error is logged:

[client 137.229.79.215] PHP Warning:  [MapServer Error]: msDrawMap():
Failed to draw WMS layer named 'Blue_Marble'. This most likely happened
because the remote WMS server returned an invalid image, and XML
exception or another unexpected result in response to the GetMap
request. Also check and make sure that the layer's connection URL is
valid.\n in
/usr/local/chameleon/chameleon-1.99beta4/htdocs/common/wrapper/drawmap.php on line 533, referer: https://phobos.gina.alaska.edu/alaskamap/index.phtml

At first glance I thought that this must be a MapServer problem but I
can test it and MapServer appears to work.  My only other conclusion is
that this is a Chameleon error.  I'm running Chameleon version
1.99beta4.  Thank you for any help or insight.  :-)

Jason



More information about the Chameleon mailing list