[Qgis-developer] Error connecting QGIS 1.9.0 to Ortho Refresh WCS
Bruce, Bob (CON)
Bob.Bruce at gov.mb.ca
Fri Jan 18 09:07:20 PST 2013
Radim,
Thanks for looking into this for me. I did for sure use the URL for the basic access, I was depending upon QGIS to add the parameters for the service and the request to the URL when it generates a particular request. I am not surprised that the response is slow for a large area because this is .5m pixel imagery so we will want to request a small area. I am doing that by just displaying downtown Winnipeg, an area of about 1.5km X 1.5km (I know, we are small). I am not having problems connecting to the service, only when trying to add it to my project.
Thanks again,
Bob Bruce
-----Original Message-----
From: Radim Blazek [mailto:radim.blazek at gmail.com]
Sent: January-18-13 3:28 AM
To: Bruce, Bob (CON)
Cc: Qgis-Developer; ekeighan at cubewerx.com
Subject: Re: [Qgis-developer] Error connecting QGIS 1.9.0 to Ortho Refresh WCS
I don't see the same problem here. GetCapabilities and
DescribeCoverage are not mixed together here. Could it be that you
accidentally used GetCapabilities request URL as "URL" parameter in
connection details dialog and it was logged on server but that is
another issue?
I have got another error however. DescribeCoverage is successfully
received and parsed, then QGIS sends test GetCoverage request (10x10
raster to get more info):
http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG=OIM_Ortho_Refresh_2010&DATASTORE=OIM_Ortho_Refresh_2010_store&&SERVICE=WCS&VERSION=1.0.0&REQUEST=GetCoverage&FORMAT=GeoTIFF&COVERAGE=image_set&BBOX=-101.9598305476503981,48.7910076027865429,-94.6376374194891667,52.5230584889113814&CRS=EPSG:4326&RESPONSE_CRS=EPSG:4326&WIDTH=10&HEIGHT=10
and it fails on server side with:
"Gateway Time-out
The gateway did not receive a timely response from the upstream server
or application."
Because the request covers the whole extent, it could be that the
raster is quite large and there are no overviews/pyramids ready on
server, it starts to do resampling of the whole extent but it takes to
much time?
BTW, you can find some interesting info in QGIS Settings > Panels >
Log Messages - WCS tab or in debug messages. In log messages are
usually printed requests which failed and in debug messages are
printed all requests.
Radim
On Thu, Jan 17, 2013 at 11:07 PM, Bruce, Bob (CON) <Bob.Bruce at gov.mb.ca> wrote:
> I am having trouble using the WCS capability in version 1.9.0 code revision f210668
> Here are the full details of the QGIS version from the Help listing:
>
> QGIS version 1.9.0-Master QGIS code revision f210668
> Compiled against Qt 4.7.1 Running against Qt 4.7.1
> Compiled against GDAL/OGR 1.9.2 Running against GDAL/OGR 1.9.2
> GEOS Version 3.3.5 PostgreSQL Client Version 8.3.10
> SpatiaLite Version 3.0.1 QWT Version 5.2.1
> PROJ.4 Version 480 QScintilla2 Version 2.6.2
> This copy of QGIS writes debugging output.
>
> The URL that I am connecting to is: http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG=OIM_Ortho_Refresh_2010&DATASTORE=OIM_Ortho_Refresh_2010_store
> The URL of the GetCapabilities request is: http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG=OIM_Ortho_Refresh_2010&VERSION=1.0.0&SERVICE=WCS&DATASTORE=OIM_Ortho_Refresh_2010_store&REQUEST=GetCapabilities
>
> According to Cubewerx, who is our imagery OGC WCS service provider, their log shows both the GetCapabilities and GetCoverage requests present in the same HTTP request while they should be done separately.
>
> This is the request that they are finding in their server log:
> 2012-11-15 19:06:00.980 10527 received HTTP GET request from 205.200.189.2 to URL "http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG=OIM_Ortho_Refresh_2010&DATASTORE=OIM_Ortho_Refresh_2010_store&service=wcs&version=1.1.1&REQUEST=DescribeCoverage&COVERAGE=OIM_Ortho_Refresh_2010_store&SERVICE=WCS&REQUEST=GetCapabilities&AcceptVersions=1.1.0,1.0.0"
>
> Is there a fix to this problem available in a later version of QGIS?
>
> Here is the error report that I am seeing in QGIS when I try and add this data source to the project:
> WCS provider: Cannot calculate extent
> (d:\src\qgis\src\providers\wcs\qgswcsprovider.cpp : 188 : QgsWcsProvider::QgsWcsProvider)
> Raster layer: Provider is not valid (provider: wcs, URI: cache=AlwaysCache&crs=EPSG:26914&format=GeoTIFF&identifier=image_set&url=http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG% 3DOIM_Ortho_Refresh_2010%26DATASTORE%3DOIM_Ortho_Refresh_2010_store
> (d:\src\qgis\src\core\raster\qgsrasterlayer.cpp : 1609 : QgsRasterLayer::setDataProvider)
>
> Thanks,
> Bob Bruce
>
> From: ekeighan [mailto:ekeighan at cubewerx.com]
> Sent: January-17-13 3:33 PM
> To: Bruce, Bob (CON)
> Subject: Re: Error connecting QGIS 1.9.0 to Ortho Refresh WCS
>
> Bob,
>
> FYI...
>
> ekeighan at cubewerx.com wrote:
>
> *Raster layer:* Provider is not valid (provider: wcs, URI:
> cache=AlwaysCache&crs=EPSG:26914&format=GeoTIFF&identifier=image_set&url=http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG%3DOIM_Ortho_Refresh_2010%26DATASTORE%3DOIM_Ortho_Refresh_2010_store
> (d:\src\qgis\src\core\raster\qgsrasterlayer.cpp : 1609 :
> QgsRasterLayer::setDataProvider)
>
> Is there something at your end that could be changed to allow this to
> calculate the extent?
> Looking through the server log, we see only the following related request
> present twice:
>
> 2012-11-15 19:06:00.980 10527 received HTTP GET request from 205.200.189.2 to URL "http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG=OIM_Ortho_Refresh_2010&DATASTORE=OIM_Ortho_Refresh_2010_store&service=wcs&version=1.1.1&REQUEST=DescribeCoverage&COVERAGE=OIM_Ortho_Refresh_2010_store&SERVICE=WCS&REQUEST=GetCapabilities&AcceptVersions=1.1.0,1.0.0"
>
> ---------------------------------------------------------------
>
> This doesn't make any sense, since it contains two different REQUEST arguments, one for DescribeCoverage and another for GetCapabilities.
> The Qgs error suggests that the base URL it's using is:
>
> http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG%3DOIM_Ortho_Refresh_2010%26DATASTORE%3DOIM_Ortho_Refresh_2010_store
>
> but it almost seems as though it was entered improperly as:
>
> http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG=OIM_Ortho_Refresh_2010&DATASTORE=OIM_Ortho_Refresh_2010_store&service=wcs&version=1.1.1&REQUEST=DescribeCoverage&COVERAGE=OIM_Ortho_Refresh_2010_store
>
> The WCS request received from the client produces an error return, since
> the server has problems parsing the broken request:
>
> <ExceptionReport version="1.1.0" xml:lang="en"
> xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.cubewerx.com/schemas/ows/1.1.0/owsExceptionReport.xsd">
> <Exception exceptionCode="MissingParameterValue" locator="identifiers">
> <ExceptionText>CubeSERV: Cannot execute WCS request, raised in Wcs_Execute() in file "wcs.c" line 162</ExceptionText>
> <ExceptionText>CubeSERV: Missing parameter "identifiers", raised in throwMissingParamError() in file "cw_cgiparams.c" line 797</ExceptionText>
> </Exception>
> </ExceptionReport>
>
> The first request from the client should be just a proper GetCapabilities
> request:
>
> http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG=OIM_Ortho_Refresh_2010&DATASTORE=OIM_Ortho_Refresh_2010_store&SERVICE=WCS&REQUEST=GetCapabilities&AcceptVersions=1.1.0,1.0.0
>
> which returns the expected data.
> -------------------------------------------------
>
> Regards,
>
> Edric
>
> On 17/01/2013 3:35 PM, Bruce, Bob (CON) wrote:
> Edric,
> I took another look at connecting QGIS to your WCS, using a newer beta test version. It provided a mechanism to connect to the WCS and it allowed me to try and add it to my map. When I tried to add it I got the following message:
>
> WCS provider: Cannot calculate extent
> (d:\src\qgis\src\providers\wcs\qgswcsprovider.cpp : 188 : QgsWcsProvider::QgsWcsProvider)
> Raster layer: Provider is not valid (provider: wcs, URI: cache=AlwaysCache&crs=EPSG:26914&format=GeoTIFF&identifier=image_set&url=http://nis.cubewerx.com/cubewerx/cubeserv.cgi?CONFIG%3DOIM_Ortho_Refresh_2010%26DATASTORE%3DOIM_Ortho_Refresh_2010_store
> (d:\src\qgis\src\core\raster\qgsrasterlayer.cpp : 1609 : QgsRasterLayer::setDataProvider)
>
> Is there something at your end that could be changed to allow this to calculate the extent?
>
> Thanks,
> Bob
>
> *******************************************************************************************************************
> ** Bob Bruce, FEC, P.Eng. Geomatics Support Engineer
> ** Bob.Bruce at gov.mb.ca Geospatial Technology Services Management
> ** work # (204) 945-6636 GeoManitoba, Manitoba Conservation and Water Stewardship
> ** FAX # (204) 945-1365 1007 Century Street,
> ** Winnipeg, Manitoba, Canada, R3H 0W4
> ** 49-54-31.85N,97-12-16.08W
> **
> ** Check out our digital maps at: http://mli2.gov.mb.ca/
> ** and WMS: http://mlidata.gov.mb.ca/wms/request.aspx
> *******************************************************************************************************************
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
More information about the Qgis-developer
mailing list