Re: scale bar to show distance on projected map [message #81777] |
Thu, 18 October 2012 16:05 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Edward Hyer writes:
> I'm sure this answer is in one of David's books or the Coyote website, but I can't find it.
I am projecting data onto a map, using a projection that preserves distances, and I want to
put a horizontal bar down in the corner of the map showing the map scale. This is something
simple in ENVI, but I want to do it in IDL. Has anyone tackled this?
I think I would just use something like cgArrow to draw
an arrow in the map data coordinate system.
The Catalyst Library has fancier tools, including a ruler
object that can be attached to a zoomable image, so that
as you zoom in and out of the image, the ruler grows or
shrinks to show the same length on the image. There
is also a tape measure tool that allows you to measure
the distance between two points on an image or map,
and an angle tool that allows you to measure the
angle between two locations.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
|
|
|