Ticket #513 (new defect)

Opened 5 years ago

Last modified 5 years ago

[scalebar] scalebar fails for large extents

Reported by: pspencer@dmsolutions.ca Assigned to: 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

scalebar_3intervals_meters.gif (181 bytes) - added by pspencer@dmsolutions.ca on 12/10/03 10:35:53.
scalebar with problem
scalebar_5intervals_meters.gif (495 bytes) - added by pspencer@dmsolutions.ca on 12/10/03 10:36:29.
scalebar fixed by adding intervals
scalebar_3intervals_kilometers.gif (370 bytes) - added by pspencer@dmsolutions.ca on 12/10/03 10:37:00.
scalebar fixed by changing units
test_scalebar.php (0.8 kB) - added by pspencer@dmsolutions.ca on 12/10/03 10:37:46.
php mapscript code to reproduce problem

Change History

12/10/03 10:35:53 changed by pspencer@dmsolutions.ca

  • attachment scalebar_3intervals_meters.gif added.

scalebar with problem

12/10/03 10:36:29 changed by pspencer@dmsolutions.ca

  • attachment scalebar_5intervals_meters.gif added.

scalebar fixed by adding intervals

12/10/03 10:37:00 changed by pspencer@dmsolutions.ca

  • attachment scalebar_3intervals_kilometers.gif added.

scalebar fixed by changing units

12/10/03 10:37:46 changed by pspencer@dmsolutions.ca

  • attachment test_scalebar.php added.

php mapscript code to reproduce problem

12/10/03 10:38:16 changed by pspencer@dmsolutions.ca

  • cc set to morissette@dmsolutions.ca.
  • summary changed from [scalebar] scalebar fails for large extents to [scalebar] scalebar fails for large extents.