Hi, Here two ways where you can show scalebar. One is through mapfile and another through Coding(C#, what I am using). Thanks Venkat.
-----Original Message----- From: John Maurer [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2008 6:01 PM To: Venkat Rao Tammineni; [email protected] Subject: Re: [mapserver-users] How to set SCALEBAR size and intervals in MapServer CGI >5.0? Thanks, but I know all of that already and am already aware of MapServer's online references and am an experienced user. I also know about the CGI reference that describes how to change map file parameters via a URL in >5.0 versus <5.0: http://mapserver.gis.umn.edu/docs/reference/cgi/referencemanual-all-pages On further investigation, I've discovered that I must specify a map file parameter as so in an HTTP GET request: map_scalebar=size+width+height+intervals+value But alternatively, I must use a different method for specifying these map file parameters in an HTTP POST request: map_scalebar_size=width+height map_scalebar_intervals=value This requires me to code for two different scenarios. Is MapServer's intended behavior or is this an oversight/bug?? Thanks! Cheers, John Maurer Venkat Rao Tammineni wrote: > HI, > > > http://mapserver.gis.umn.edu/docs/reference/mapfile/scalebar/?searchterm=sca > lebar > > check above url. > Thanks, > Venkat > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of John Maurer > Sent: Wednesday, November 12, 2008 5:50 AM > To: [email protected] > Subject: [mapserver-users] How to set SCALEBAR size and intervals in > MapServer CGI >5.0? > > Dear MapServer Users, > Prior to MapServer 5.0, I could set the map scalebar size and intervals > using CGI variables named "map_scalebar_size" and > "map_scalebar_intervals". After upgrading to 5.2.0, however, these > variables are no longer recognized; I get an error saying > "loadScalebar(): Unknown identifier". Is it true that we can no longer > reference map settings in this fashion? When I change these variables to > "map_scalebar=size+value+intervals+value" it works, but this no longer > fills in my template variables [map_scalebar_size] and > [map_scalebar_intervals]. If I try using a template variable with > [map_scalebar] instead, the value (e.g. > "size+width+height+intervals+value") doesn't seem to be interpreted by > MapServer since the scalebar settings never get subsequently modified. > What am I doing wrong? Thanks for any insights! > Cheers, > > -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-586-1677 ------------------------------------ "Without geography, you're nowhere!" _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
