[Mapserver-users] writing world files

Till Adams adams at terrestris.de
Wed Oct 8 02:25:44 EDT 2003


Dear Mukta, hello list,

here is something like a worldfile using any ascii-editor:

4.0
0
0
-4.0
2516600.41
5674001.68

The value [4.0] is the amount of pixels per unit in x/y direction (-4.0 
is downwards y-direction, therefore the negative value, 4 means that 4 
pixels are one [unit], e.g. 1 meter).

The two values between are correction parameters inx/y direction, in 
this case they are set to 0. The last two are the coordinates of the 
upper left corner.

You may write a worldfile on your own like this:

x-extent/x-pixelsize
0
0
y-extent/y-pixelsize
x of upper left corner
y of upper left corner

Save this as <YourImageFileName>.tfw in the same folder as your image is 
in.
If you have no idea about the upper left corner, set the x and y to 0 
and try something like this:

1
0
0
1
0
y-pixelsize

and save it as described above. Then set your extent in the mapfile to
MAPEXTENT 0 0 x-pixelsize y-pixelsize

so you have your own local coordinate system. This should work for the 
moment.

;-) Till

Mukta Telang schrieb:
> Hi,
> I have got an Image in postcript format which I can convert to tiff
> format.
> But what is a world file? How to write one? 
> Thanks,
> Mukta
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 


-- 

***** Besuchen Sie uns auf der acqua alta *****
*****   vom 24.-27. November in München   *****

-----

Dipl. Geogr. Till Adams
terrestris, Paulsen&Adams GbR
Siemensstr. 8 * 53121 Bonn
Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57
info at terrestris.de * www.terrestris.de





More information about the mapserver-users mailing list