[Mapserver-users] WMS requests.

Bob Basques bob.basques at ci.stpaul.mn.us
Mon Apr 5 17:53:23 EDT 2004


Ok, what did I do wrong?

http://pwultra5.ci.stpaul.mn.us/cp_tiles/temp/mapserv.getCapabilities.php

I get this in the output( the leading carraige return wouldn't break it, 
would it?

bobb

------------------------------------------------------------

<WMT_MS_Capabilities version="1.1.0">

<!-- MapServer version 4.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP 
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 
INPUT=GDAL INPUT=SHAPEFILE -->

<Service>
  <Name>OGC:WMS</Name>
  <Title>WMS City of Saint Paul, Public Works Server</Title>
  <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?map=../html/raster/horizons_wms.map&amp;amp;&amp;"/>
</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://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?map=../html/raster/horizons_wms.map&amp;amp;&amp;"/></Get>
          <Post><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?map=../html/raster/horizons_wms.map&amp;amp;&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetCapabilities>
    <GetMap>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <Format>image/wbmp</Format>
      <Format>text/html</Format>
      <Format>image/tiff</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?map=../html/raster/horizons_wms.map&amp;amp;&amp;"/></Get>
          <Post><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?map=../html/raster/horizons_wms.map&amp;amp;&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetMap>
    <GetFeatureInfo>
      <Format>text/plain</Format>
      <Format>text/html</Format>
      <Format>application/vnd.ogc.gml</Format>
      <DCPType>
        <HTTP>
          <Get><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?map=../html/raster/horizons_wms.map&amp;amp;&amp;"/></Get>
          <Post><OnlineResource 
xmlns:xlink="http://www.w3.org/1999/xlink" 
xlink:href="http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?map=../html/raster/horizons_wms.map&amp;amp;&amp;"/></Post>
        </HTTP>
      </DCPType>
    </GetFeatureInfo>
  </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>HORIZONS</Name>
    <Title>WMS City of Saint Paul, Public Works Server</Title>
    <SRS>EPSG:32615</SRS>
    <LatLonBoundingBox minx="540000" miny="135000" maxx="600000" 
maxy="175000" />
    <Layer>
      <Name>AERIAL</Name>
      <Title>AERIAL</Title>
      <Layer queryable="0" opaque="0" cascaded="0">
        <Name>L5</Name>
        <Title>HORIZONS L5</Title>
        <ScaleHint min="7.98294" max="15.9649" />
      </Layer>
      <Layer queryable="0" opaque="0" cascaded="0">
        <Name>L4</Name>
        <Title>HORIZONS L4</Title>
        <ScaleHint min="3.99172" max="7.98245" />
      </Layer>
      <Layer queryable="0" opaque="0" cascaded="0">
        <Name>L3</Name>
        <Title>HORIZONS L3</Title>
        <ScaleHint min="1.99611" max="3.99122" />
      </Layer>
      <Layer queryable="0" opaque="0" cascaded="0">
        <Name>L2</Name>
        <Title>HORIZONS L2</Title>
        <ScaleHint min="0.998305" max="1.99561" />
      </Layer>
      <Layer queryable="0" opaque="0" cascaded="0">
        <Name>L1</Name>
        <Title>HORIZONS L1</Title>
        <ScaleHint min="0.499402" max="0.997806" />
      </Layer>
      <Layer queryable="0" opaque="0" cascaded="0">
        <Name>L0</Name>
        <Title>HORIZONS L0</Title>
        <ScaleHint min="0.24995" max="0.498903" />
      </Layer>
    </Layer>
    <Layer queryable="0" opaque="0" cascaded="0">
        <Name>anno</Name>
        <Title>ANNO</Title>
    </Layer>
  </Layer>
</Capability>
</WMT_MS_Capabilities>


bobb


Swaminathan, Gayathri wrote:

>Bob,
>
>I would rather do the following to get the interoperability working with
>ArcExplorer...(Am gonna list all the steps for your quick reference :)
>
>
>1) Get the Interoperability extension for ArcExplorer -Java Edition
>version 4.0.1 I think.
>
>2) Install that.
>
>3) Get Capabilities using,
>
>http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?map=<mappath>&VERSIO
>N=1.1.1&REQUEST=Getcapabilities
>
>This should pop you a XML file (does not have .xml extension but, that's
>ok)- Save that to disk
>
>4) Do this at the beginning of the document.
>
><?php
>    header("Content-type:application/vnd.ogc.gml");
>    ?>
>    <WMT_MS_Capabilities version="1.1.1" updatesequence="0">=====> (This
>line is already in your capabilities file you downloaded in step 3, you
>will have   
>	
>to change the version from 1.1.0 to 1.1.1, that is all)
>
>5) Save file as <something>.php under your local intranet site for
>example, could be 
>
>http://dragonslayer.ci.stpaul.mn.us/pws.php
>
>6) Open up ArcExplorer->Interoperability(Menu)->Connect to WMS, type in
>the URL of the .php file, For example,
>http://dragonslayer.ci.stpaul.mn.us/pws.php
>
>Hit OK!
>
>And you should get the layers.
>
>HTH. Let me know if you are running into issues.
>Gayathri
>
>
>
>
>
>  
>
>>-----Original Message-----
>>From: Bob Basques [mailto:bob.basques at ci.stpaul.mn.us] 
>>Sent: Monday, April 05, 2004 4:14 PM
>>To: Swaminathan, Gayathri
>>Subject: Re: [Mapserver-users] WMS requests.
>>
>>
>>Swaminathan, Gayathri wrote:
>>
>>    
>>
>>>No problem,
>>>
>>>On the ArcExplorer...use the hints from here...
>>>
>>>http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WMSMapserverArcExplorer
>>>
>>>They are helpful
>>> 
>>>
>>>      
>>>
>>I just read in detail, the Message console is a slick troubleshooter,
>>
>>Any idea about what this output might mean related to 
>>connecting to my 
>>service?
>>
>>GetCapabilities Request : 
>>http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?SERVICENAM
>>E=pw&VERSION=1.1.1&WMTVER=1.1.1&SERVICE=WMS&REQUEST=capabilities
>>
>>GetCapabilities Request : 
>>http://dragonslayer.ci.stpaul.mn.us/cgi-bin/mapserv?SERVICENAM
>>E=pw&VERSION=1.1.1&WMTVER=1.1.1&SERVICE=WMS&REQUEST=capabilities
>>
>>###### Start to WMS getCapabilities in GetWMSService class 
>>version=null
>>
>>************** realVersion is = none
>>
>>************** Version is = null
>>
>>This version is not supported
>>
>>******** Exception for WMS:null
>>
>>java.lang.NullPointerException
>>
>>    at com.esri.ogc.client.WMSServer.refresh(WMSServer.java:236)
>>
>>    at com.esri.ogc.client.WMSServer.<init>(WMSServer.java:67)
>>
>>    at com.esri.ogc.client.WMSServer.getLayerSource(WMSServer.java:48)
>>
>>    at com.esri.ogc.client.WMSUtil.AddWMSLayer(WMSUtil.java:306)
>>
>>    at 
>>com.esri.ogc.viewer.extensions.WMSConnectionDialog.jButton_OK_
>>actionPerformed(WMSConnectionDialog.java:164)
>>
>>    at 
>>com.esri.ogc.viewer.extensions.WMSConnectionDialog$1.actionPer
>>formed(WMSConnectionDialog.java:74)
>>
>>    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>>
>>    at 
>>javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
>>(Unknown 
>>Source)
>>
>>    at 
>>javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>>
>>    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>>
>>    at 
>>javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown 
>>Source)
>>
>>    at java.awt.Component.processMouseEvent(Unknown Source)
>>
>>    at java.awt.Component.processEvent(Unknown Source)
>>
>>    at java.awt.Container.processEvent(Unknown Source)
>>
>>    at java.awt.Component.dispatchEventImpl(Unknown Source)
>>
>>    at java.awt.Container.dispatchEventImpl(Unknown Source)
>>
>>    at java.awt.Component.dispatchEvent(Unknown Source)
>>
>>    at 
>>java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>>
>>    at 
>>java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>>
>>    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>>
>>    at java.awt.Container.dispatchEventImpl(Unknown Source)
>>
>>    at java.awt.Window.dispatchEventImpl(Unknown Source)
>>
>>    at java.awt.Component.dispatchEvent(Unknown Source)
>>
>>    at java.awt.EventQueue.dispatchEvent(Unknown Source)
>>
>>    at 
>>java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>>
>>    at 
>>java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>>
>>    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>>
>>    at java.awt.EventDispatchThread.run(Unknown Source)
>>
>>
>>    
>>
>>>Gayathri
>>>
>>> 
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: Bob Basques [mailto:bob.basques at ci.stpaul.mn.us]
>>>>Sent: Monday, April 05, 2004 3:45 PM
>>>>To: Swaminathan, Gayathri
>>>>Subject: Re: [Mapserver-users] WMS requests.
>>>>
>>>>
>>>>Swaminathan, Gayathri wrote:
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>Mea Culpa!
>>>>>
>>>>>Should be Layers=L5.
>>>>>That should work.
>>>>>
>>>>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>Geez, I tried every combination but that one! I eve through
>>>>the "s" on 
>>>>the end a couple of times.  It Worked!!
>>>>
>>>>Now to figure out the interoperability extension for ArcExplorer.
>>>>
>>>>
>>>>Thanks (A lot!!) for the help here.
>>>>
>>>>bobb
>>>>
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>> 
>>>
>>>      
>>>
>>    
>>
>
>  
>




More information about the mapserver-users mailing list