[Shake-dev] Bug in mapping
Bruce Worden
cbworden at usgs.gov
Mon Aug 7 21:50:00 GMT 2006
Hi Folks,
There is a bug in the program 'mapping' that prevents cities from
being properly plotted on the TV maps. The fix is easy:
1) Open the file 'mapping' (in the bin directory of your ShakeMap
system) with your favorite editor.
2) Search for the string "sub block_text". If you do not have this
function, stop here -- you are not affected by the bug (though you
really should upgrade your software).
3) Now search for the string "sub plot_cities." Scroll down until
you enter the body of the function. You should see two blocks of
declarations that look like this:
my $file = shift;
my $ps = shift;
my $label = shift;
my $tv = shift;
my $width = shift;
my $xy_top = shift;
my $flags;
my ($lat, $lon, $cname);
my ($dlon, $dlat, $nmsz, $angle, $fnt, $jtfy);
my ($namecmd, $loccmd, $nmobj, $locobj);
my $dot;
3) Following the last line of the second block, add the following line:
%block = ();
4) Save the file and exit the editor.
Note that since you are making this change in your online version, if
you reinstall or remake ShakeMap, you will need to make this fix again.
I will include this fix in the next release.
Bruce
More information about the Shake-dev
mailing list