[Mapserver-users] WMS question
Ben Lewis
blewis at atsincorp.com
Fri Jan 30 07:04:27 PST 2004
Can anyone tell me what's wrong with this map file serving up a WMS? I
get a capabilities document back. I get an image in the browser, but
when I try to load the service to a wms client, no image appears. I
suspect it's projection related.
Here is the capabilities URL:
http://65.40.143.163/cgi-bin/mapserv?map=e:\lotus\apache\htdocs\romap\ro
map.map&WMTVER=1.1.0&REQUEST=getcapabilities
Here is the map file I'm using:
------------------------------------------------
## Start of map file - created Tue Jan 15 09:01:36 2002
#
NAME View1
SIZE 445 245
STATUS ON
TRANSPARENT on
SHAPEPATH 'E:\Lotus\Apache\htdocs\romap\data/'
SYMBOLSET "symbols/symbols.sym"
#IMAGECOLOR 11 206 255
IMAGETYPE gif
#IMAGETYPE png
EXTENT 29.2053 -11.7691 40.4571 -0.991321
#EXTENT -180.000 -90.000 180.000 90.000
#EXTENT -80.66 39.11 -74.69 42.25
UNITS dd
#
# Start of web interface definition
#
WEB
TEMPLATE 'mapdisplay.html'
IMAGEPATH 'E:\Lotus\Apache\htdocs\romap\mapimages/'
IMAGEURL '/mapimages/'
METADATA
"wms_title" "ROMAP_SERVER"
"wms_onlineresource"
"http://65.40.143.163/cgi-bin/mapserv?map=e:\lotus\apache\htdocs\romap\r
omap.map"
"wms_srs" "EPSG:4326"
END
END #WEB
#PROJECTION
# "init=epsg:4326"
#END
PROJECTION
"proj=longlat"
"ellps=GRS80"
END
#
# Start of reference map
#
#
# Start of layer definitions
#
#LAYER
#NAME "world_adm0"
#DATA 'world_adm0'
#STATUS ON
#TYPE Polygon
#PROJECTION
#"proj=longlat"
#"ellps=GRS80"
#END
#METADATA
#wms_title "world_adm0"
#wms_srs "EPSG:4140"
#END
#CLASS
#NAME 'world_adm0'
#COLOR 255 255 204
#OUTLINECOLOR 0 51 51
#END
#END #END OF LAYER
LAYER
NAME "uri_districts"
DATA 'uri_districts'
STATUS ON
TYPE Polygon
PROJECTION
"proj=utm"
"zone=37"
"south"
"ellps=WGS84"
"datum=WGS84"
"units=m"
END
METADATA
wms_title "uri_districts"
wms_srs "EPSG:32737"
END
CLASS
NAME 'uri_districts'
COLOR -1 -1 -1
OUTLINECOLOR 100 120 245
END
END #END OF LAYER
LAYER
NAME "uri_gisd_land_cover"
DATA 'uri_gisd_land_cover'
STATUS ON
TYPE Polygon
PROJECTION
"proj=utm"
"zone=37"
"south"
"ellps=WGS84"
"datum=WGS84"
"units=m"
END
METADATA
wms_title "uri_gisd_land_cover"
wms_srs "EPSG:32737"
END
CLASSITEM Category
CLASS
EXPRESSION 'Bare Soil'
COLOR 161 102 50
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Bushland w/ crops'
COLOR 0 0 0
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Closed Woodland'
COLOR 187 166 0
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Dense Bushland'
COLOR 20 164 172
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Forest Plantation'
COLOR 19 60 30
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Grassland'
COLOR 195 255 195
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Grassland w/ crops'
COLOR 119 10 230
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Inland Water'
COLOR 0 0 255
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Mangrove Forest'
COLOR 255 0 255
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Natural Forest'
COLOR 1 130 0
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Open Bushland'
COLOR 165 250 255
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Open Woodland'
COLOR 255 249 165
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Salt Crust'
COLOR 165 165 165
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Sandy Beaches'
COLOR 255 251 195
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Swamp/Marsh'
COLOR 119 0 130
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Temporarily Flooded Grassland'
COLOR 119 100 130
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Woodland w/ crops'
COLOR 219 0 130
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Cultivated Agriculture'
COLOR 254 234 198
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Cultivated Tree'
COLOR 255 199 174
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'Urban Area / Residential Area'
COLOR 255 0 0
OUTLINECOLOR 0 0 0
END # CLASS
CLASSITEM Category
CLASS
EXPRESSION 'No Data'
COLOR 255 255 255
OUTLINECOLOR 0 0 0
END # CLASS
END #END OF LAYER
END# END OF romap.map MAP FILE
---------------------------------------------------------
:::::::::::::::::::::::::::::::::::::
Benjamin Lewis
Advanced Technology Solutions, Inc.
1525 Oregon Pike, Suite 202
Lancaster, Pennsylvania 17601-4372
717.399.7007
blewis at atsincorp.com
http://www.atsincorp.com
:::::::::::::::::::::::::::::::::::::
More information about the MapServer-users
mailing list