DEV Community

Cover image for Trying to display an Amazon Location Service map in QGIS
Yasunori Kirimoto for AWS Heroes

Posted on

Trying to display an Amazon Location Service map in QGIS

img

I have tried to display an Amazon Location Service map in QGIS šŸŽ‰

The following is a detailed explanation.

  • Advance Preparation
  • Vector Tile Layer Registration
  • Vector Tile Layer Display

Advance Preparation

  • Amazon Location Service API key creation section of this article.

Use 3D map library with API key function of Amazon Location Service

Prepare the following information to display the map.

  • Region name (e.g., ap-northeast-1)
  • Map name (e.g. SampleMap)
  • API key (e.g., v1.public.xxxxx)

Vector Tile Layer Registration

First, register the Amazon Location Service map in the vector tile layer of QGIS.

Start QGIS ā†’ Layer ā†’ Add Layer ā†’ Click Add Vector Tile Layer.
img

Click New ā†’ New Generic Connection.
img

Set the Layer Name, Tile URL, and Style URL, and click OK. In the URL, set "region" to the region name, "mapName" to the map name, and "apiKey" to the API key.
img

Tile URL

https://maps.geo.[region].amazonaws.com/maps/v0/maps/[mapName]/tiles/{z}/{x}/{y}?key=[apiKey]
Enter fullscreen mode Exit fullscreen mode

Style URL

https://maps.geo.[region].amazonaws.com/maps/v0/maps/[mapName]/style-descriptor?key=[apiKey]
Enter fullscreen mode Exit fullscreen mode

This completes the vector tile layer registration!

Vector Tile Layer Display

Finally, display the Amazon Location Service map in QGIS.

Select the vector tile layer you have configured and click Add.
img

Now you can display the Amazon Location Service map style in QGIS!
img

QGIS can import vector tiles and their map styles, and since Amazon Location Service maps also use vector tiles, they can be imported in QGIS. However, QGIS does not support all map styles, so some style representations may not be accurately reproduced.

Related Articles

References
QGIS
Amazon Location Service

Top comments (0)