MapTools.org

[maplab-users] MapSession_RW not working

Matt Doggett mdoggett@coas.oregonstate.edu
Tue, 13 May 2003 08:31:27 -0700
If that's the case then the application (as delivered by DMSolutions) is
broke because that's exactly what I'm doing.  As best I can determine,
the problem is in the drawMainMap function and/or the
wrapper/drawmap.php script. I've even tried modifying the URL (in
drawMainMap) passed to the drawmap.php script to explicitly use the
temporary mapfile (e.g. drawmap.php?gszMapName=$tmpMAPFILE) but drawmap
will never render anything but the original .map file.

Any other suggestions?

matt

> -----Original Message-----
> From: Sacha Fournier [mailto:sfournier@dmsolutions.ca]
> Sent: Tuesday, May 13, 2003 5:13 AM
> To: mdoggett@coas.oregonstate.edu
> Cc: maplab-users@dmsolutions.ca
> Subject: Re: [maplab-users] MapSession_RW not working
> 
> Hi Matt,
> 
> Theorictly you only have to change your object to RW and set the temp
> directory of your object by calling
> $obj->setTempDir([tmp_dir_of_your_maps]);
> 
> Sacha
> 
> Matt Doggett wrote:
> > I am trying to customize my GmapFactory application to generate a
> > dynamic mapfile based on user inputs to an HTML form.
> > After extensive trial/error I finally have a feel for how the Gmap
> > application works and this led me to declaring a MapSession_RW
object
> > for $oMapSession (rather than the default MapSession_R object
> > instantiated in globprefs.php).
> > However, when I do this, the map display will not update at
all...zoom,
> > pan, selecting different layers, etc are all ignored and only the
> > original (default) map is displayed in the Rosa applet.
> > If I look in $gszTmpMapPath I find the temporary mapfiles that are
> > created, and these mapfiles do reflect the changes made by the user.
> > My question then is what additional change should I make so that the
> > rosa applet gets the correct (modified) mapfile to display?
> > This may be related to using map_session_mode=1 but I can't seem to
get
> > that to work either.
> > Anyone else been down this road???
> >
> > Md
> >
> > (RedHat8.0, Apache2.0, Mapserver 3.6.4, Php4.2.3)
> >
> > Matt Doggett
> > Spatial Climate Analysis Service
> > Oregon State University
> > 316 Strand Ag Hall
> > Corvallis, OR 97331
> > (541)737-9153
> > mdoggett@coas.oregonstate.edu
> >
> >
> >
> > _______________________________________________
> > Maplab-users mailing list
> > Maplab-users@dmsolutions.ca
> > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users
> >
> 
> --
> Sacha Fournier
> Applications Developer
> DM Solutions Group
> sfournier@dmsolutions.ca
> tel: 418.696.5056
> fax: 418.696.5056
> 
> www.dmsolutions.ca
> --
> -------------------------------------------------
> /"\  ASCII Ribbon Campaign against HTML
> \ /  email and proprietary format
>   X   attachments.
> / \
> -------------------------------------------------



This archive was generated by Pipermail.