[Mapserver-users] generating world files

Morten Nielsen maillist at iter.dk
Wed Apr 16 09:14:57 EDT 2003


> [width of a pixel in map coordinates]
> [a rotation factor] <- you can most likely skip this
> [another rotation factor] <- same
> [height of a pixel in map coordinates]
> [x of upper left corner of the image]
> [y of upper left corner of the image]
>
> That's all. You can get parameters 5 and 6 from your current image
> extent, fill in the rotation parameters with 0.00000 most likely, and
> then calculate parameters 1 and 4 yourself. Hint: first parameter is
> (maxx - minx) / (width of map in pixels).

Remember that the height of the pixel has to be negative, since the image
coordinatespace is upside-down.

Isn't there something about the coordinate of the center of the pixel vs.
the corner of the pixel?

/Morten
http://www.iter.dk/wmscontrol




More information about the mapserver-users mailing list