[Chameleon] Chameleon WMS problems??
Paul Spencer
pspencer at dmsolutions.ca
Thu Mar 10 18:20:04 EST 2005
Jason,
a quick test to confirm this would be to write a small php mapscript
test of your mapfile:
<?php
dl('php_mapscript_44.so'); //replace with your mapscript module name
$oMap=ms_newMapObj('path/to/alaskamap.map');
$oImg=$oMap->draw();
$szURL = $oImg->saveWebImage();
echo "<img src='$szURL'>";
?>
if your map file works here then it is most likely a Chameleon problem
(although I have no idea what it could be at this point).
Also, if you can, update to Chameleon 2.0.
Cheers
Paul
Jason Grimes wrote:
> 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
>
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
>
--
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Chameleon
mailing list