Subscribe to the GIS Tools mailing list, one of several low volume mailing lists alerting you to changes to this site.

Your email address:

 More Info
Scalebar Docs
· Introduction
· Selecting a Style
· Positioning the Scalebar
· Specifying Units
· Displaying the Scale As Text
· Controlling the Number of Intervals
· Text Attributes
· Scalebars With Multiple Units
· Adding a Wrapper to Your Scalebar
· The Scalebar Gallery
Download the AML
Home Page | GIS Tools | Resume | Travel | Site Map
gis tools

Drawing Scalebars With Multiple Units

Although the Ultimate Scalebar provides no direct support for scalebars showing multiple units, they can easily be constructed. For example, you might want a scalebar showing both kilometers and nautical miles. By running the scalebar AML twice, the following multi-unit scalebar can be created:

Scalebar Showing Both Kilometers and Nautical Miles

This double scalebar was created with the following AML:

&dv .scalebar$*               /* Delete any existing scalebar variables

&s .scalebar$textsize = .15
&s .scalebar$units = km       /* Set the scalebar units to kilometers
&s .scalebar$barstyle = 3
&s .scalebar$numstyle = 1     /* Put the numbers on top of the scalebar
&r scalebar 1 1 6 .1          /* Draw the bottom scalebar at 1,1

&s .scalebar$units = M        /* Set the scalebar units to nautical miles
&s .scalebar$numstyle = 2     /* Put the numbers on the bottom

&r scalebar 1 1.2 6 .1        /* Draw the top scalebar at 1,1.2

Top of page | Next: Adding a Wrapper To Your Scalebar
Green Tea

Comments or questions to: