Ответ этого сервера на GetCapabilities выглядит у меня так:
Код: Выделить всё
<?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.6.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
<Service>
<Name>OGC:WMS</Name>
<Title>KurTuEsi</Title>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&"/>
<ContactInformation>
</ContactInformation>
</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://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&"/></Post>
</HTTP>
</DCPType>
</GetCapabilities>
<GetMap>
<Format>image/png</Format>
<Format>image/gif</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://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.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://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.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://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&"/></Post>
</HTTP>
</DCPType>
</DescribeLayer>
<GetLegendGraphic>
<Format>image/png</Format>
<Format>image/gif</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://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.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://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&"/></Get>
<Post><OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.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>kurtuesi_atlas</Name>
<Title>KurTuEsi</Title>
<Abstract>kurtuesi_atlas</Abstract>
<SRS>EPSG:3059</SRS>
<LatLonBoundingBox minx="20.4816" miny="55.4085" maxx="28.2198" maxy="58.3425" />
<Layer queryable="0" opaque="0" cascaded="0">
<Name>mezi</Name>
<Title>mezi</Title>
<LatLonBoundingBox minx="-179.734" miny="-8.2419e+12" maxx="178.781" maxy="8.2419e+12" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="56" height="23">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=mezi&format=image/png&STYLE=default"/>
</LegendURL>
</Style>
<ScaleHint min="0" max="124.725712107409" />
</Layer>
<Layer queryable="0" opaque="0" cascaded="0">
<Name>mezi_pirmie</Name>
<Title>mezi_pirmie</Title>
<LatLonBoundingBox minx="-179.734" miny="-8.2419e+12" maxx="178.781" maxy="8.2419e+12" />
<Style>
<Name>default</Name>
<Title>default</Title>
<LegendURL width="56" height="23">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://localhost/cgi-bin/mapserv?map=/var/www/html/tilecache_eglite.map&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=mezi_pirmie&format=image/png&STYLE=default"/>
</LegendURL>
</Style>
<ScaleHint min="129.714740591706" max="0" />
<!-- WARNING: Only MINSCALEDENOM and no MAXSCALEDENOM specified in the mapfile. A default value of 0 has been returned for the Max ScaleHint but this is probably not what you want. -->
</Layer>
</Layer>
</Capability>
</WMT_MS_Capabilities>
Так что да, там везде сплошной localhost прописан, и с одной стороны, QGIS ведет себя логично, следуя тому, что там написано. С другой - ситуация с тем, что capabilities отдается серверами некорректно - частая. И очень полезно было бы иметь какой-нибудь override-режим, который позволял бы подменять или форсировать отдельные параметры - имя хоста, токены (если используется авторизация с временными ключами), mime-типы тайлов, очень частая проблема - экстент, который отдается по умолчанию, и приводит к ошибкам.
Дабы не изобретать велосипед, например, в виде использования wms-минидрайвера в формате GDAL
http://www.gdal.org/frmt_wms.html