Skip to main content
Question

Calculating Map Scale and Scale Bar for PDF file


adrian
Contributor
Forum|alt.badge.img+1
Hi all,

 

 

I am creating some PDF files for someone and they need to have the map scale and a scale bar on them.  Each map will be at a different scale so I could do with a way of calculating it and then create a scale bar based on this.

 

 

Any help would be much appreciated.

2 replies

david_r
Evangelist
  • April 24, 2013
Hi,

 

 

have a look at this related question. Your answer will be very similar.

 

 

David

mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • April 25, 2013
Personally, when I do this sort of thing I create a map border/frame in another package (I often use MicroStation) and read this into the workspace. Then I scale/shift the original data to fit inside the frame boundaries.

 

 

I do that by fetching the bounding box and calculating what scaling I need to apply to fit the data into my known frame size.

 

 

One of the elements of my frame template will be a piece of text that I then set using the value of the scaling I just carried out. A scale bar would be a bit more complex - I'd try include a line feature in my template and then scale it using the same scaling calculation.

 

 

Hope this is of some help

 

 

Mark

 

 

Mark Ireland

 

Product Evangelist

 

Safe Software Inc.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings