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.
Click New → New Generic Connection.
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.
Tile URL
https://maps.geo.[region].amazonaws.com/maps/v0/maps/[mapName]/tiles/{z}/{x}/{y}?key=[apiKey]
Style URL
https://maps.geo.[region].amazonaws.com/maps/v0/maps/[mapName]/style-descriptor?key=[apiKey]
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.
Now you can display the Amazon Location Service map style in QGIS!
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
Use 3D map library with API key function of Amazon Location Service
Yasunori Kirimoto for AWS Heroes ・ Aug 2 '23
Amazon Location Service and AWS Amplify to Use Various Map Library
Yasunori Kirimoto for AWS Heroes ・ Jan 5 '23
Spatial Search with Amazon OpenSearch Service and Visualized It in QGIS
Yasunori Kirimoto for AWS Heroes ・ Aug 3 '22
Spatial Search of Amazon S3 Data with Amazon Athena and Visualized It in QGIS
Yasunori Kirimoto for AWS Community Builders ・ May 16 '22
References
QGIS
Amazon Location Service
Top comments (0)