First-time user needs help with mapfile

Keerati Inochanon unselfishly at GMAIL.COM
Wed Jan 19 22:06:05 EST 2005


Hi,
I'm new at GIS and mapserver, and just decided to try it out. I was
wondering if someone could guide me into the right direction. I
downloaded world base map shapefiles from esri website. I wrote a
mapfile for it, and tried to have mapscript render it, but it does not
work (image produced, but only background). Here is what my map file
looks like:

MAP
    NAME ASIA
    STATUS ON
    SIZE 800 500
    IMAGETYPE PNG
    IMAGECOLOR 240 240 240
    SHAPEPATH "C:\\Program Files\\Apache
Group\\Apache2\\htdocs\\mapserver\\testshp"
    EXTENT 90.0168 0.6079 113.5783 24.1694
    UNITS DD
    PROJECTION
                        "proj=latlong"
                        "ellps=GRS80"
                        "datum=NAD83"
    END
        LAYER
                NAME "boundaries"
                  TYPE POLYGON
                  STATUS ON
                  DATA "Country Boundaries 3"
                  PROJECTION
                          "proj=latlong"
                          "ellps=GRS80"
                          "datum=NAD83"
                  END
          END
END

I got the extent info from the download page of the dataset

These are the files in the testshp directory:
B_Major Cities 1.dbf
B_Major Cities 1.prj
B_Major Cities 1.shp
B_Major Cities 1.shx
Country Boundaries 3.dbf
Country Boundaries 3.prj
Country Boundaries 3.shp
Country Boundaries 3.shx
Rivers 2.dbf
Rivers 2.prj
Rivers 2.shp
Rivers 2.shx
Streets and Railroads 1.dbf
Streets and Railroads 1.prj
Streets and Railroads 1.shp
Streets and Railroads 1.shx
Water Bodies 2.dbf
Water Bodies 2.prj
Water Bodies 2.shp
Water Bodies 2.shx

Any help or suggestions will be much appreciated. Thank you very much!

Keerati



More information about the mapserver-users mailing list