[Mapserver-users] A blank map??

P Wilkerson 1wilkerson at charter.net
Sat Apr 17 03:05:31 EDT 2004


This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C42428.D7D99830
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I keep getting blank maps whe using PHP MapScript.  I am following the =
*.map and *.phtml examples found at =
http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html=20

An image file is being created.  I see it in the /tmp/ directory. But it =
doesn't have the *.tiff file image included.  I thought it might be the =
Extent statement. I used shpdump.exe to get the extent from a set of =
related shp files.  Still I get a blank image file.

Below is my *.map file.  Anybody have a suggestions?  I would *really* =
like to see my nicely colored 1868 map. :-)

Peter

PS--I am still working through an earlier issue regarding PHP and CGI at =
a host site.  That issue is not related to this one (i.e., a local =
server rather than the hosted one -- only a temp solution).

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D

Boston.map

MAP
  NAME boston1868
  SIZE 600 400
  IMAGECOLOR 255 245 220
  EXTENT 234368.977361  898337.203825 235831.484169 902022.271495
  UNITS meters

WEB
  IMAGEPATH "/ms4w/tmp/ms_tmp/"=20
  IMAGEURL "/ms_tmp/"
END

LAYER
#  DESCRIPTION "Base Map: City of Boston 1868"
     NAME "boston1868"
     STATUS ON
     TYPE RASTER
     DATA "E:/ms4w/Apache/htdocs/map01/data/boston1868.tiff"
END # Layer for base map

=20
END # Mapfile

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

MapServer 4.01  -- ms4w (Mapserver for Windows) installation.
Support for PHP 4.3.4

------=_NextPart_000_000D_01C42428.D7D99830
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.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I keep getting blank maps whe using PHP =

MapScript.&nbsp;&nbsp;I am following the *.map and *.phtml&nbsp;examples =
found=20
at </FONT><FONT face=3DArial size=3D2><A=20
href=3D"http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.htm=
l">http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html</A>=
&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>An image file is being created.&nbsp; I =
see it in=20
the /tmp/ directory.&nbsp;But it doesn't have the *.tiff file image=20
included.&nbsp; I thought it might be the Extent statement.&nbsp;I used=20
shpdump.exe to get the extent from a set of related shp files.&nbsp; =
Still I get=20
a blank image file.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Below is my *.map file.&nbsp; =
</FONT><FONT=20
face=3DArial size=3D2>Anybody have a suggestions?&nbsp; I would *really* =
like to see=20
my nicely colored 1868 map. :-)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Peter</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>PS--I am still working through an =
earlier issue=20
regarding PHP and CGI at a host site.&nbsp; That issue is not related to =
this=20
one (i.e., a local server rather than the hosted one -- only a temp=20
solution).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Boston.map</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MAP<BR>&nbsp; NAME boston1868<BR>&nbsp; =
SIZE 600=20
400<BR>&nbsp; IMAGECOLOR 255 245 220<BR>&nbsp; EXTENT =
234368.977361&nbsp;=20
898337.203825 235831.484169 902022.271495<BR>&nbsp; UNITS =
meters</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>WEB<BR>&nbsp; IMAGEPATH =
"/ms4w/tmp/ms_tmp/"=20
<BR>&nbsp; IMAGEURL "/ms_tmp/"<BR>END</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>LAYER<BR>#&nbsp; DESCRIPTION "Base Map: =
City of=20
Boston 1868"<BR>&nbsp;&nbsp;&nbsp;&nbsp; NAME=20
"boston1868"<BR>&nbsp;&nbsp;&nbsp;&nbsp; STATUS =
ON<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
TYPE RASTER<BR>&nbsp;&nbsp;&nbsp;&nbsp; DATA=20
"E:/ms4w/Apache/htdocs/map01/data/boston1868.tiff"<BR>END # Layer for =
base=20
map</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;<BR>END # =
Mapfile<BR></FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><FONT face=3D"Times New Roman" =
size=3D3>MapServer=20
4.01&nbsp;&nbsp;<FONT face=3DArial size=3D2>-- ms4w (Mapserver for =
Windows)=20
installation.</FONT><BR>Support for PHP=20
4.3.4</FONT><BR></DIV></FONT></BODY></HTML>

------=_NextPart_000_000D_01C42428.D7D99830--




More information about the mapserver-users mailing list