Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

ArcGIS online issue with mbtiles layers #10

Closed
kurt-hectic opened this issue Oct 4, 2013 · 8 comments
Closed

ArcGIS online issue with mbtiles layers #10

kurt-hectic opened this issue Oct 4, 2013 · 8 comments
Assignees

Comments

@kurt-hectic
Copy link

Hello,

I have noticed that ArcGIS online has a problem selecting the right layer when multiple mbtiles layers are made available by tileserver-php.

The map editor in ArcGIS allows to add an OGC WMTS layer. After inputting the URL to a WMTS service, it issues a getCapabilities an lets the user select from all available layers.
The issue is that ArcGIS seems to always load the first layer, no matter which one was actually selected. This is if I have "1-map, 2-map, 3-map" tile layers available, what is shown in the ArcGIS map is always "1-map", even though I selected 2-map or 3-map.

I have verified that what is requested by ArcGIS is actually the first layer, thus excluding that the mapserver somehow delivers the wrong content. (by checking webserver logs)
I have also verified that ArgGIS can in general correctly handle selecting one of multiple available layers (by pointing it to v2.suite.opengeo.org/geoserver/gwc/service/wmts/, where the selected layer is shown, no matter which one was selected).

I thus believe that ArcGIS somehow incorrectly parses the getCapabilities request of tileserver-php, or that some element ArgGIS requires is missing in the request.
Comparing a working and a non-working example of getCapabilities requests, I noticed differences in the "TileMatrixSetLimits" elements.

I do not know enough about the WMTS getCapabilities spec to tell what could trigger this behaviour.

Any clues why ArcGIS always requests the first layer from a tileserver-php server?

thanks a lot
kurt

@ghost ghost assigned klokan Oct 5, 2013
@klokan
Copy link
Member

klokan commented Oct 5, 2013

I have been able to reproduce the issue with ArcGIS Online trial. Thanks for the analyzing it.

I can see the grandcanyon in ArcGIS Online just fine:
screen shot 2013-10-05 at 2 13 25 am
The other layers from tileserver.maptiler.com does not load. It may be dot in the filename, or some small XML adjustment in the GetCapabilities document. The investigation should start by trying the XML comparing with ArcGIS Server WMTS implementation, because otherwise we would break the compatibility with the ArcGIS Desktop (which runs just fine now).

It does not have high priority for me. If there is a client who supports my time on investigating the issue further I would be happy to make the fix. Patches from anybody for whom this issue is critical are very welcome.

@klokan
Copy link
Member

klokan commented Oct 5, 2013

This is probably a good link to start the investigation and development of the fix of this issue:
http://tileserver.maptiler.com/wmts vs http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS/1.0.0/WMTSCapabilities.xml

@klokan
Copy link
Member

klokan commented Oct 5, 2013

In case it is really related to TileMatrixSetLimits then there is a separate ticket for it: #2

@klokan klokan assigned daliborjanak and unassigned klokan Apr 24, 2014
@klokan
Copy link
Member

klokan commented May 5, 2014

Hi @kurt-hectic,

could you please try the latest version of TileServer from:
https://github.com/klokantech/tileserver-php/archive/v1.zip

This bug should be fixed by now and ArcGIS Online should run out-of-the box.

@kurt-hectic
Copy link
Author

Hi,

thanks for letting me know.

I'll test this in two weeks and let you know once I am back from
holidays.

best
Kurt

On 05.05.2014 15:34, Petr Pridal wrote:

Hi @kurt-hectic [1],

could you please try the latest version of TileServer from:
https://github.com/klokantech/tileserver-php/archive/v1.zip [2]

This bug should be fixed by now and ArcGIS Online should run
out-of-the box.

Reply to this email directly or view it on GitHub [3].

Links:

[1] https://github.com/kurt-hectic
[2] https://github.com/klokantech/tileserver-php/archive/v1.zip
[3]
#10 (comment)

@klokan
Copy link
Member

klokan commented May 19, 2014

@kurt-hectic have you managed to run the test?

@kurt-hectic
Copy link
Author

will do tomorrow (Europe time) and let you know!

Timo

On 19.05.2014 18:39, Petr Pridal wrote:

@kurt-hectic [1] have you managed to run the test?

Reply to this email directly or view it on GitHub [2].

Links:

[1] https://github.com/kurt-hectic
[2]
#10 (comment)

@kurt-hectic
Copy link
Author

Dear Petr,

I did a rudimentary test and it now works. Great job!

The test was adding some mbtiles as basemap to a arcgisonline project
using WMTS. This is what previously did not work.

I'll keep sharing feedback if you want.

best
Timo

On 19.05.2014 18:39, Petr Pridal wrote:

@kurt-hectic [1] have you managed to run the test?

Reply to this email directly or view it on GitHub [2].

Links:

[1] https://github.com/kurt-hectic
[2]
#10 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants