Rounded scale bar to nearest 10
Hello!
Is it possible to hve the Scale Bar adjust for many map scales to ensure it is always rounded to the nearest 10? For example, print at 1:1000 the scale bar should be 50m as the distance. Print at 1:10,0000 the scale bar should be 250m as the distance.
I'm able to calculate 50m for the 1:1000 but then when printed at 1:10,000 the distance is 258 rather than 250.
Thanks!!
0
-
Sorry I should have clarified that this is using the report designer to create printed maps 0 -
You can adjust the Output Format in Report Designer.
Try something like ##,##00 -
hmmm...that still gives me a value of 256, 257, 258, etc.
Are there any calculated fields that can handle rounding, similar to the "HalfDistanceCalc" formula?
Thanks!0 -
so maybe ##,#00? But of course while this may work to get to nearest 10, but the value will then be incorrect; the map will not be printed at that rounded scale, but at the actual scale. 0 -
Steve, usually, dividing by 10 with the result going into an Integer field (no decimal), and then multiplying by 10 will get you a number rounded to the nearest 10. Might need to do in two steps to keep the value from remaining in internal memory, where it may well retain the decimal. 0 -
You can do rounding in Report Designer. It is just ActiveReports, which allows for all kinds of manipulation with the DataField (on top of the already mentioned output formatting). Mike is right though, you need to be careful with rounding since it will throw off the scale. To get around this, we use predefined scales that work out to be whole numbers (really, really close at least) once the web mercator correction is done. If the user selects 'Current Extent' or 'Current Scale' they are on their own... 0 -
Thanks for the reply everyone. I have decided that having a strange number and maintaining accuracy is more important than having a clean rounded number to the nearest 10. I will just be rounding to the nearest 1. We just have quite a few users that get a little uncomfortable when they don't see nice rounded scale numbers....I guess they are used to traditional topographic scales. Proper training and understanding should fix this issue.
Thanks again!0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
7 kommentarer