Amal,

Can you confirm that your shapefile is in geographic (lat/long) coordinates?

If not you'll have to set up a PROJECTION object for the map and layer.

- matt

On 5/4/07, AMAL OMAR <[EMAIL PROTECTED]> wrote:
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° 11'4.0",
13°11'13.2") west
                                   (32° 52'5.9", 32°
52'26.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.




--
Matthew T. Perry
http://www.perrygeo.net

"You never change things by fighting the existing reality.
To change something, build a new model that makes
the existing model obsolete" - R. Buckminster Fuller

Reply via email to