MapServer / MapServer-import

3 stars 2 forks source link

saveMapContext to another directory fails #1448

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: debbie.pagurek@ec.gc.ca Date: 2005/08/31 - 15:03

The code on this documentation page works:
http://mapserver.gis.umn.edu/doc46/mapcontext-howto.html
    <?php
    dl("php_mapscript_40.dll");
    $oMap = ms_newMapObj("gmap_wms_context.map");
    $oMap->saveMapContext("gmap_wms_context_output.xml");
    ?>  
But you should be able to save the context document to another directory such as
c:\ms4w\tmp\ms_tmp\gmap_wms_context_output.xml but it fails. As it stands,the
context document gets saved to the same directory as the mapfile, but this
directory is probably not web accessible. Also - the documentation doesn't say
that you can't save to another directory.
tbonfort commented 12 years ago

Author: assefa Date: 2005/10/18 - 22:27

Could not reproduce this using 4.6 and 4.7.

What is the error that is given ?  I tried a script similar to the one 
described in bug :

<?php
dl("php_mapscript_46.dll");

$oMap = ms_newMapObj("d:/msapps/gmap-ms40/htdocs/gmap75_wms.map");
$oMap->saveMapContext("d:\\msapps\\tmp\\bug1448\\ttt45.xml");

echo "done";

?>
tbonfort commented 12 years ago

Author: assefa Date: 2005/10/21 - 17:26

closing the bug.