MapTools.org

[maplab-users] how to run drawmap.php from the command line?

Charlton Purvis cpurvis@asg.sc.edu
Mon, 14 Jul 2003 17:02:27 -0400
Hi, folks:

I've been romping through the Maplab code and have added another
parameter to the URL to accommodate a FILTER for one of my layers.  It
works great.

I need to create a batch process to hand-off to an animation, and I'd
really like to run w/ the drawmap.php that the initial (in my case)
surge.php creates.

Essentially I'd like to create 125 URL's like

drawmap.php?gszMapName=/usr/local/maplab-2.0rc3//tutorial/storm_bat.map&
gszCurrentState=BBOX=588052,3618210,617861,3651820|SRS=init=epsg:26717|M
APSIZE=634,714|LAYERS=0,1,2,3,4,5,6,7,8|TIME=10&map_session_mode=0&run_q
uery=0&gszPHPMapScriptModName=php_mapscript.so&gszQueryCoords=0,0;0,0

where the TIME value changes.  In other words, I'd like for 125 images
to be created from the command line by iterating through the drawmap.php
code.  Is this a valid approach?  If so, how to launch it?  I run into
non-object errors when it encounters code like $oImage =
$oMapSession->oMap->draw();.

Thanks,

Charlton

 
 
 
Charlton Purvis
(803) 777-8858 : voice
(803) 777-8833 : fax
cpurvis@sc.edu
 
Advanced Solutions Group
Department of Physics and Astronomy
University of South Carolina
Columbia, SC 29208
 



This archive was generated by Pipermail.