[Qgis-developer] qgis-mapserver error?

Paolo Cavallini cavallini at faunalia.it
Tue Mar 15 12:34:42 EDT 2011


On Tue, 15 Mar 2011 17:29:45 +0100, Andreas Neumann <a.neumann at carto.net>
wrote:
> Well, that is normal - it is not a complete URL. You need to specify 
>  the service (WMS) and the command 
>  (GetCapabilites,GetMap,GetFeatureInfo,GetLegendGraphic,GetPrint) with 
>  some additional parameters, depending on the command.
> 
>  The link you provide below is not complete and will in any case trigger

>  an error.

Yes, but from within QGIS I get this (I'm pretty sure it worked a few
weeks ago):

Could not understand the response.  The wms provider said:
Could not get WMS capabilities: unexpected character at line 1 column 50
This is probably due to an incorrect WMS Server URL.
Response was:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster at localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.17 (Debian) Server at localhost Port 80</address>
</body></html>
<WMS_Capabilities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.3.0" xmlns="http://www.opengis.net/wms"
xsi:schemaLocation="http://www.opengis.net/wms
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd">
 <Service>
  <Name>WMS</Name>
  <!-- Human-readable title for pick lists -->
  <Title>QGIS mapserver</Title>
  <!-- Narrative description providing additional information -->
  <Abstract>A WMS service with QGIS mapserver</Abstract>
  <KeywordList>
   <Keyword>QGIS mapserver</Keyword>
  </KeywordList>
  <!-- Top-level web address of service or service provider.  See also
OnlineResource
		     elements under <DCPType>. -->
  <OnlineResource xlink:type="simple"
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://www.sourcepole.ch/"/>
  <!-- Contact information -->
  <ContactInformation>
   <ContactPersonPrimary>
    <ContactPerson>Marco Hugentobler</ContactPerson>
    <ContactOrganization>Sourcepole AG</ContactOrganization>
   </ContactPersonPrimary>
   <ContactAddress>
    <AddressType>postal</AddressType>
    <Address>Elestastr. 18</Address>
    <City>Bad Ragaz</City>
    <StateOrProvince>SG</StateOrProvince>
    <PostCode>7310</PostCode>
    <Country>SWITZERLAND</Country>
   </ContactAddress>
   <ContactVoiceTelephone>+41 43 377 08 21</ContactVoiceTelephone>
  
<ContactElectronicMailAddress>marco.hugentobler at sourcepole.ch</ContactElectronicMailAddress>
  </ContactInformation>
  <!-- Fees or access constraints imposed. -->
  <Fees>none</Fees>
  <AccessConstraints>none</AccessConstraints>
  <LayerLimit>99</LayerLimit>
 </Service>
 <Capability>
  <Request>
   <GetCapabilities>
    <Format>text/xml</Format>
    <DCPType>
     <HTTP>
      <Get>
       <OnlineResource xlink:type="simple"
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi?"/>
      </Get>
     </HTTP>
    </DCPType>
   </GetCapabilities>
   <GetMap>
    <Format>image/jpeg</Format>
    <Format>image/png</Format>
    <DCPType>
     <HTTP>
      <Get>
       <OnlineResource xlink:type="simple"
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi?"/>
      </Get>
     </HTTP>
    </DCPType>
   </GetMap>
   <GetFeatureInfo>
    <Format>text/plain</Format>
    <Format>text/html</Format>
    <Format>text/xml</Format>
    <DCPType>
     <HTTP>
      <Get>
       <OnlineResource xlink:type="simple"
xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi?"/>
      </Get>
     </HTTP>
    </DCPType>
   </GetFeatureInfo>
  </Request>
  <Exception>
   <Format>text/xml</Format>
  </Exception>
  <Layer>
   <Name></Name>
   <Title></Title>
   <Layer queryable="1">
    <Name>province</Name>
    <Title>province</Title>
    <Abstract/>
    <CRS>EPSG:3003</CRS>
    <EX_GeographicBoundingBox>
     <westBoundLongitude>-4.35611</westBoundLongitude>
     <eastBoundLongitude>-4.35611</eastBoundLongitude>
     <southBoundLatitude>0</southBoundLatitude>
     <northBoundLatitude>0</northBoundLatitude>
    </EX_GeographicBoundingBox>
    <BoundingBox CRS="EPSG:3003" maxx="0" minx="0" maxy="0" miny="0"/>
    <Style>
     <Name>default</Name>
     <Title>default</Title>
    </Style>
   </Layer>
   <Layer queryable="1">
    <Name>tows:province</Name>
    <Title>tows:province</Title>
    <Abstract/>
    <CRS>EPSG:3003</CRS>
    <CRS>EPSG:4326</CRS>
    <EX_GeographicBoundingBox>
     <westBoundLongitude>7.4619</westBoundLongitude>
     <eastBoundLongitude>12.4127</eastBoundLongitude>
     <southBoundLatitude>42.0044</southBoundLatitude>
     <northBoundLatitude>44.4754</northBoundLatitude>
    </EX_GeographicBoundingBox>
    <BoundingBox CRS="EPSG:3003" maxx="1.77167e+06" minx="1.37765e+06"
maxy="4.92478e+06" miny="4.65555e+06"/>
    <Style>
     <Name>default</Name>
     <Title>default</Title>
    </Style>
   </Layer>
   <Layer queryable="1">
    <Name>province</Name>
    <Title>province</Title>
    <Abstract/>
    <CRS>EPSG:3003</CRS>
    <CRS>EPSG:4326</CRS>
    <EX_GeographicBoundingBox>
     <westBoundLongitude>9.6635</westBoundLongitude>
     <eastBoundLongitude>12.4127</eastBoundLongitude>
     <southBoundLatitude>42.209</southBoundLatitude>
     <northBoundLatitude>44.4734</northBoundLatitude>
    </EX_GeographicBoundingBox>
    <BoundingBox CRS="EPSG:3003" maxx="1.77167e+06" minx="1.55473e+06"
maxy="4.92478e+06" miny="4.67831e+06"/>
    <Style>
     <Name>default</Name>
     <Title>default</Title>
    </Style>
   </Layer>
  </Layer>
 </Capability>
</WMS_Capabilities>

Tried URL:
http://localhost/cgi-bin/toscana/qgis_mapserv.fcgi?SERVICE=WMS&REQUEST=GetCapabilities
-- 
http://faunalia.it/pc


More information about the Qgis-developer mailing list