[Mapserver-users] generating world files

Lowell Filak lfilak@medinaco.org
Wed, 16 Apr 2003 09:11:52 -0400


Another possibility, because you appear to already be using some flavor of Mapscript, is to take the current upper left of the mapextent and use that for the tfw origin then use the mapextent->maxx - mapextent->minx / image size, ie. (512000-511000)/600=1.666666667 and then use 1.666666667 as the x pixel size and -1.666666667 as the y pixel size to create your own tfw file:
1.666666667
0
-0
-1.666666667
511000
300000
Lowell F.

The following message was sent by Heiko.Kehlenbrink@vermes.fh-oldenburg.de on Wed, 16 Apr 2003 09:30:40 +0200 (CEST).

> hello all, 
>  
> i`m wondering if it is possiple to generate a .tfw file for a rendered map in mapserver, 
> maybe like: 
>  
>  
> $tfw = $map->getworldfile(); 
>  
> the idea is to compose new maps with the mapserver and use them in other applications. 
>  
> best regards 
>  
> heiko 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users@lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users