[mapserver-users] Re: How to set SCALEBAR size and intervals in MapServer CGI >5.0?

John Maurer maurerj at nsidc.org
Wed Nov 12 07:46:50 PST 2008


Dear MapServer Users,
Please disregard this inquiry. I since found the problem in my CGI file. 
I was using MapServer 5.2.0 in one place but accidentally still calling 
MapServer 4.99 in another, thus causing the discrepancy in how I needed 
to reference parameters in my map file. Still, though, I wonder why 
MapServer >5.0 didn't retain the ability to reference parameters in a 
hierarchy like "map_scalebar_size" since now I have to go back and 
change all of these references in my code to "map_scalebar=size+value"?? 
Unfortunately, this change makes things so they are not backwards 
compatible.
Cheers,
John

John Maurer wrote:
> 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!"





More information about the MapServer-users mailing list