How to calculate LABELMINSCALE and LABELMAXSCALE
Abe Gillespie
agillesp at VT.EDU
Mon Dec 13 07:03:32 PST 2004
In PHP I use $map->scale.
-Abe
On Dec 13, 2004, at 9:39 AM, Holger Floerke wrote:
> Hi Steve,
>
> I do not use the templates. I produce the map images with MapScript
> because
> I have added some additional information like charts,... . Therefore I
> can't
> use the [scale] variable in my template.
>
> Any other idea? Or do I have to write a template just for this reason?
>
> HolgeR
>
>> The easiest way to know what scale you are at is to put [scale] in
>> your
>> template and it will display the current scale of the map on your HTML
>> page. Then zoom in and out and see what scale you are at when you want
>> to turn it on/off and round the values and put them in your mapfile.
>
>> -Steve W.
>
>> Holger Floerke wrote:
>>> Hi there,
>>>
>>> how can I calculate the LABELMINSCALE and LABELMAXSCALE parameters
>>> within my
>>> mapfile? Is there a formula?
>>>
>>> My shapefiles are coded with units dd and by "try and error" I guess
>>> some
>>> *big* numbers for the scale. But I would like to calculate them.
>>>
>>> TIA,
>>>
>>> HolgeR
>>>
>
More information about the MapServer-users
mailing list