Skip to content

wmts service #2639

Answered by gwaldron
baihaohan asked this question in Support Q&A
Oct 9, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

WMTS requires that you use the GDALImageLayer and set the connection to a WMTS endpoint, like so:

auto layer = new GDALImageLayer();
layer->setConnection("WMTS:https://services.arcgisonline.com/arcgis/rest/services/World_Imagery/MapServer/WMTS/1.0.0/WMTSCapabilities.xml,layer=World_Imagery");

(Notice the WMTS: prefix on the URL.)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@baihaohan
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by baihaohan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants