[mapserver-users] PHP Mapscript - Displaying only image colour except the existing layers

Pano Voudouris pvoudouris at gaiocorp.com
Tue May 5 06:03:22 PDT 2009


For the time being you should only care for the Fatal Error. The rest are
warnings which have to do with some settings in the mapfile.

 

Don't use PHP I am afraid so I don't know whether you are using it
correctly. Does the actual folder set in your IMAGEPATH
/home/kapil/FGS-MAPSERVER/tmp/ms_tmp/ exists?

And do you get the same fatal error if you use the mapserv cgi? e.g
http://localhost/cgi-bin/mapserv?map=
/home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.map&mod
e=map

 

Pano

 

From: kapil manoj [mailto:manojkapil06 at gmail.com] 
Sent: 05 May 2009 15:46
To: Pano Voudouris
Subject: Re: [mapserver-users] PHP Mapscript - Displaying only image colour
except the existing layers

 

hi pano,

i have received the following error after changing the status of the layers
to both DEFAULT or ON

Warning: [MapServer Error]: msGetLabelSize(): Requested font (arial-bold)
not found. in
/home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on
line 6

Warning: [MapServer Error]: msSearchDiskTree(): Unable to open spatial index
for
/home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/data/parl_04.qix.
In most cases you can safely ignore this message, otherwise check file names
and permissions. in
/home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on
line 6

Warning: [MapServer Error]: msSearchDiskTree(): Unable to open spatial index
for
/home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/data/parl_04.qix.
In most cases you can safely ignore this message, otherwise check file names
and permissions. in
/home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on
line 6

Fatal error: Call to a member function saveWebImage() on a non-object in
/home/kapil/FGS-MAPSERVER/www/htdocs/mapfiles/sampletest/htdocs/test.php on
line 7

 
what should i do now?

 

 

 

On Tue, May 5, 2009 at 6:00 PM, Pano Voudouris <pvoudouris at gaiocorp.com>
wrote:

Both your layer have their STATUS set to OFF. Try setting them to ON or
DEFAULT

Pano


-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of zizu
Sent: 05 May 2009 14:00
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] PHP Mapscript - Displaying only image colour
except the existing layers


Dear users,

I am using FGS-Mapserver, its a stand alone environment on fedora 9. i have
successfully play mapserver through cgi, there is absolutely no problem with
that. Now am trying to play PHP-Mapscript , example given in the tutorial.
The problem am encountering right now is when i run the php file through
browser

http://localhost:8080/mapfiles/sampletest/htdocs/test.php


Luckily the image colour of the map is displaying but the layers of the map
is not displaying...  herewith am attaching the screen shot of that page....

am also attaching both the map file and php file for your view.....

what could be a problem.....   please help me out..

tips will be appreciated....
http://n2.nabble.com/file/n2792269/Screenshot.png Screenshot.png

http://n2.nabble.com/file/n2792269/test.map test.map

http://n2.nabble.com/file/n2792269/test.php test.php

many thanks,
zizu


--
View this message in context:
http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-the
<http://n2.nabble.com/PHP-Mapscript---Displaying-only-image-colour-except-th
e%0A-existing-layers-tp2792269p2792269.html> 
-existing-layers-tp2792269p2792269.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090505/610f738a/attachment.htm>


More information about the MapServer-users mailing list