[Mapserver-users] request=GetMap& error in MapServer v4.1
Rene Teniere
TENIERER at gov.ns.ca
Wed Apr 14 11:56:19 PDT 2004
When I try to request GetMap:
http://10.2.185.9/cgi-bin/mapserv402.exe?map=/inetpub/wwwroot/wms/wmstest.map&version=1.1.1&request=GetMap&
I get a download prompt which gives me an error. This works fine in
MapServer v4.0.2, anyone know what's up?
Rene
Here is the error:
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport SYSTEM
"http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.0">
<ServiceException code="LayerNotDefined">
msWMSLoadGetMapParams(): WMS server error. Invalid layer(s) given in
the LAYERS parameter.
</ServiceException>
</ServiceExceptionReport>
Here is a selection of the mapfile:
MAP
NAME "WAP Page"
STATUS ON
EXTENT 381053 4915490 573294 5059550
SIZE 400 300
SHAPEPATH "d:/GIS_Data/"
SYMBOLSET "c:/Inetpub/wwwroot/wms/etc/nsdnr_symbols.sym"
FONTSET "c:/Inetpub/wwwroot/wms/etc/fonts.txt"
IMAGETYPE PNG24
IMAGECOLOR 255 255 255
UNITS METERS
RESOLUTION 90.714286
WEB
IMAGEPATH "c:/temp/tmp/"
IMAGEURL "/temp/tmp/"
METADATA
"wms_title" "Nova Scotia NFIS Server"
"wms_onlineresource"
"http://10.2.185.9/cgi-bin/mapserv402.exe?map=/inetpub/wwwroot/wms/wapwms.map&"
"wms_srs" "EPSG:2038"
#Optional wms entries:
"wms_contactperson" "Richard Morash"
"wms_contactorganization" "Nova Scotia Department of
Natural Resources, Forestry Division"
"wms_contactposition" "GIS Project Manager"
"wms_abstract" "Nova Scotia Department of
Natural Resources Forestry Division. This is Nova Scotia's Base Data
Open GIS Consortium Web Map Server for sustainable forest management."
"wms_keywordlist"
"WAP,Forest,Information,System,gis,sustainable,management"
"wms_addresstype" "Postal"
"wms_address" "664 Prince Street PO BOX 68"
"wms_city" "Truro"
"wms_stateorprovince" "Nova Scotia"
"wms_postcode" "B2N 5B8"
"wms_country" "CANADA"
"wms_contactvoicetelephone" "(902) 893-5657"
"wms_contactfacsimiletelephone" "(902) 893-6102"
"wms_contactelectronicmailaddress" "rmorash at gov.ns.ca"
"wms_accessconstraints" "WMS image only"
"wms_fees" "None"
END
END
PROJECTION
"init=epsg:2038"
#UTM Zone 20 NAD83 for Nova Scotia
END
OUTPUTFORMAT
NAME "PNG24"
MIMETYPE "image/png"
DRIVER "GD/PNG"
EXTENSION "png"
IMAGEMODE RGB
END
LAYER
NAME "Forest"
GROUP "Forest_Type"
STATUS OFF
TYPE POLYGON
MAXSCALE 500000
TILEINDEX "coindex/coindex"
TILEITEM "loforest"
CLASSITEM "COVER_TYPE"
TOLERANCE 10
TOLERANCEUNITS PIXELS
METADATA
"wms_title" "Forest"
"wms_srs" "EPSG:2038"
"wms_group_title" "Forest_Type"
END
CLASS
NAME "Softwood"
EXPRESSION "2"
STYLE
SYMBOL 0
COLOR 33 66 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Mixwood"
EXPRESSION "5"
STYLE
SYMBOL 0
COLOR 33 99 33
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
CLASS
NAME "Hardwood"
EXPRESSION "8"
STYLE
SYMBOL 0
COLOR 100 50 0
SIZE 1
MINSIZE 1
MAXSIZE 100
END
END
END
More information about the MapServer-users
mailing list