Select to view content in your preferred language

WMTS from IGN is not working in ArcGIS online

3304
3
10-15-2013 05:39 AM
AlexandreECUVILLON1
Occasional Contributor
Hello,

I have the following problem : i am trying to add on a map a WMTS service, but it fails (nothing appears on the map). This WMTS service comes from IGN (french institute of cartography).

The WMTS is the following :
http://wxs.ign.fr/rro4opsv20m5v0htwm8t173u/geoportail/wmts

He's secured with a "referer" wich means the service accepts only request from arcgis online (https://MYSITE.maps.arcgis.com). Changing the referer to "http://arcgis.com" doesn't work either. This service uses a temporary development key (it's a technical test). Please note the service works, i.e. going to http://wxs.ign.fr/rro4opsv20m5v0htwm8t173u/geoportail/wmts?service=WMTS&version=1.0.0&request=GetCap... works.

When i'm adding the WMTS reference, i can see the following request behind the scene with a 500 HTTP error (internal server error) : https://civc.maps.arcgis.com/sharing/proxy?http://wxs.ign.fr/rro4opsv20m5v0htwm8t173u/geoportail/wmt....

Do you have any clue ?
Thank you very much !
Alex.
Tags (2)
0 Kudos
3 Replies
AlexandreECUVILLON1
Occasional Contributor
In fact, the WMTS does work with a strange behavior :
- i add the WMTS layer in the map -> it doesn't appear.
- then i have to configure the "scale of visibility" of the layer -> now, it does appear.

But why arcGIS online doesn't add the WMTS layer with the right scale ? I should not have to do such manipulation ... Is this a bug ?
0 Kudos
AlexandreECUVILLON1
Occasional Contributor
Any idea ? Is it a bug ? Will it be fixed ?
0 Kudos
MikeMinami
Esri Notable Contributor
I think the reason is because the order of the tiles in the TileMatrixSetLimits is not in order.  Should they be? The spec is not clear on this, as far as I can tell.  However, my guess is that arcgis.com is assuming that the values are in order and we're taking the extreme values.

Notice that the order in the TileMatrixSetLimits goes from 10,11, 12,13,14, 6, 7, 8, 9. 

If you look at the scale for 10 and 9, the extremes of the set you see:

Level 10 is this
<ScaleDenominator>545978.7734655447186469</ScaleDenominator>

And 9 is this

<ScaleDenominator>1091957.5469310886252288</ScaleDenominator>

These values match the scale visibility range we see in the web map for the layer:
For example, the scale range for the Carte du Relief�?? layer is:

minScale
577791.7098721985
maxScale
1155583.4197443961

So, if you have the ability to edit this service, try putting the scales in order.

We will need to evaluate this more and determine if a fix is warranted.


Here�??s the whole TileMatrixSetLimits�?�

<TileMatrixSetLimits>
<TileMatrixLimits>
<TileMatrix>10</TileMatrix>
<MinTileRow>342</MinTileRow>
<MaxTileRow>578</MaxTileRow>
<MinTileCol>5</MinTileCol>
<MaxTileCol>988</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>11</TileMatrix>
<MinTileRow>684</MinTileRow>
<MaxTileRow>1156</MaxTileRow>
<MinTileCol>10</MinTileCol>
<MaxTileCol>1976</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>12</TileMatrix>
<MinTileRow>1368</MinTileRow>
<MaxTileRow>2312</MaxTileRow>
<MinTileCol>20</MinTileCol>
<MaxTileCol>3953</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>13</TileMatrix>
<MinTileRow>2736</MinTileRow>
<MaxTileRow>4624</MaxTileRow>
<MinTileCol>40</MinTileCol>
<MaxTileCol>7906</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>14</TileMatrix>
<MinTileRow>5472</MinTileRow>
<MaxTileRow>9248</MaxTileRow>
<MinTileCol>81</MinTileCol>
<MaxTileCol>15812</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>6</TileMatrix>
<MinTileRow>21</MinTileRow>
<MaxTileRow>36</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>61</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>7</TileMatrix>
<MinTileRow>42</MinTileRow>
<MaxTileRow>72</MaxTileRow>
<MinTileCol>0</MinTileCol>
<MaxTileCol>123</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>8</TileMatrix>
<MinTileRow>85</MinTileRow>
<MaxTileRow>144</MaxTileRow>
<MinTileCol>1</MinTileCol>
<MaxTileCol>247</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>9</TileMatrix>
<MinTileRow>171</MinTileRow>
<MaxTileRow>289</MaxTileRow>
<MinTileCol>2</MinTileCol>
<MaxTileCol>494</MaxTileCol>
</TileMatrixLimits>
</TileMatrixSetLimits>


thanks,

Mike
0 Kudos