MapTools.org

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

Charlton Purvis cpurvis@asg.sc.edu
Mon, 14 Jul 2003 18:17:00 -0400
Congratulations.  I answered my own question.

To hand over the GET-variables in interactive mode like in HTTP-Mode
(e.g. your URI is myprog.html?hugo=bla&bla=hugo), you have to call

php myprog.html '&hugo=bla&bla=hugo'

(two & instead of ? and &!)

There just a little difference in the $ARGC, $ARGV values, but I think
this is in those cases not relevant.

-----Original Message-----
From: Charlton Purvis 
Sent: Monday, July 14, 2003 5:02 PM
To: Maplab Users
Subject: [maplab-users] how to run drawmap.php from the command line?

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
 

_______________________________________________
Maplab-users mailing list
Maplab-users@dmsolutions.ca
http://lists.dmsolutions.ca/mailman/listinfo/maplab-users


This archive was generated by Pipermail.