[mapserver-dev] Scalebar enhancement

Lime, Steve D (MNIT) Steve.Lime at state.mn.us
Thu Mar 5 12:01:12 PST 2015


I think the change should apply across the board – embedded or not. I’ve used stand-alone scalebars for printing purposes lots of times. Question is whether this should be added to 7.0 or 7.1. If this were to change past behavior I’d favor 7.0…

Steve

From: Tamas Szekeres [mailto:szekerest at gmail.com]
Sent: Sunday, March 01, 2015 3:30 PM
To: Lime, Steve D (MNIT)
Cc: mapserver-dev at lists.osgeo.org
Subject: Re: [mapserver-dev] Scalebar enhancement

I've prepared a commit for the proposed option here:

https://github.com/mapserver/mapserver/issues/5075

Let me know it it does make sense.

I'm still thinking about the option to switch that feature off/on according to the user preference. We might also think to add this enhancement to the embedded scalebars only, though I think in most cases the scalebar is used in embedded mode.

Best regards,

Tamas



2015-02-03 16:39 GMT+01:00 Lime, Steve D (MNIT) <Steve.Lime at state.mn.us<mailto:Steve.Lime at state.mn.us>>:
Maybe these should just be default behaviors instead of something configured. They seem like nice improvements to core functionality.

Steve

From: mapserver-dev-bounces at lists.osgeo.org<mailto:mapserver-dev-bounces at lists.osgeo.org> [mailto:mapserver-dev-bounces at lists.osgeo.org<mailto:mapserver-dev-bounces at lists.osgeo.org>] On Behalf Of Tamas Szekeres
Sent: Tuesday, February 03, 2015 2:41 AM
To: mapserver-dev at lists.osgeo.org<mailto:mapserver-dev at lists.osgeo.org>
Subject: [mapserver-dev] Scalebar enhancement

Hi Devs,

We'd like to implement a small enhancement for the embedded scalebar rendering to provide a better visual appearance in all cases.

1. Provide an option to display 'friendly' numbers using multiple of  of 1,10,100,1000,  etc... or 200,2000, etc... or 5,50,500,5000, etc... This may result that the actual width of the scalebar may become slightly different as what have been specified, but that's not a problem in our use case.

2. Allow to switch the displayed unit between m and km automatically according to the displayed distance values. For example 1000m would be displayed as 1km automatically.

Does this make sense?

How do we expect to configure this behavior? Should that be a special 'scalebar style' or new scalebar parameters would be reasonable to be added? I'd however avoid to introduce a new parameter for each option.

Thanks,

Tamas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20150305/1be679cd/attachment.html>


More information about the mapserver-dev mailing list