Scale units

Eijnden, Bart van den (AGI) b.vdeijnden at AGI.RWS.MINVENW.NL
Mon Nov 27 08:04:58 EST 2006


MAXSCALE 10.000 in Mapserver means it will be drawn from 0 to 10000.

For ScaleHint values, you need to make sure you define the RESOLUTION (in dpi) in Mapserver like the OGC does, you need to use:

RESOLUTION 90.71

in the MAP section.

To calculate between scale (where I mean for instance the value of 10000) and scalehint values you could use:

scale = ([resolution in dpi]*39.3701*[scalehint])/sqrt(2)

39.3701 is the number of inches per meter.

Best regards,
Bart

-----Oorspronkelijk bericht-----
Van: UMN MapServer Users List
[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]Namens Thy, Kristian
Verzonden: maandag 27 november 2006 13:41
Aan: MAPSERVER-USERS at LISTS.UMN.EDU
Onderwerp: [UMN_MAPSERVER-USERS] Scale units


Hi list,

(First off, to clarify: In my terminology 1:10.000 is a LARGER scale
than 1:20.000. This seems to be the reverse of Mapserver's definition.)

I was under the impression that the numbers in MAXSCALE and MINSCALE
were defined like this:

	MAXSCALE 10000 # Meaning layer is drawn at down to 1:10000, but
not at smaller scales

But when I define my layers like this and publish a WMS, the
GetCapabilities doc states:

	<ScaleHint min="0" max="4.98902848429637" />

And when I yank the WMS into ArcMap, it says that my layer has a minimum
scale of 1:17.639 where I wanted 1:10.000 ...

This leaves me very confused as to what the number in the MAXSCALE
actually means and how this is translated into the number in the WMS
definition. Can anybody shed light on this? If this is just a case of
RTFM a link would be appreciated ;-)

best regards,
Kristian Thy


This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
informeren. Wij adviseren u om bij twijfel over de juistheid of de 
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************



More information about the mapserver-users mailing list