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

WMTS client : selector for WMTS dimensions - only odd lines are displayed - crash if confirm #16605

Closed
qgib opened this issue Apr 23, 2013 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Apr 23, 2013

Author Name: Yves Blatti (Yves Blatti)
Original Redmine Issue: 7690
Affected QGIS version: master
Redmine category:web_services_clients/wms


In QGIS trunk (3bd21bc):
If I try to add a WMTS service with multiple dimensions, only odd lines are displayed with content (see screenshot).

!qgis_wmts_dim_select.png!

If I press OK, QGIS crashes.

Extract of GetCapabilities (with dimensions)
(Service provided by Mapserver Mapcache)

<code class="xml">
[...]
<Contents>
    <Layer>
      <ows:Title>Fond de plan test WMTS</ows:Title>
      <ows:Abstract>Service abstract</ows:Abstract>
      <ows:Identifier>mylayer</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>default</ows:Identifier>
      </Style>
      <Format>image/png</Format>
      <Dimension>
        <ows:Identifier>DIM1</ows:Identifier>
        <Default>defaultDim1</Default>
        <Value>defaultDim1</Value>
        <Value>valueDim1-1</Value>
        <Value>valueDim1-2</Value>
      </Dimension>
      <Dimension>
        <ows:Identifier>DIM2</ows:Identifier>
        <Default>defaultDim2</Default>
        <Value>defaultDim2</Value>
        <Value>valueDim2-1</Value>
        <Value>valueDim2-2</Value>
      </Dimension>
      <Dimension>
        <ows:Identifier>DIM3</ows:Identifier>
        <Default>defaultDim3</Default>
        <Value>defaultDim3</Value>
        <Value>valueDim3-1</Value>
        <Value>valueDim3-2</Value>
      </Dimension>
      <Dimension>
        <ows:Identifier>DIM4</ows:Identifier>
        <Default>defaultDim4</Default>
        <Value>defaultDim4</Value>
        <Value>valueDim1-1</Value>
        <Value>valueDim1-2</Value>
      </Dimension>
      <Dimension>
        <ows:Identifier>ELEVATION</ows:Identifier>
        <Default>0</Default>
        <Value>0</Value>
      </Dimension>
      <ResourceURL format="image/png" resourceType="tile" template="http://myserver.ch/wmts/1.0.0/mylayer/default/{DIM1}/{ELEVATION}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png"/>
      <TileMatrixSetLink>
        <TileMatrixSet>21781</TileMatrixSet>
      </TileMatrixSetLink>
    </Layer>
[...]
</code>

Note: On a layer with only one dimension: no problemo...
Tested version: QGOS-dev (3bd21bc) from OSGeo4W
Tested on OS: Windows XP Pro SP3 32 and Windows 7 Pro 64


@qgib
Copy link
Contributor Author

qgib commented Apr 23, 2013

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


do you have a public server to test?

@qgib
Copy link
Contributor Author

qgib commented Apr 24, 2013

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


Fixed in changeset "17613e81c58127bfc74a40c1065a90443a83dfe4".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Apr 24, 2013

Author Name: Yves Blatti (Yves Blatti)


Not yet, but I can make something up for testing... (I just need a little time ;-) )

@qgib
Copy link
Contributor Author

qgib commented Apr 24, 2013

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


Yves Blatti wrote:

Not yet, but I can make something up for testing... (I just need a little time ;-) )

Little time I have ;)

@qgib
Copy link
Contributor Author

qgib commented Apr 24, 2013

Author Name: Yves Blatti (Yves Blatti)


Here you go: http://193.34.136.206/mapcache/wmts?service=wmts&request=getcapabilities&version=1.0.0
This service has two dimensions...
(demo: "here":http://193.34.136.206/mapcache/demo/wmts)
Tiles aren't pregenerated, and distant WMS is busy, so.. it'll be slow, but will expose the problem in QGIS.
Thanks for your time!

@qgib
Copy link
Contributor Author

qgib commented Apr 24, 2013

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


Yves Blatti wrote:

Here you go: http://193.34.136.206/mapcache/wmts?service=wmts&request=getcapabilities&version=1.0.0
This service has two dimensions...

ok, second issue also solved.

@qgib
Copy link
Contributor Author

qgib commented Apr 24, 2013

Author Name: Yves Blatti (Yves Blatti)


Quick and efficient, works perfectly!
Thanks!

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels 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! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant