Getting Blank Image : New User
cool frenz
coolfrenz85 at YAHOO.COM
Sun Sep 2 22:48:30 PDT 2007
Hi All,
I am a new user of mapserver. I am trying to view the available shape file using php mapscript. I have created a simple map file for the same.But on running it through browser i am getting a completely blank image as output. Please help.
Contents of Map file:
NAME "eSagu GIS"
SIZE 200 200
STATUS ON
SYMBOLSET "../symbols.sym"
EXTENT -5696501 1923039 5696501 11022882
UNITS METERS
SHAPEPATH "../data"
WEB
IMAGEPATH "C:/ms4w/Apache/htdocs/eSagu/map/tmp/"
IMAGEURL "/eSagu/map/tmp/"
END
LAYER
NAME "FarmFields"
TYPE point
STATUS ON
DATA "FarmFields"
CLASS
STYLE
COLOR 210 150 130
OUTLINECOLOR 100 220 230
SYMBOL 0
END
END
END
END
Content of php file:
<?php
dl('php_mapscript.dll');
$map_path="../map/";
$map = ms_newMapObj($map_path."eSagu.map");
$image=$map->draw();
$image_url=$image->saveWebImage();
?>
<HTML>
<HEAD>
<TITLE>eSagu: Displaying farms for Malkapur</TITLE>
</HEAD>
<BODY>
<IMG SRC=<?php echo $image_url; ?> >
</BODY>
</HTML>
Please help me out.
Thanks and Regards,
Piyush
---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070902/0922caac/attachment.htm>
More information about the MapServer-users
mailing list