[Mapserver-users] Problems with rotating a tiff/tfw image

Larry Hurst LHurst at digmap.com
Wed Nov 19 18:45:01 EST 2003


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C3AEF7.264AFE70
Content-Type: text/plain;
	charset="iso-8859-1"

I have a tiff image with a tfw world (State Plane) file that displays fine
in the map display (UTM).
I am testing whether I can rotate the image in the map display using world
file transformations.
Once the world file changes have been made, the image no longer shows up in
the map display.
To test, I am using ArcView to rotate the image and create an updated world
file.
Does anybody have any ideas what may be causing the image display to fail?

Thanks,
Larry Hurst
GIS Specialist
Digital Map Products
575 Anton Bl., Suite 750
Costa Mesa, CA 92626
(714) 432-7637 ext. 2360


Original world file:
0.375
0.000000000000000
0.000000000000000
-0.375
2268717.6022336157
1577437.7101164211

Rotated world file (approximately 15 degree rotation):
0.364225240241517870
0.0892467050988920430
0.0892467050988920430
-0.364225240241517920
2268270.7646746919
1576690.2144912090

Here's an excerpt from the map file showing relevant projection parameters,
etc...
NAME DEMO
STATUS ON
SIZE 600 600
#UTM16N
EXTENT 752241.546315 3771563.745476 783343.963763 3803358.020598
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255
PROJECTION
  "proj=utm"
  "zone=16"
  "north"
  "units=m"
  "ellps=GRS80"
  "datum=NAD83"
  "no_defs"
#  OR: 
#  "init=epsg:26916"
END

LAYER
  NAME "TEST001_CIB"
  DATA "TEST001.tif"
  TYPE RASTER
  STATUS ON
PROJECTION
  "proj=tmerc"
  "lat_0=30.000000000"
  "lon_0=-84.166666667"
  "k=0.999900"
  "x_0=700000.000"
  "y_0=0.000"
  "ellps=GRS80"
  "datum=NAD83"
  "units=ft"
  "no_defs"
#  OR: 
#  "init=epsg:26967"
END
END





------_=_NextPart_001_01C3AEF7.264AFE70
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Problems with rotating a tiff/tfw image</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">I have a tiff image with a tfw world (State Plane) file that displays fine in the map display (UTM).</FONT>
<BR><FONT SIZE=2 FACE="Arial">I am testing whether I can rotate the image in the map display using world file transformations.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Once the world file changes have been made, the image no longer shows up in the map display.</FONT>
<BR><FONT SIZE=2 FACE="Arial">To test, I am using ArcView to rotate the image and create an updated world file.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Does anybody have any ideas what may be causing the image display to fail?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT>
<BR><B><FONT SIZE=2 FACE="Arial">Larry Hurst</FONT></B>
<BR><B><FONT SIZE=2 FACE="Arial">GIS Specialist</FONT></B>
<BR><FONT SIZE=2 FACE="Arial">Digital Map Products</FONT>
<BR><FONT SIZE=2 FACE="Arial">575 Anton Bl., Suite 750</FONT>
<BR><FONT SIZE=2 FACE="Arial">Costa Mesa, CA 92626</FONT>
<BR><FONT SIZE=2 FACE="Arial">(714) 432-7637 ext. 2360</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Original world file:</FONT>
<BR><FONT SIZE=2 FACE="Courier New">0.375</FONT>
<BR><FONT SIZE=2 FACE="Courier New">0.000000000000000</FONT>
<BR><FONT SIZE=2 FACE="Courier New">0.000000000000000</FONT>
<BR><FONT SIZE=2 FACE="Courier New">-0.375</FONT>
<BR><FONT SIZE=2 FACE="Courier New">2268717.6022336157</FONT>
<BR><FONT SIZE=2 FACE="Courier New">1577437.7101164211</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Rotated world file (approximately 15 degree rotation):</FONT>
<BR><FONT SIZE=2 FACE="Courier New">0.364225240241517870</FONT>
<BR><FONT SIZE=2 FACE="Courier New">0.0892467050988920430</FONT>
<BR><FONT SIZE=2 FACE="Courier New">0.0892467050988920430</FONT>
<BR><FONT SIZE=2 FACE="Courier New">-0.364225240241517920</FONT>
<BR><FONT SIZE=2 FACE="Courier New">2268270.7646746919</FONT>
<BR><FONT SIZE=2 FACE="Courier New">1576690.2144912090</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Here's an excerpt from the map file showing relevant projection parameters, etc...</FONT>
<BR><FONT SIZE=2 FACE="Courier New">NAME DEMO</FONT>
<BR><FONT SIZE=2 FACE="Courier New">STATUS ON</FONT>
<BR><FONT SIZE=2 FACE="Courier New">SIZE 600 600</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#UTM16N</FONT>
<BR><FONT SIZE=2 FACE="Courier New">EXTENT 752241.546315 3771563.745476 783343.963763 3803358.020598</FONT>
<BR><FONT SIZE=2 FACE="Courier New">UNITS METERS</FONT>
<BR><FONT SIZE=2 FACE="Courier New">SHAPEPATH &quot;data&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">IMAGECOLOR 255 255 255</FONT>
<BR><FONT SIZE=2 FACE="Courier New">PROJECTION</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;proj=utm&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;zone=16&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;north&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;units=m&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;ellps=GRS80&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;datum=NAD83&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;no_defs&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp; OR: </FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp; &quot;init=epsg:26916&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">END</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">LAYER</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; NAME &quot;TEST001_CIB&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; DATA &quot;TEST001.tif&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; TYPE RASTER</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; STATUS ON</FONT>
<BR><FONT SIZE=2 FACE="Courier New">PROJECTION</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;proj=tmerc&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;lat_0=30.000000000&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;lon_0=-84.166666667&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;k=0.999900&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;x_0=700000.000&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;y_0=0.000&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;ellps=GRS80&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;datum=NAD83&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;units=ft&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">&nbsp; &quot;no_defs&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp; OR: </FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp; &quot;init=epsg:26967&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">END</FONT>
<BR><FONT SIZE=2 FACE="Courier New">END</FONT>
</P>
<BR>
<BR>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C3AEF7.264AFE70--



More information about the mapserver-users mailing list