Opened 20 years ago

Last modified 20 years ago

#513 new defect

[scalebar] scalebar fails for large extents

Reported by: pspencer@… Owned by: sdlime
Priority: high Milestone:
Component: MapServer C Library Version: 4.1
Severity: normal Keywords:
Cc:

Description

for a map of canada in an LCC projection (meters), the extents are fairly large,
displaying the scalebar with units of MS_METERS (for instance) causes the
scalebar to "collapse".  Reducing from 3 to 5 intervals 'fixes' the problem, as
does switching to larger units.  It seems to be an overflow problem.

test script to reproduce problem in php_mapscript (will be) attached, although
it can be reproduced with a simple map file too :)

test script may need to be adjusted for local paths.

This exists also in version 4.0 and 3.6.

Attachments (4)

scalebar_3intervals_meters.gif (181 bytes ) - added by pspencer@… 20 years ago.
scalebar with problem
scalebar_5intervals_meters.gif (495 bytes ) - added by pspencer@… 20 years ago.
scalebar fixed by adding intervals
scalebar_3intervals_kilometers.gif (370 bytes ) - added by pspencer@… 20 years ago.
scalebar fixed by changing units
test_scalebar.php (820 bytes ) - added by pspencer@… 20 years ago.
php mapscript code to reproduce problem

Download all attachments as: .zip

Change History (5)

by pspencer@…, 20 years ago

scalebar with problem

by pspencer@…, 20 years ago

scalebar fixed by adding intervals

by pspencer@…, 20 years ago

scalebar fixed by changing units

by pspencer@…, 20 years ago

Attachment: test_scalebar.php added

php mapscript code to reproduce problem

comment:1 by pspencer@…, 20 years ago

Cc: morissette@… added
Summary: [scalebar] scalebar fails for large extents [scalebar] scalebar fails for large extents
Note: See TracTickets for help on using tickets.