[mapserver-users] WMS Client - access to non-Mapserver WMS Servers

Havard Tveite havard.tveite at ikf.nlh.no
Fri Apr 12 12:21:39 EDT 2002


I have had some problems connecting to ESRI WMS servers.
I am not a WMS expert, but I have briefly looked at the
WMS 1.0.0 specification.

My Mapserver setup is:
>MapServer version 3.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
>INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SDE INPUT=GDAL INPUT=SHAPEFILE

I have successfully connected my WMS Client to Mapserver-based
WMS Servers. I have not succeeded in connecting to ESRI-based
WMS Servers.

I have tested against
"www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World"
and have used cubewerx to check the expected output.

I have tried the following CONNECTION string:
"http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&WMTVER=1.0.0&LAYERS=rivers&STYLE=default&SRS=4326&Format=image/gif&TRANSPARENT=false"

This is my LAYER definition
------------------------------------------------------------------------
  LAYER
    NAME "esri"
    METADATA
      "wms_title" "ESRI - World"
      "wms_srs" "epsg:4326"
      "wms_connectiontimeout" "1000"
    END
    TYPE RASTER
    STATUS DEFAULT
    CONNECTION "http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&WMTVER=1.0.0&LAYERS=rivers&STYLE=default&SRS=4326&Format=PNG&TRANSPARENT=false"
    CONNECTIONTYPE WMS
    PROJECTION
      "init=epsg:4326"
    END
  END #layer esri
------------------------------------------------------------------------

The message is:
  msDrawRaster(): Image handling error. Unrecognized or unsupported image format

If I use only Mapserver WMS Servers, everything works fine...

If I include a "request=map" in the CONNECTION, I get a blank image at
scales where the rivers show up at cubewerx's client.

I must be missing something...


These are the capabilities of:
http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?ServiceName=ESRI_World&WMTVER=1.0.0&request=capabilities

------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://www.geographynetwork.com:80/capabilities/capabilities_1_0_0.dtd" [
<!-- vendor-specific elements defined here -->
<!ENTITY % KnownFormats " GIF | JPEG | PNG | WMS_XML | MIME | ARCXML | BLANK |INIMAGE  ">
<!ELEMENT ARCXML EMPTY>
<!--ESRI Inc. Arc XML format (axl)-->
]>
<WMT_MS_Capabilities version="1.0.0">
<Service>
<Name>GetMap</Name>
<Title>ESRI Inc. Map Server</Title>
<Abstract>WMT Map Server maintained by ESRI Inc.</Abstract>
<OnlineResource>http://www.geographynetwork.com:80/servlet/com.esri.wms.Esrimap?</OnlineResource>
<Fees>none</Fees>
<AccessConstraints>none</AccessConstraints>
</Service>
<Capability>
<Request>
<Map>
<Format>
<JPEG/>
<GIF/>
<PNG/>
</Format>
<DCPType>
<HTTP>
<Get onlineResource="http://www.geographynetwork.com:80/servlet/com.esri.wms.Esrimap?"/>
</HTTP>
</DCPType>
</Map>
<Capabilities>
<Format>
<WMS_XML/>
</Format>
<DCPType>
<HTTP>
<Get onlineResource="http://www.geographynetwork.com:80/servlet/com.esri.wms.Esrimap?"/>
</HTTP>
</DCPType>
</Capabilities>
<FeatureInfo>
<Format>
<ARCXML/>
<MIME/>
</Format>
<DCPType>
<HTTP>
<Get onlineResource="http://www.geographynetwork.com:80/servlet/com.esri.wms.Esrimap?"/>
</HTTP>
</DCPType>
</FeatureInfo>
</Request>
<Exception>
<Format>
<BLANK/>
<INIMAGE/>
<WMS_XML/>
</Format>
</Exception>
<Layer>
<Title>ArcIMS Map Server</Title>
<SRS>EPSG:4326</SRS>
<Layer>
<Name>Oceans and Seas</Name>
<Title>Oceans and Seas</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
</Layer>
<Layer>
<Name>Continents</Name>
<Title>Continents</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="83.59604"/>
</Layer>
<Layer>
<Name>Country Boundaries</Name>
<Title>Country Boundaries</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="83.60416"/>
</Layer>
<Layer>
<Name>Country Boundaries</Name>
<Title>Country Boundaries</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="83.60416"/>
</Layer>
<Layer>
<Name>Country Boundaries</Name>
<Title>Country Boundaries</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="83.6236"/>
</Layer>
<Layer>
<Name>Water Bodies</Name>
<Title>Water Bodies</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-165.6504" miny="-54.59565" maxx="176.0921" maxy="75.19975"/>
</Layer>
<Layer>
<Name>Water Bodies</Name>
<Title>Water Bodies</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
</Layer>
<Layer>
<Name>Streets and Railroads</Name>
<Title>Streets and Railroads</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-151.38846" miny="-54.660942" maxx="177.94148" maxy="70.43702"/>
</Layer>
<Layer>
<Name>Major Cities</Name>
<Title>Major Cities</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-175.2333" miny="-53.15728" maxx="179.21513" maxy="69.20603"/>
</Layer>
<Layer>
<Name>Major Cities</Name>
<Title>Major Cities</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-175.2333" miny="-53.15728" maxx="179.21513" maxy="69.20603"/>
</Layer>
<Layer>
<Name>Major Cities</Name>
<Title>Major Cities</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-175.2333" miny="-53.15728" maxx="179.21513" maxy="69.20603"/>
</Layer>
<Layer>
<Name>Boundary Lines</Name>
<Title>Boundary Lines</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
</Layer>
<Layer>
<Name>Land and Oceans</Name>
<Title>Land and Oceans</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.002" miny="-90.0" maxx="180.0" maxy="90.0"/>
</Layer>
<Layer>
<Name>Water Bodies</Name>
<Title>Water Bodies</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="83.57595"/>
</Layer>
<Layer>
<Name>Rivers</Name>
<Title>Rivers</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
</Layer>
<Layer>
<Name>Populated Places</Name>
<Title>Populated Places</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-179.12961" miny="-53.167423" maxx="178.44325" maxy="70.99273"/>
</Layer>
<Layer>
<Name>Drainage Lines</Name>
<Title>Drainage Lines</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="83.62305"/>
</Layer>
<Layer>
<Name>Boundaries</Name>
<Title>Boundaries</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-180.002" miny="-90.0" maxx="180.0" maxy="90.0"/>
</Layer>
<Layer>
<Name>Major Roads</Name>
<Title>Major Roads</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-179.99942" miny="-54.888023" maxx="179.99942" maxy="77.22398"/>
</Layer>
<Layer>
<Name>Major Railroads</Name>
<Title>Major Railroads</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-165.25838" miny="-53.138424" maxx="179.6099" maxy="78.167984"/>
</Layer>
<Layer>
<Name>Airports</Name>
<Title>Airports</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-179.30453" miny="-54.9172" maxx="179.27922" maxy="81.15828"/>
</Layer>
<Layer>
<Name>Place names</Name>
<Title>Place names</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-179.98932" miny="-54.94738" maxx="179.99698" maxy="81.79342"/>
</Layer>
<Layer>
<Name>Populated Places</Name>
<Title>Populated Places</Title>
<SRS>EPSG:4326</SRS>
<LatLonBoundingBox minx="-179.98549" miny="-54.96569" maxx="179.90654" maxy="81.80138"/>
</Layer>
</Layer>
</Capability>
</WMT_MS_Capabilities>
------------------------------------------------------------------------


-- 
Håvard Tveite                      Phone:  +47 64948857
Department of Mapping Sciences     Fax:    +47 64948856
Agricultural University of Norway
POBox 5034, N-1432 Ås, NORWAY    http://www.nlh.no/ikf/



More information about the mapserver-users mailing list