[mapserver-users] Re: Generating a world file from extent and scale

Pavel Iacovlev iacovlev.pavel at gmail.com
Tue Oct 6 02:43:55 PDT 2009


Ok I have some progress on the problem I found a
post(http://openlayers.org/pipermail/users/2007-September/003023.html)
by Arnd Wippermann and he wrote the scales factors for various units:

Factors:
inches - 1
ft - 12
mi - 63360
m - 39.3701
km - 39370.1
dd - 4374754
in - 1

So now I can compute the width and height of the image pass to
mapserver and generate the image I want at a given scale. Is this
approach correct from geodetic point of view ?

On Mon, Oct 5, 2009 at 11:37 PM, Pavel Iacovlev
<iacovlev.pavel at gmail.com> wrote:
> Hello, sorry for not a very mapserver related question.
>
> I have a script that does the following:
> User inputs the extent and the scale, based on this data I compute the
> image width and height and pass this information to mapserver to
> generate the image. It all works fine with flat projections.
> The problem is I don't know how to generate the the images width and
> height using extent and scale then I have data in WGS84.
>
> My code atm is: http://pastie.org/642735
>
> Could anyone point me in the right direction ?
>
> --
> http://iap.md, The future is open
>



-- 
http://iap.md, The future is open



More information about the MapServer-users mailing list