Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS not able to access WMTS (GeoServer specific?) #17173

Closed
qgib opened this issue Aug 2, 2013 · 11 comments
Closed

QGIS not able to access WMTS (GeoServer specific?) #17173

qgib opened this issue Aug 2, 2013 · 11 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Aug 2, 2013

Author Name: Jonathan Moules (Jonathan Moules)
Original Redmine Issue: 8401
Affected QGIS version: master


QGIS can't seem to access my WMTS (GeoServer 2.3.4). I can see it has made the request in the access logs, and the same URL works fine in the browser (and ArcMap can access it fine too), so I'm concluding it's a QGIS issue.

When I click "connect" it swaps to the "server search" tab. But there's nothing listed. I didn't tick any of the boxes for the connection.

My GeoServer isn't publicly available (security approval required - ongoing). I can't get my QGIS to access the internet either (it doesn't like our proxy) so can't test other WMTS'.

Attached is the GetCapabilities.


@qgib
Copy link
Contributor Author

qgib commented Aug 7, 2013

Author Name: Jonathan Moules (Jonathan Moules)


Turns out this is different to #17178

Further to that bug report I've expanded the URL but it hasn't fixed the issue.
This URL works fine in the browser and returns the previously attached file.

http://wppgeog3:8082/geoserver/gwc/service/wmts?SERVICE=WMTS&REQUEST=GetCapabilities

@qgib
Copy link
Contributor Author

qgib commented Nov 15, 2013

Author Name: Moreno Comelli (Moreno Comelli)


Found the same problem (QGIS 2.1 on WinXP 64): WMTS provided by default Mapcache 'demo' page works on QGIS 1.8 and 2.0, not on master version.
The map extension is correct, but the WMS log reports 'image is NULL' and:

Download of GetLegendGraphic failed: Error downloading http://192.168.122.128/mapcache/?SERVICE=WMS&VERSION=1.1.1&SLD_VERSION=1.1.0&REQUEST=GetLegendGraphic&LAYER=test&STYLE=default&SCALE=235105735.596957&FORMAT=image/png - server replied: Method Not Implemented

@qgib
Copy link
Contributor Author

qgib commented Nov 15, 2013

Author Name: Richard Duivenvoorde (@rduivenvoorde)


#17713 has a public url to test

@qgib
Copy link
Contributor Author

qgib commented Nov 15, 2013

Author Name: Jürgen Fischer (@jef-n)


fixed in 836e1a8


  • resolution was changed from to fixed/implemented
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Nov 15, 2013

Author Name: Jürgen Fischer (@jef-n)


Jürgen Fischer wrote:

fixed in 836e1a8

Um, might actually be something different. That fixes the problems after GetLegendGraphic failed. Feel free to reopen.

@qgib
Copy link
Contributor Author

qgib commented Nov 25, 2013

Author Name: Jonathan Moules (Jonathan Moules)


Would this be in the build weekly QGIS-OSGeo4W-2.1.0-46-Setup-x86_64.exe - 18-Nov-2013 20:22 - number e882e47 from - http://qgis.org/downloads/weekly/?

Because if it is, this bug isn't fixed - I'm still getting the exact same behaviour.


  • status_id was changed from Closed to Reopened

@qgib
Copy link
Contributor Author

qgib commented Nov 25, 2013

Author Name: Jonathan Moules (Jonathan Moules)


You can test with - http://maps.warwickshire.gov.uk/gs/gwc/service/wmts?REQUEST=GetCapabilities

@qgib
Copy link
Contributor Author

qgib commented Nov 25, 2013

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "c321f597fd814f963cc55ec3edfbe708fcf37a45".


  • status_id was changed from Reopened to Closed

@qgib
Copy link
Contributor Author

qgib commented Nov 25, 2013

Author Name: Jonathan Moules (Jonathan Moules)


Thanks! I guess that'll be in tonight's weekly build?

@qgib
Copy link
Contributor Author

qgib commented Nov 25, 2013

Author Name: Richard Duivenvoorde (@rduivenvoorde)


Hi Jonathan, looking into the fix of jurgen, it seems there is was a missing default style.

So I thought to check the validity of the capabilities (using xmllint) and as you can see below it is just not valid against it's schema (it is missing a Style element :-) )

So maybe try to create a style for that layer (maybe that helps)? Or otherwise issue a bug against the software (Geowebcache/Geoserver?)?

If I take one of the national dutch wmts services (also running geowebcache I think...), these are validating:
http://geodata.nationaalgeoregister.nl/tiles/service/wmts/aan?VERSION=1.0.0&request=GetCapabilities

Below the command for the validation of your service:

richard@kwik:/tmp$ xmllint --noout --schema http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd wmts-getcapabilities.xml 
wmts-getcapabilities.xml:60: element Format: Schemas validity error : Element '{http://www.opengis.net/wmts/1.0}Format': This element is not expected. Expected is one of ( {http://www.opengis.net/ows/1.1}BoundingBox, {http://www.opengis.net/ows/1.1}WGS84BoundingBox, {http://www.opengis.net/ows/1.1}Metadata, {http://www.opengis.net/ows/1.1}DatasetDescriptionSummary, {http://www.opengis.net/wmts/1.0}Layer, {http://www.opengis.net/wmts/1.0}Style ).
wmts-getcapabilities.xml:185: element Format: Schemas validity error : Element '{http://www.opengis.net/wmts/1.0}Format': This element is not expected. Expected is one of ( {http://www.opengis.net/ows/1.1}BoundingBox, {http://www.opengis.net/ows/1.1}WGS84BoundingBox, {http://www.opengis.net/ows/1.1}Metadata, {http://www.opengis.net/ows/1.1}DatasetDescriptionSummary, {http://www.opengis.net/wmts/1.0}Layer, {http://www.opengis.net/wmts/1.0}Style ).
wmts-getcapabilities.xml:306: element Format: Schemas validity error : Element '{http://www.opengis.net/wmts/1.0}Format': This element is not expected. Expected is one of ( {http://www.opengis.net/ows/1.1}BoundingBox, {http://www.opengis.net/ows/1.1}WGS84BoundingBox, {http://www.opengis.net/ows/1.1}Metadata, {http://www.opengis.net/ows/1.1}DatasetDescriptionSummary, {http://www.opengis.net/wmts/1.0}Layer, {http://www.opengis.net/wmts/1.0}Style ).

@qgib
Copy link
Contributor Author

qgib commented Nov 26, 2013

Author Name: Jonathan Moules (Jonathan Moules)


That's fixed it.
And wow, this is awesome. Compare it to the ArcGIS WMTS implementation which is utterly awful and totally unusable. Go QGIS! :-)

Oh, and GeoServer ticket opened and acknowledged as a bug - https://jira.codehaus.org/browse/GEOS-6190

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant