[mapserver-users] mapserver as a wms server for arcgis client

Jessica Clarke Jessica.Clarke at forestrytas.com.au
Wed Sep 12 23:53:42 PDT 2012


Hi, 
I'm hoping someone can help me identify why my wms layers in arcgis are coming up blank. 

Here is my mapfile:
MAP
 NAME "WMSQuick"
 STATUS ON
 EXTENT 227154 5165779 627108 5614539
 UNITS DD
 SHAPEPATH "c:/images"
 SIZE 800 600
 PROJECTION
  "init=epsg:28355"
 END
 OUTPUTFORMAT
  NAME 'AGG/PNG'
  DRIVER AGG/PNG
 END
 WEB
  IMAGEPATH "C:/images/"
  IMAGEURL "/images/"
  METADATA
    "wms_title"     "WMS Demo"  ##required
    "wms_onlineresource" "http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"
    "wms_enable_request" "*"   ##necessary
    "wms_server_version" "1.1.1"
    "wms_extent" "227154 5165779 627108 5614539"
  END
 END
 LAYER
  NAME "AdminCountries"
  STATUS ON
  TYPE POLYGON
  DATA "img_index.shp"
  CLASS
   STYLE
    COLOR 246 241 223
    OUTLINECOLOR 0 0 0
   END
  END
  METADATA
   "wms_title" "admin_countries"
   "wms_name" "admincountries"
   "wms_server_version" "1.1.1"
   #"wms_extent" "227154 5165779 627108 5614539"     
   "wms_onlineresource" "http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"
   "wms_format" "image/tif"
  END
  PROJECTION
  "init=epsg:28355"
 END
 END
 LEGEND
  KEYSIZE 12 12
  STATUS EMBED
  POSITION lr
  IMAGECOLOR 125 125 125
  LABEL
   COLOR 255 255 255
   FONT "verdana"
   TYPE TRUETYPE
   POSITION AUTO
   PARTIALS FALSE
   SIZE 8
   BUFFER 1
  END
 END
END 
 
Here is my capabilities report: 
 
<?xml version='1.0' encoding="ISO-8859-1" standalone="no" ?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd"
 [
 <!ELEMENT VendorSpecificCapabilities EMPTY>
 ]>  <!-- end of DOCTYPE declaration -->
 
<WMT_MS_Capabilities version="1.1.1">
 
<!-- MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
 
<Service>
  <Name>OGC:WMS</Name>
  <Title>WMS Demo</Title>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/ ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/' )>
</Service>
 
<Capability>
  <Request>
    <GetCapabilities>
      <Format>application/vnd.ogc.wms_xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
        </HTTP>
      </DCPType>
    </GetCapabilities>
    <GetMap>
      <Format>image/gif</Format>
      <Format>image/png</Format>
      <Format>image/png; mode=24bit</Format>
      <Format>image/jpeg</Format>
      <Format>image/vnd.wap.wbmp</Format>
      <Format>image/tiff</Format>
      <Format>image/svg+xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
        </HTTP>
      </DCPType>
    </GetMap>
    <GetFeatureInfo>
      <Format>text/plain</Format>
      <Format>application/vnd.ogc.gml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
        </HTTP>
      </DCPType>
    </GetFeatureInfo>
    <DescribeLayer>
      <Format>text/xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
        </HTTP>
      </DCPType>
    </DescribeLayer>
    <GetLegendGraphic>
      <Format>image/gif</Format>
      <Format>image/png</Format>
      <Format>image/png; mode=24bit</Format>
      <Format>image/jpeg</Format>
      <Format>image/vnd.wap.wbmp</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
        </HTTP>
      </DCPType>
    </GetLegendGraphic>
    <GetStyles>
      <Format>text/xml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Get ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
          <Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://test/cgi-bin/mapserv.exe?map=E:\mapfiles\wmstest4.map&"/></Post ( 'http://test/cgi-bin/mapserv.exe?map=E:.map&"/ )>
        </HTTP>
      </DCPType>
    </GetStyles>
  </Request>
  <Exception>
    <Format>application/vnd.ogc.se_xml</Format>
    <Format>application/vnd.ogc.se_inimage</Format>
    <Format>application/vnd.ogc.se_blank</Format>
  </Exception>
  <VendorSpecificCapabilities />
  <UserDefinedSymbolization SupportSLD="1" UserLayer="0" UserStyle="1" RemoteWFS="0"/>
  <Layer>
    <Name>WMSQuick</Name>
    <Title>WMS Demo</Title>
    <SRS>EPSG:28355</SRS>
    <LatLonBoundingBox minx="143.619" miny="-43.661" maxx="148.576" maxy="-39.5755" />
    <BoundingBox SRS="EPSG:28355"
                minx="227154" miny="5.16578e+006" maxx="627108" maxy="5.61454e+006" />
    <Layer queryable="0" opaque="0" cascaded="0">
        <Name>AdminCountries</Name>
        <Title>admin_countries</Title>
        <SRS>EPSG:28355</SRS>
        <LatLonBoundingBox minx="146.276" miny="-42.7217" maxx="146.522" maxy="-41.3319" />
        <BoundingBox SRS="EPSG:28355"
                    minx="440755" miny="5.26997e+006" maxx="460030" maxy="5.42416e+006" />
    </Layer>
  </Layer>
</Capability>
</WMT_MS_Capabilities>
 
Am I missing something vital? I am able to add the WMS layers in arcmap, but the canvas is blank. 
 
Thanks in advance. 
Jess
 

---------------------------------------------------------------
Forestry creates regional employment:
 http://youtu.be/UBIUGiCiX00
Growing tomorrow's high conservation value forests:
 http://www.youtube.com/watch?v=wP6XCailI-A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120913/f0e039a1/attachment.htm>


More information about the MapServer-users mailing list