comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: scale bar to show distance on projected map
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: scale bar to show distance on projected map [message #81777] Thu, 18 October 2012 16:05
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Previous Topic: MrSID in IDL
Next Topic: Re: MrSID in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:34:25 PDT 2025

Total time taken to generate the page: 0.00538 seconds