Opened 19 years ago

Last modified 16 years ago

#1289 new enhancement

scalebar dual english/metric styling

Reported by: woodbri@… Owned by: sdlime
Priority: low Milestone: FUTURE
Component: MapServer C Library Version: unspecified
Severity: minor Keywords:
Cc: woodbri@…, jnovak@…

Description (last modified by dmorissette)

It would be nice to have a scalebar option to generate dual english/metric scalebar where the primary units would be on top and the secondary units would be on the bottom. I'll try character graphics below:

0       1       2   miles
+-----+-+---+---+-+
0     1     2     3 km

This might be limited to only one style of scalebar if that is all that works.

Attachments (2)

mapserverDualScaleBar1.png (89.4 KB ) - added by jnovak@… 18 years ago.
Dual scalebars in tick style
mapserverDualScaleBar2.png (87.5 KB ) - added by jnovak@… 18 years ago.
Dual scalebars in filled style

Download all attachments as: .zip

Change History (10)

comment:1 by sdlime, 18 years ago

Milestone: 5.0 release

comment:2 by jnovak@…, 18 years ago

Cc: jnovak@… added
Owner: changed from sdlime to jnovak@…
Add four new scalebar styles; 2 is labels above bar filled, 3 is labels above
bar with ticks, 4 is dual scalebars filled, 5 is dual scalebars with ticks.

For the dual scalebar styles, the units set for the scalbar are drawn on the top
bar, and the corresponding units in the other system are used below.  So, if
miles is specified for the scalebar, kilometers is drawn below as illustrated by
the attachments.

comment:3 by jnovak@…, 18 years ago

Status: newassigned

by jnovak@…, 18 years ago

Attachment: mapserverDualScaleBar1.png added

Dual scalebars in tick style

by jnovak@…, 18 years ago

Attachment: mapserverDualScaleBar2.png added

Dual scalebars in filled style

comment:4 by sdlime, 18 years ago

I wonder if we really need new styles or an option to move labels (and tics)
above the main bar. That way you could stack the scalebars as seperate images. 
Could use the label POSTION UC/LC.

Steve

comment:5 by dmorissette, 17 years ago

Description: modified (diff)
Milestone: 5.0 release5.2 release

comment:6 by pramsey, 16 years ago

Priority: highlow

Low priority enhancement

comment:7 by sdlime, 16 years ago

Milestone: 5.2 releaseFUTURE
Owner: changed from jnovak@… to sdlime
Status: assignednew

I'm not quite sure where John went. I'm not motivated to work on this at the moment so moving the milestone to FUTURE and I'll take ownership.

Steve

comment:8 by sdlime, 16 years ago

BTW I think John did have a patch for this at some point. Not sure where that ended up but I'll look for it.

Steve

Note: See TracTickets for help on using tickets.