SetSymbolSet error

Sylvain Perrinel sylvain.perrinel at AGRICULTURE.GOUV.FR
Thu Jan 5 02:24:46 PST 2006


Hello,
I have a problem with the function SetSymbolSet in phpmapscript.

Here is my code:
$szSymbolFile 
="/geobase/local/web/donnees_mapserver/symbols_and_fonts/symbols.sym";
echo $szSymbolFile;
$oMap = ms_newMapObj("");
$oMap->setSymbolSet($szSymbolFile);

and the code gives the fatal error :

Warning: [MapServer Error]: loadSymbolSet(): Parsing error near 
(#):(line 0) in /geobase/local/web/geoweb/popup_choix_symbole.php on line 44

Warning: [MapServer Error]: loadSymbolSet(): Parsing error near 
(#):(line 0) in /geobase/local/web/geoweb/popup_choix_symbole.php on line 44

Warning: [MapServer Error]: loadSymbolSet(): Parsing error near 
(#):(line 0) in /geobase/local/web/geoweb/popup_choix_symbole.php on line 44

Warning: [MapServer Error]: loadSymbolSet(): Parsing error near 
(#):(line 0) in /geobase/local/web/geoweb/popup_choix_symbole.php on line 44

Fatal error: Failed loading symbolset from 
/geobase/local/web/donnees_mapserver/symbols_and_fonts/symbols.sym in 
/geobase/local/web/geoweb/popup_choix_symbole.php on line 44

The code works well on one server but returns theses errors on another 
server. However, mapserver read well this file in mapfiles and displays 
symbols of the symbol file.

If someone can help me... Thanks.

-- 
Sylvain Perrinel
Ministère de l'Agriculture et de la Pêche
SG/SM/SDSI/CERIT
Département d'Information Géographique (DIG)
BP 12668
31326 Castanet Tolosan
France
Téléphone: 05.61.28.92.76
Web : http://10.202.61.44/sigsiti/



More information about the MapServer-users mailing list