I have a basic installation problem with QGIS.
I am setting up an Intel server running Ubuntu Linux 20.04 with an Apache2 HTTP server for our local volunteer Bush Fire Brigades in Margaret River, Western Australia.
Everything seems to be operational with the exception of QGIS on the HTML \ HTTP web server side.
I have created a separate QGIS directory in the home directory area and have set the user and group ownership to the operating user and group (administrator). There do not seem to be any permissions problems.
Within this directory I have placed the projects directory and there is a qgisserverdb directory.
The default .qgs file is set to /home/qgis/projects/world.qgs .
The QGIS desktop application is installed and is running ok. It displays the world.qgs file without any problems with the exception of an older version warning.
If I use either URL
http://qgis/cgi-bin/qgis_mapserv.fcgi?service=WMS&request=GetCapabilities
or
http://qgis/cgi-bin/qgis_mapserv.fcgi?service=WMS&request=GetCapabilities&map=/home/qgis/projects/world.qgs
in the browser (Chromium or Firefox) I get the following error message :-
This XML file does not appear to have any style information associated with it. The document tree is shown below.
followed by the attached XML file.
How do I solve this problem? I have looked extensively on the Internet and have not been able to find a solution.
Many Thanks
Yours Sincerely
Kim Lyon
[email protected]
MargaretRiver.info
<?xml version="1.0" encoding="utf-8"?> <WMS_Capabilities version="1.3.0" xsi:schemaLocation="http://www.opengis.net/wms http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd http://www.opengis.net/sld http://schemas.opengis.net/sld/1.1.0/sld_capabilities.xsd http://www.qgis.org/wms http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&SERVICE=WMS&REQUEST=GetSchemaExtension" xmlns="http://www.opengis.net/wms" xmlns:sld="http://www.opengis.net/sld" xmlns:qgs="http://www.qgis.org/wms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Service> <Name>WMS</Name> <Title>QGIS Server Demo</Title> <Abstract><![CDATA[This is a simple World map that showcases QGIS Server capabilities.]]></Abstract> <KeywordList> <Keyword vocabulary="ISO">infoMapAccessService</Keyword> <Keyword>QGIS Server World</Keyword> </KeywordList> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> <ContactInformation> <ContactPersonPrimary> <ContactPerson>Tudor Bărăscu</ContactPerson> <ContactOrganization>qgis.org</ContactOrganization> </ContactPersonPrimary> <ContactElectronicMailAddress>[email protected]</ContactElectronicMailAddress> </ContactInformation> <Fees>conditions unknown</Fees> <AccessConstraints>None</AccessConstraints> </Service> <Capability> <Request> <GetCapabilities> <Format>text/xml</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </Get> </HTTP> </DCPType> </GetCapabilities> <GetMap> <Format>image/jpeg</Format> <Format>image/png</Format> <Format>image/png; mode=16bit</Format> <Format>image/png; mode=8bit</Format> <Format>image/png; mode=1bit</Format> <Format>application/dxf</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </Get> </HTTP> </DCPType> </GetMap> <GetFeatureInfo> <Format>text/plain</Format> <Format>text/html</Format> <Format>text/xml</Format> <Format>application/vnd.ogc.gml</Format> <Format>application/vnd.ogc.gml/3.1.1</Format> <Format>application/json</Format> <Format>application/geo+json</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </Get> </HTTP> </DCPType> </GetFeatureInfo> <sld:GetLegendGraphic> <Format>image/jpeg</Format> <Format>image/png</Format> <Format>application/json</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </Get> </HTTP> </DCPType> </sld:GetLegendGraphic> <sld:DescribeLayer> <Format>text/xml</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </Get> </HTTP> </DCPType> </sld:DescribeLayer> <qgs:GetStyles> <Format>text/xml</Format> <DCPType> <HTTP> <Get> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </Get> </HTTP> </DCPType> </qgs:GetStyles> </Request> <Exception> <Format>XML</Format> </Exception> <sld:UserDefinedSymbolization UserStyle="1" InlineFeature="0" RemoteWCS="0" UserLayer="0" SupportSLD="1" RemoteWFS="0"/> <Layer queryable="1"> <Title>QGIS Server Demo</Title> <Abstract><![CDATA[This is a simple World map that showcases QGIS Server capabilities.]]></Abstract> <KeywordList> <Keyword vocabulary="ISO">infoMapAccessService</Keyword> <Keyword>QGIS Server World</Keyword> </KeywordList> <CRS>CRS:84</CRS> <CRS>EPSG:3857</CRS> <CRS>EPSG:900913</CRS> <CRS>EPSG:4326</CRS> <EX_GeographicBoundingBox> <westBoundLongitude>-189</westBoundLongitude> <eastBoundLongitude>189</eastBoundLongitude> <southBoundLatitude>-123</southBoundLatitude> <northBoundLatitude>118</northBoundLatitude> </EX_GeographicBoundingBox> <BoundingBox maxx="118" minx="-123" CRS="EPSG:4326" maxy="189" miny="-189"/> <BoundingBox maxx="19960441.004" minx="-19960441.004" CRS="EPSG:900913" maxy="30772816.154" miny="-19293806.199"/> <BoundingBox maxx="19960441.004" minx="-19960441.004" CRS="EPSG:3857" maxy="30772816.154" miny="-19293806.199"/> <Layer queryable="1"> <Name>airports</Name> <Title>airports</Title> <CRS>CRS:84</CRS> <CRS>EPSG:3857</CRS> <CRS>EPSG:900913</CRS> <CRS>EPSG:4326</CRS> <EX_GeographicBoundingBox> <westBoundLongitude>-175.135635</westBoundLongitude> <eastBoundLongitude>179.195443</eastBoundLongitude> <southBoundLatitude>-53.781475</southBoundLatitude> <northBoundLatitude>78.246717</northBoundLatitude> </EX_GeographicBoundingBox> <BoundingBox maxx="78.246717" minx="-53.781475" CRS="EPSG:4326" maxy="179.195443" miny="-175.135635"/> <BoundingBox maxx="19947945.359" minx="-19496009.708" CRS="EPSG:900913" maxy="14502137.594" miny="-7128878.351"/> <BoundingBox maxx="19947945.359" minx="-19496009.708" CRS="EPSG:3857" maxy="14502137.594" miny="-7128878.351"/> <Style> <Name>default</Name> <Title>default</Title> <LegendURL> <Format>image/png</Format> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphic&LAYER=airports&FORMAT=image/png&STYLE=default&SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </LegendURL> </Style> <MinScaleDenominator>1</MinScaleDenominator> <MaxScaleDenominator>3.66192e+06</MaxScaleDenominator> </Layer> <Layer queryable="1"> <Name>places</Name> <Title>places</Title> <CRS>CRS:84</CRS> <CRS>EPSG:3857</CRS> <CRS>EPSG:900913</CRS> <CRS>EPSG:4326</CRS> <EX_GeographicBoundingBox> <westBoundLongitude>-175.220565</westBoundLongitude> <eastBoundLongitude>179.216648</eastBoundLongitude> <southBoundLatitude>-41.299974</southBoundLatitude> <northBoundLatitude>64.150024</northBoundLatitude> </EX_GeographicBoundingBox> <BoundingBox maxx="64.150024" minx="-41.299974" CRS="EPSG:4326" maxy="179.216648" miny="-175.220565"/> <BoundingBox maxx="19950305.897" minx="-19505464.015" CRS="EPSG:900913" maxy="9387963.682" miny="-5056688.948"/> <BoundingBox maxx="19950305.897" minx="-19505464.015" CRS="EPSG:3857" maxy="9387963.682" miny="-5056688.948"/> <Style> <Name>default</Name> <Title>default</Title> <LegendURL> <Format>image/png</Format> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphic&LAYER=places&FORMAT=image/png&STYLE=default&SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </LegendURL> </Style> </Layer> <Layer queryable="1"> <Name>countries</Name> <Title>countries</Title> <CRS>CRS:84</CRS> <CRS>EPSG:3857</CRS> <CRS>EPSG:900913</CRS> <CRS>EPSG:4326</CRS> <EX_GeographicBoundingBox> <westBoundLongitude>-180</westBoundLongitude> <eastBoundLongitude>180</eastBoundLongitude> <southBoundLatitude>-90</southBoundLatitude> <northBoundLatitude>83.623597</northBoundLatitude> </EX_GeographicBoundingBox> <BoundingBox maxx="83.623597" minx="-90" CRS="EPSG:4326" maxy="180" miny="-180"/> <BoundingBox maxx="20037508.343" minx="-20037508.343" CRS="EPSG:900913" maxy="18418382.138" miny="-17054781.687"/> <BoundingBox maxx="20037508.343" minx="-20037508.343" CRS="EPSG:3857" maxy="18418382.138" miny="-17054781.687"/> <Style> <Name>classified_by_name</Name> <Title>classified_by_name</Title> <LegendURL> <Format>image/png</Format> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphic&LAYER=countries&FORMAT=image/png&STYLE=classified_by_name&SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </LegendURL> </Style> <Style> <Name>classified_by_population</Name> <Title>classified_by_population</Title> <LegendURL> <Format>image/png</Format> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphic&LAYER=countries&FORMAT=image/png&STYLE=classified_by_population&SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </LegendURL> </Style> </Layer> <Layer queryable="1"> <Name>countries_shapeburst</Name> <Title>countries_shapeburst</Title> <CRS>CRS:84</CRS> <CRS>EPSG:3857</CRS> <CRS>EPSG:900913</CRS> <CRS>EPSG:4326</CRS> <EX_GeographicBoundingBox> <westBoundLongitude>-180</westBoundLongitude> <eastBoundLongitude>180</eastBoundLongitude> <southBoundLatitude>-90</southBoundLatitude> <northBoundLatitude>83.623597</northBoundLatitude> </EX_GeographicBoundingBox> <BoundingBox maxx="83.623597" minx="-90" CRS="EPSG:4326" maxy="180" miny="-180"/> <BoundingBox maxx="20037508.343" minx="-20037508.343" CRS="EPSG:900913" maxy="18418382.138" miny="-17054781.687"/> <BoundingBox maxx="20037508.343" minx="-20037508.343" CRS="EPSG:3857" maxy="18418382.138" miny="-17054781.687"/> <Style> <Name>blue</Name> <Title>blue</Title> <LegendURL> <Format>image/png</Format> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphic&LAYER=countries_shapeburst&FORMAT=image/png&STYLE=blue&SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </LegendURL> </Style> <Style> <Name>default</Name> <Title>default</Title> <LegendURL> <Format>image/png</Format> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphic&LAYER=countries_shapeburst&FORMAT=image/png&STYLE=default&SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </LegendURL> </Style> <Style> <Name>green</Name> <Title>green</Title> <LegendURL> <Format>image/png</Format> <OnlineResource xlink:href="http://qgis/cgi-bin/qgis_mapserv.fcgi?MAP=/usr/lib/cgi-bin/projects/world.qgs&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetLegendGraphic&LAYER=countries_shapeburst&FORMAT=image/png&STYLE=green&SLD_VERSION=1.1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple"/> </LegendURL> </Style> <MinScaleDenominator>1</MinScaleDenominator> <MaxScaleDenominator>2.5e+08</MaxScaleDenominator> </Layer> </Layer> </Capability> </WMS_Capabilities>
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
