[Chameleon] Map display problem

Paul Spencer pspencer at dmsolutions.ca
Sat Mar 5 09:33:39 EST 2005


Joanne,

in this kind of case, it is most likely a problem with php_mapscript or 
your map file.  You can normally test this using a simple test script 
outside of Chameleon.

<?php
dl('php_mapscript.so'); //or whatever your module is
$oMap=ms_newMapObj('<path-to-mapfile>');
$oImg=$oMap->draw();
$szURL=$oImg->saveWebImage();
echo "<img src='$szURL'">";
?>

if that works, then it could be a problem with Chameleon.  If it doesn't 
work, then you may get better error messages ... or at least something 
to take to the mapserver mailing list.

Cheers

Paul


McGraw, Joanne wrote:
> Has anyone ever heard of problems displaying maps that result in the 
> error message:
> 
>  
> 
> Premature end of script headers: php.exe, referer: 
> http://localhost/mapdata/indicators2005/index.phtml
> 
>  
> 
> being added to Apache’s error.log? I’ve searched the archives and people 
> have noted it, but no one has suggested a solution. My particular 
> problem strikes me as some kind of memory overrun somewhere…possibly in 
> MapServer itself, but I really don’t know.
> 
>  
> 
> I have a shapefile with 12,353 features. For a particular layer, I am 
> using a CLASSITEM that points to a double data type field with values 
> ranging from 0.0 to 496.95. To display it, I would like to set 6 classes 
> that use logical expressions to define what class they should be 
> displayed as. However, when I use 6 classes, php.exe chugs away for a 
> while and then coughs with the error noted above. The map display fails.
> 
>  
> 
> If, on the other hand, I use only 5 of the classes to display, it 
> works!! It does not matter which 5 of the classes I include or, 
> conversely, which 1 of the 6 classes I leave out. Any combination is 
> fine…as long as it’s only a combination of 5 classes. Adding a sixth 
> makes the display break again.
> 
>  
> 
> Does this sound like anything anyone has come across? Or, has anyone 
> come across the “Premature end of script headers…” error before and 
> found a different solution to fixing it?
> 
>  
> 
> Cheers,
> 
> Jtm
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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