[Mapserver-users] Annotation setExpression() problem

Charlton Purvis cpurvis at asg.sc.edu
Mon Feb 16 11:20:44 PST 2004


What was the error?

Make sure you have permission to write to the dir.  I'd specify
something like $map->save('/tmp/ms_tmp/before_change.map'); to be safe.
(Or whatever your tmp dir is.)

> -----Original Message-----
> From: Rene Teniere [mailto:TENIERER at gov.ns.ca]
> Sent: Monday, February 16, 2004 2:18 PM
> To: Charlton Purvis; mapserver-users at lists.gis.umn.edu
> Subject: RE: [Mapserver-users] Annotation setExpression() problem
> 
> Whoa, that gave me a CGI error, this is what I did:
> 
>       $tmp_mapfile = "map1.map";
>       $tmp_mapfile2 = "map2.map";
> 
>       $map->save($tmp_mapfile);
>       $class->setExpression($sExp);
>       $map->save($tmp_mapfile2);
> 
> Rene




More information about the MapServer-users mailing list