Define Map Extent for small area
AMAL OMAR
amal_osaad2003 at YAHOO.COM
Fri May 4 22:17:08 PDT 2007
Hi ,
I have been create map file for small area about 1km2,but the problem , it can not get the vector map for my area, the map output come white no data present.
Degree Minutes Seconds (DMS) for shape file is
(13° 114.0, 13°1113.2) west
(32° 525.9, 32° 5226.2) North
I have changed it to decimal Degree (DD):
Xmin=13.184444
Ymin=32.86306
Xmax=13.187000
Ymax=32.873944
The map file code:
# This is our first mapfile
NAME "first-cis"
UNITS dd
SIZE 400 300
IMAGECOLOR 255 255 255
IMAGETYPE PNG
SHAPEPATH "/ms4w/home/mapdata/cis/"
EXTENT 13.184444 32.86306 13.187000 32.873944
#####################################################
WEB
TEMPLATE '/ms4w/var/www/htdocs/cis/first-cis.html'
IMAGEPATH '/ms4w/var/www/htdocs/tmp/'
IMAGEURL '/tmp/'
END
######################################################
LAYER
NAME "Azwia Hospital"
STATUS default
TYPE polygon
DATA "hospital"
CLASS
STYLE
COLOR 255 0 0
END
END
END
END
HTML File:
<html>
<head> <title>MapServer First cadastral Map</title></head>
<body>
<form method=POST action="/cgi-bin/mapserv.exe" id=form1 name=form1>
<input type="submit" value="Click Me" id=submit1 name=submit1>
<input type="hidden" name="map" value="/ms4w/home/mapdata/cis/first-cis.map">
<input type="hidden" name="map_web_imagepath"
value="/ms4w/var/www/htdocs/tmp/">
</form>
<IMG SRC="[img]" width=400 height=300 border=0>
</body>
</html>
---------------------------------
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20070504/3415aed8/attachment.htm>
More information about the MapServer-users
mailing list