[Mapserver-users] Tiled rasters cause map to show source of HTML template
Chris Storozuk
cstorozuk at shaw.ca
Fri Nov 14 19:18:28 PST 2003
This is a multi-part message in MIME format.
------=_NextPart_000_0018_01C3AAF4.D8B3CCB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Dear all,
I've just started working to display my images (TIF topo maps) using a =
tiled index. When I try to load the map with one of the tiles in my view =
extents, I see the following in place of the webpage, as plain text:
Content-type: text/html
<!-- MapServer version 4.0 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG =
OUTPUT=3DWBMP OUTPUT=3DPDF OUTPUT=3DSWF SUPPORTS=3DPROJ =
SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER SUPPORTS=3DWMS_CLIENT =
SUPPORTS=3DWFS_SERVER SUPPORTS=3DWFS_CLIENT INPUT=3DEPPL7 =
INPUT=3DPOSTGIS INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE -->
... the rest of the source...
My map file defines the layer as:
LAYER
NAME topo
TILEINDEX topo_250k_index
TILEITEM SHEET_NAME
STATUS DEFAULT
TYPE RASTER
CLASSITEM "[pixel]"
CLASS
EXPRESSION ([pixel] > 0)
END
PROJECTION
"proj=3Dlatlong"
END
END
If I move to an area for which no TIF file exists in the directory, I =
get the following text just above the text shown above:
ERROR 4: `c:\inetpub\wwwroot\maps\../data/ab/82P.tif' does not exist in =
the file system,
and is not recognised as a supported dataset name.
This leads me to believe the tile process is working correctly, having =
recognized which files are available and which are not, but something in =
the way the webpage is being processed. Any suggestions?
Chris
------=_NextPart_000_0018_01C3AAF4.D8B3CCB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2733.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Dear all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I've just started working to display my =
images (TIF=20
topo maps) using a tiled index. When I try to load the map with one of =
the tiles=20
in my view extents, I see the following in place of the webpage, as =
plain=20
text:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>Content-type: text/html<BR><BR><!-- MapServer version 4.0 =
OUTPUT=3DGIF=20
OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP OUTPUT=3DPDF OUTPUT=3DSWF =
SUPPORTS=3DPROJ=20
SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER SUPPORTS=3DWMS_CLIENT =
SUPPORTS=3DWFS_SERVER=20
SUPPORTS=3DWFS_CLIENT INPUT=3DEPPL7 INPUT=3DPOSTGIS INPUT=3DOGR =
INPUT=3DGDAL=20
INPUT=3DSHAPEFILE --><BR><FONT face=3DArial size=3D2>... the rest of =
the=20
source...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>My map file defines the layer =
as:</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>LAYER<BR> NAME topo<BR> TILEINDEX=20
topo_250k_index<BR> TILEITEM SHEET_NAME<BR> STATUS =
DEFAULT<BR> TYPE RASTER<BR> CLASSITEM=20
"[pixel]"<BR> CLASS<BR> EXPRESSION =
([pixel]=20
>=20
0)<BR> END<BR> PROJECTION<BR> "pro=
j=3Dlatlong"<BR> END<BR> END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>If I move to an area for which no TIF =
file exists=20
in the directory, I get the following text just above the text shown=20
above:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT size=3D3>ERROR 4:=20
`c:\inetpub\wwwroot\maps\../data/ab/82P.tif' does not exist in the file=20
system,<BR>and is not recognised as a supported dataset=20
name.<BR></FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This leads me to believe the tile =
process is=20
working correctly, having recognized which files are available and which =
are=20
not, but something in the way the webpage is being processed. Any=20
suggestions?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Chris</FONT></DIV></BODY></HTML>
------=_NextPart_000_0018_01C3AAF4.D8B3CCB0--
More information about the MapServer-users
mailing list