[Date Prev][Date Next] [Chronological] [Thread] [Top]

[Mapserver-users] PHP can't find map file



Abram Gillespie wrote:
> I can't seem to get PHP to find the example europe.map file.  I've tried 
> relative and absolute paths, tried giving "others" rwx permissions, 
> etc.  This is the error I get:
> 
> 
> Warning: [MapServer Error]: msLoadSymbolSet(): (../symbols/symbols.sym) 
> in /Users/abe/Sites/ms_test/example2.php on line 14
> 
> Warning: Failed to open map file /Users/abe/Sites/ms_test/europe.map in 
> /Users/abe/Sites/ms_test/example2.php on line 14
> 

MapScript does find the mapfile.  The error is that it cannot find 
"../symbols/symbols.sym" which is referenced in the mapfile. When you 
copy a mapfile you need to make sure that you copy the symbolset and 
fontset with it, or update the paths accordingly inside the mapfile.

-- 
------------------------------------------------------------
  Daniel Morissette               morissette@dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------


From Thomas E Burk <teb@mallit.fr.umn.edu>  Fri Dec  5 14:39:46 2003
From: Thomas E Burk <teb@mallit.fr.umn.edu> (Thomas E Burk)
Date: Fri, 5 Dec 2003 08:39:46 -0600 (CST)
Subject: [Mapserver-users] Simple tutorial
Message-ID: <200312051439.hB5Edk6M004936@mallit.fr.umn.edu>

>
>On Fri, 2003-12-05 at 11:11, g.zanetti wrote:
>> I'm trying the demo example of mapserver.
>> 
>> In the demo.html (that is the page that should display  the map , the options
>> and the tools ) I've found some method form like this :
>> 
>> <form method=GET action="[program]">
>
>This is a mapserver template variable. Mapserv itself will set this,
>along with other template variables. Read more here:
>http://mapserver.gis.umn.edu/doc40/template-reference.html
> 
>> Now I've find a new error (with no documentation...):
>> 
>> msImageLoadGD(): General error message. Unable to load GIF reference image.
>> msSaveImage(): Unable to access file.
>> (/usr/local/http/htdocs/tmp/DEMOsb107061825410777.png)
>> msSaveImage(): Unable to access file.
>> (/usr/local/http/htdocs/tmp/DEMOleg107061825410777.png)
>> msSaveImage(): Unable to access file.
>> (/usr/local/http/htdocs/tmp/DEMO107061825410777.png) 
>
>Your reference image is a GIF and must be converted to PNG format. You
>can use the convert program: convert ref.gif ref.png
>> 
>> But I haven't the tmp directory under htdocs and also if I have created it , I
>> haven't that files!
>> 
>Mapserver needs to know the path of a directory for creating temp files.
>This path is specified in the map file. You can read more about that
>here:
>http://mapserver.gis.umn.edu/doc40/mapfile-reference.html
>See the Web objects IMAGEPATH variable.
>
>> Somebody can indicate me something like a EASY TUTORIALl for a newbie? The
>> official documentation isn't very simple....it's like a directory, not a
>> explanation.
>> 
>This is a tutorial for mapserver 3.5 but it should give you an idea of
>how the basic system works.
>http://terrasip.gis.umn.edu/projects/tutorial35/
>

The improved 4.0 tutorial is at <http://terrasip.gis.umn.edu/projects/tutorial/>. We need to get 
that link on the doc page.

Tom


>You can also see:
>http://mapserver.gis.umn.edu/doc35/getstarted-howto.html
> 
>HTH
>Eric
>
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users@lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>