-
-
Save anonymous/f0516f2766699e1ce3db to your computer and use it in GitHub Desktop.
Test map file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Start of map file | |
# | |
MAP | |
NAME ITASCA | |
STATUS ON | |
SIZE 600 600 | |
EXTENT 388107.634400379 5203120.88405952 500896.339019834 5310243.30613897 | |
#EXTENT -180 -90 180 90 | |
UNITS METERS | |
SHAPEPATH "data" | |
IMAGECOLOR 255 255 255 | |
TEMPLATEPATTERN "itasca" | |
CONFIG "MS_ERRORFILE" "/OSGeo4W/tmp/ms_error.txt" | |
DEBUG 5 | |
#IMAGETYPE PNG | |
OUTPUTFORMAT | |
NAME kml | |
#DRIVER "OGR/KML" | |
DRIVER "KML" | |
IMAGEMODE FEATURE #why is this needed? | |
FORMATOPTION "FORM=simple" | |
END | |
PROJECTION | |
"init=epsg:26915" | |
END | |
SYMBOL | |
NAME 'circle' | |
TYPE ELLIPSE | |
POINTS 1 1 END | |
FILLED TRUE | |
END | |
WEB | |
HEADER templates/header.html | |
TEMPLATE "set in index.html" | |
FOOTER templates/footer.html | |
MINSCALE 1000 | |
MAXSCALE 1550000 | |
# change the next two lines to match your setup | |
IMAGEPATH "/OSGeo4W/tmp/ms_tmp/" | |
IMAGEURL "/ms_tmp/" | |
METADATA | |
WMS_TITLE "UMN MapServer Itasca Demo" | |
WMS_ABSTRACT "This is a UMN MapServer application for Itasca County located in north central Minnesota." | |
WMS_ACCESSCONSTRAINTS "none" | |
# change this value to match your setup | |
WMS_ONLINERESOURCE "http://localhost.localdomain/mapserver_demos/itasca/index.html" | |
##WFS_SRS "EPSG:26915" | |
"wfs_srs" "EPSG:4326" | |
"wms_srs" "EPSG:4326" | |
"wfs_enable_request" "*" | |
"wms_enable_request" "*" | |
"wms_getmap_formatlist" "kml" | |
END | |
END | |
LAYER | |
NAME airports | |
TYPE POINT | |
DATA airports | |
STATUS ON | |
CLASS | |
NAME 'Airports' | |
STYLE | |
COLOR 128 255 164 | |
SYMBOL 'circle' | |
SIZE 7 | |
END | |
TEMPLATE "templates/airports.html" | |
END | |
HEADER "templates/airports_header.html" | |
FOOTER "templates/airports_footer.html" | |
TOLERANCE 5 | |
PROJECTION | |
"init=epsg:26915" | |
END | |
METADATA | |
WMS_TITLE "Airports" | |
WMS_ABSTRACT "Airport runways for Itasca County." | |
WMS_SRS "EPSG:26915" | |
"wfs_getfeature_formatlist" "kml" | |
"wfs_srs" "EPSG:4326" | |
END | |
END | |
END # Map File | |
# 1) itascag.map&typename=airports&outputformat=kml&service=wfs&version=1.1.0&request=GetFeature | |
# 2) itascag.map&typename=airports&outputformat=kml&service=wfs&version=1.1.0&request=GetFeature&BBOX=-94,46,-92,48 | |
# 3) itascag.map&layers=airports&format=kml&service=wms&version=1.1.0&request=GetMap&srs=EPSG:4326&BBOX=-94,46,-92,48&width=600&height=600 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment