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

Robert Sanson Robert.Sanson at asurequality.com
Thu Sep 13 10:51:14 PDT 2012


Hi Jessica

I can confirm with Brent that ArcMap can read WMS layers from Mapserver. You need to specify the version in ArcCatalog when you first connect, otherwise ArcMap will try v1.3 by default (from memory).

Regards,

Robert

>>> <pcreso at pcreso.com> 14/09/2012 5:44 a.m. >>>
Can you confirm it works OK with other clients, like QGIS?

I generally use QGIS for testing, as I can easily & simultaneously open the shapefiles, imagery, postgis tables, etc as well as the WMS/WFS outputs to ensure all is doing exactly what it should.

We are using mapserver to provide layers to clients using ESRI so it does work.

I would also note that mapserver 5.2 is a bit dated now, & wms v1.3.0 is the current version which you do not show support for.

Brent Wood

--- On Thu, 9/13/12, Jessica Clarke <Jessica.Clarke at forestrytas.com.au> wrote:

From: Jessica Clarke <Jessica.Clarke at forestrytas.com.au>
Subject: [mapserver-users] mapserver as a wms server for arcgis client
To: mapserver-users at lists.osgeo.org 
Date: Thursday, September 13, 2012, 6:53 PM


 
 

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&"/>
</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>
          <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>
      </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>
          <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>
      </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>
          <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>
      </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>
          <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>
      </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>
          <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>
      </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>
          <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>
      </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
 



-----Inline Attachment Follows-----

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org 
http://lists.osgeo.org/mailman/listinfo/mapserver-users


This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.

This message has been scanned for Malware and Viruses by Websense Hosted Security.
www.websense.com



More information about the MapServer-users mailing list