[mapserver-users] Still have autorotation problems

Michel, Isai ISAI.MICHEL@saic.com
Tue, 16 Jul 2002 15:35:51 -0700


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_000_01C22D19.236E78F0
Content-Type: text/plain


Hello, it is me again (the person with the tiff automatic rotation
problems).

Please excuse the delay in response however I used to use hotmail but then
the IT department shutdown access because of a virus problem.  So now please
respond to my other email address: isai.michel@saic.com

Anyways, here is the current problem I have.

I have still not had any success with the autorotation.

Some people suggested that I MUST use the PROJ libraries.  So I downloaded
those, then compiled those, and then recompiled the mapserver.  I did:

$ make clean
$ ./configure --with-gdal --with-proj
$ make

The template file still shows the images in the middle of a box with
absolutely no rotation.  As previously requested:

I HAVE ATTACHED THE FOLLOWING FILES SO THAT SOMEONE MAY EDIT THEM AND HELP
ME:

start001.html
grid001.map
template001.html
LaserGrid-400_0000.tfw
LaserGrid-400_0001.tfw

I know that I do not have a projection definition but I do not know how to
write one.  Can someone please edit the files so that they may work properly
(I did not include the tiff images because it is rather big however the
pixel dimensions are 640x480) as was previously offered.  I really need to
get this to work so that I can automate the process.

Thank you very much and have a nice day.

Respectfully:
IML


------_=_NextPart_000_01C22D19.236E78F0
Content-Type: application/octet-stream;
	name="grid001.map"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="grid001.map"

# Assume the strings or variables are case sensitive & use only =
lowercase, unless working with shapefiles=0A=
=0A=
NAME GRID001 # the name of the map, just to help the program, uppercase =
for correct template interface=0A=
EXTENT 626120.47539168 3989852.7919775 626212.47539168 =
3989944.7919775=0A=
STATUS ON # use this to turn on the map, otherwise it would exist but =
you could not see it=0A=
SIZE 500 500 # The size (in pixels) of the map image to create; in x y =
format=0A=
UNITS METERS # The units=0A=
IMAGECOLOR 0 0 0 # The background color of the generated map image =
file, in r g b format=0A=
=0A=
WEB # This definition is what allows this map config file to find a =
template (html) and use it to output data=0A=
	TEMPLATE "template001.html"=0A=
	IMAGEPATH "set in start001.html"=0A=
	IMAGEURL "set in start001.html"=0A=
END # End the WEB definition=0A=
=0A=
LAYER # Start a layer to put an image on (default limit is 50, to =
change edit header files & recompile)=0A=
	NAME "tiffone" # Name of layer=0A=
	DATA "LaserGrid-400_0000.tif" # path of image to display=0A=
	TYPE RASTER # Explicitly specify what type of data to display=0A=
	STATUS ON # turn on the layer, if off it will exist but be =
invisible=0A=
END # End of this LAYER definition=0A=
=0A=
LAYER # Start a layer to put an image on (default limit is 50, to =
change edit header files & recompile)=0A=
	NAME "tifftwo" # Name of layer=0A=
	DATA "LaserGrid-400_0001.tif" # path of image to display=0A=
	TYPE RASTER # Explicitly specify what type of data to display=0A=
	STATUS ON # turn on the layer, if off it will exist but be =
invisible=0A=
END # End of this LAYER definition=0A=
=0A=
=0A=
END # The last end, the end of the map config file=0A=

------_=_NextPart_000_01C22D19.236E78F0
Content-Type: application/octet-stream;
	name="LaserGrid-400_0000.tfw"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="LaserGrid-400_0000.tfw"

0.009881725119296=0A=
0.014=0A=
0.014=0A=
-0.009881725119296=0A=
626165.47539168=0A=
3989897.7919775=0A=

------_=_NextPart_000_01C22D19.236E78F0
Content-Type: application/octet-stream;
	name="LaserGrid-400_0001.tfw"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="LaserGrid-400_0001.tfw"

0.0096049040073729=0A=
0.014511427005632=0A=
0.014511427005632=0A=
-0.0096049040073729=0A=
626162.80392977=0A=
3989904.0152175=0A=

------_=_NextPart_000_01C22D19.236E78F0
Content-Type: application/octet-stream;
	name="start001.html"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="start001.html"

<html>=0A=
<head><title>Laser Grid 400: start001.html</title></head>=0A=
<body bgcolor=3D"#FFFFFF">=0A=
=0A=
<center><h2>Laser Grid 400: start001.html</h2></center>=0A=
<p><hr><p>=0A=
Click on the initialize button to try it.=0A=
=0A=
<form method=3DGET action=3D"/cgi-bin/mapserv"> <!--// this should =
always be the same, relatively speaking //-->=0A=
=0A=
<input type=3D"hidden" name=3D"map" =
value=3D"/usr/local/httpd/htdocs/lasergrid400/grid001.map">=0A=
=0A=
<!--// The above is the absolute path (relative to the host) of the map =
config file //-->=0A=
<!--// The above is a small security risk since it will specify partial =
system structure //-->=0A=
<!--// You might be able to gain some security if you create a symbolic =
link to the map config files //-->=0A=
=0A=
<input type=3D"hidden" name=3D"layer" value=3D"tiffone">=0A=
<input type=3D"hidden" name=3D"layer" value=3D"tifftwo">=0A=
<input type=3D"hidden" name=3D"zoomsize" value=3D1>=0A=
=0A=
<input type=3D"hidden" name=3D"program" value=3D"/cgi-bin/mapserv"> =
<!--// Should be same as form action path //-->=0A=
<input type=3D"hidden" name=3D"map_web_imagepath" =
value=3D"/usr/local/httpd/htdocs/tmp/">=0A=
=0A=
<!--// The above is the absolute path (relative to the host) of the =
output directory (of map images) //-->=0A=
<!--// The above is a small security risk since it will specify partial =
system structure //-->=0A=
<!--// You might be able to gain some security if you create a symbolic =
link to the directory //-->=0A=
=0A=
<input type=3D"hidden" name=3D"map_web_imageurl" value=3D"/tmp/">=0A=
=0A=
<!--// Must be made available to host http daemon, or you could =
symbolically link it //-->=0A=
<!--// Caution: tmp dir must have writtable permissions for mapserv =
process but also not to all users //-->=0A=
<!--// Caution: images are created dynamically for each map & =
associated modifications, //-->=0A=
<!--// cont: the tmp dir could get very big if you do not periodically =
delete the files //-->=0A=
<!--// cont: use a 'very small shell script' to clean it; automate the =
process or run it manually //-->=0A=
=0A=
<center><input type=3D"submit" value=3D"Initialize"></center>=0A=
=0A=
</form>=0A=
=0A=
<p><hr><p>=0A=
=0A=
</body></html>=0A=

------_=_NextPart_000_01C22D19.236E78F0
Content-Type: application/octet-stream;
	name="template001.html"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="template001.html"

<html>=0A=
<head>=0A=
<title>=0A=
LaserGrid 400: small test=0A=
</title>=0A=
</head>=0A=
=0A=
<body bgcolor=3D"white">=0A=
=0A=
<form method=3DGET action=3D"[program]">=0A=
<INPUT NAME=3D"img" TYPE=3D"image" SRC=3D"[img]" width=3D"500" =
height=3D"500" border=3D0>=0A=
=0A=
</form>=0A=
=0A=
</body>=0A=
</html>=0A=

------_=_NextPart_000_01C22D19.236E78F0--