MapServer / MapServer-import

3 stars 2 forks source link

PHP $map->save() function doesn't save style's offset values #1156

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: v@w.cl Date: 2005/01/04 - 23:38

I'm not sure if it's a PHP-only issue, but right now I only have a test 
environment for PHP.

Problem is, I generate a mapfile with offsets in the styles, such as the one I 
attach, and then use $map->save() to save it to disk, the values for the 
styles' offset isn't recorded in the output mapfile.

My test code is:

<?php
dl("php_mapscript441.so");
$m = ms_newMapObj("/tmp/test-offset.map");
$i = $m->draw();
$u = $i->saveWebImage();
$m->save("/tmp/offset-doesnt-reflect-here.map");
echo "<img src=$u>";
exit;
?>

I'm using MS 4.4.1, haven't tested CVS yet.
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2005/01/05 - 00:19

I'm pretty sure this is a problem with msSaveMap.  Maybe we can work out a way
to maintain msSaveMap and msCopyMap in parallel?
tbonfort commented 12 years ago

Author: v@w.cl Date: 2005/04/13 - 04:44

Hello,

Is there any hope for this fix (or any other that addresses this issue) to be 
included in the official releases of MapServer?
tbonfort commented 12 years ago

Author: dmorissette Date: 2005/04/13 - 14:35

Taking this one now. Sorry for not doing it sooner.
tbonfort commented 12 years ago

Author: dmorissette Date: 2005/04/13 - 15:29

Fixed. Added writing of OFFSET in writeStyle() in both 4.5 dev and the 4.4
branch (will be in 4.4.3)