Georeferenced coordinates for a tiff file
N M
mapserver at HOTMAIL.COM
Fri Jul 15 01:33:33 PDT 2005
Hi Gambin,
I think it is not what I was asking for.
I know how to insert georeferenced coordinates in a tiff file that is what
you are telling me I undertand, but, my problem, is that I have defined my
EXTENT with the coordinates provided by my OVF file and I need that my
raster image (a tiff file) matches with them, so I need to calculate the
georeferenced coordinates to insert in tiff file, from the existing ones.
I have two layers one of them calls to a database to insert several points
in the map and the other is the raster image that have to be displayed under
the points.
I found the present georeferenced coordinates of tiff file trying a lot of
values until it match with the existing image but I supose that there is a
method to calculate it exactly.
I hope I explained my problem so you could understand me.
Thank you.
Nuri
>
>Maybe this can help you:
>...............................
>tfw files
>Most image files are stored in units of inches. However, there are two
>ways in which an image can know its geographic coordinates. The first
>option is to imbed special tags in a tif file with the GeoTIFF format.
>The second option is to have a world file, a 6-line ASCII file file such
>as
>
> 2.4384
> 0.0000
> 0.0000
> -2.4384
> 441794.4342
> 5094101.4520
>
>These are the 6 coefficients of a three-by-three transformation matrix.
>They indicate that a pixel is 2.4384 meters square, and that the center
>of the upper left pixel has an easting (x coordinate) of 441794.4342 and
>a northing of 5094101.4520. For fans of the matrix:
>
>x = 2.4384 * column + 0.0 * row + 441794.4342
>y = (-2.4384) * row + 0.0 * column + 5094101.4520
>
>The second and third values are zero because there is no rotation or
>skew.
>.....................
>
>regards, dejan gambin
>
>-----Original Message-----
>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
>Behalf Of SUBSCRIBE MAPSERVER-USERS Nuri
>Sent: Friday, July 15, 2005 9:31 AM
>To: MAPSERVER-USERS at LISTS.UMN.EDU
>Subject: [UMN_MAPSERVER-USERS] Georeferenced coordinates for a tiff file
>
>
>Hi,
>
>I have a map file that displays a raster image (tif) and several points
>over it from an Access database.
>
>I calculated my EXTENT coordinates from OVF file. Does someone know how
>could I calculate the exact georeferenced coordinates for the tif file
>to match with the EXTENT of my .map?
>
>Thank you.
>
>Nuri
_________________________________________________________________
Acepta el reto MSN Premium: Protección para tus hijos en internet.
Descárgalo y pruébalo 2 meses gratis.
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil
More information about the MapServer-users
mailing list