QGIS
QGIS demo using a Mapbox vector tile service
This example goes through the steps to create a new map in QGIS using Mapbox Vector Tiles (MVT) consumed from 2 different ways:
- downloading and opening .mbtile file locally
- using the {z}/{x}/{y} service endpoint
This demo uses services listed on the Geoplatform BLM National Public Land Survey System Polygons metadata page.
-
Geoplatform Vector Tile Service: https://tileservice.geoplatform.gov/vector/9b59f427_c0ad_5f8b_ac22_2dbdac882dfa/{z}/{x}/{y}.mvt
-
MBTile download: https://gp-sit-us-east-1-geoplatform-archive.s3.amazonaws.com/9b59f427_c0ad_5f8b_ac22_2dbdac882dfa.mbtiles
Tools
QGIS
QGIS is a user friendly Open Source Geographic Information System (GIS) licensed under the GNU General Public License. QGIS is an official project of the Open Source Geospatial Foundation (OSGeo). It runs on Linux, Unix, Mac OSX, Windows and Android and supports numerous vector, raster, and database formats and functionalities.
If you are new to QGIS see: Documentation for QGIS.
Download QGIS for your platform QGIS is available on Windows, macOS, Linux and Android.
Example Using the Vector Tile Service (XYZ) endpoint
- In the Geoplatform Search results, user a data source with a Vector Tile Service pill button. Click the button to open the tile viewer.
- Copy the URL from the URL Template Map Server URL:
- Open QGIS and select
Layer
->Add Layer
->Add Vector Tile Layer
. - Choose
New
->New Generic Connection
. - Enter in a friendly
Name
for your layer, then add the XYZURL
. Optionally specify a style URL. After the settings are configured, here we will use a style hosted on github (https://raw.githubusercontent.com/GeoPlatform/geoplatform-demos/GS-1350_PLSS_v2/mvt/styles/9b59f427_c0ad_5f8b_ac22_2dbdac882dfa/all.json), then pressOK
. From the previous screen, you can select your new layer and clickAdd
to add it to the map. - Final result.
- (optional) Inspect your style layer symbology in the layer properties
Example Using a MBTiles file
- In the Geoplatform Search results, use a data source with a Geoplatform Cache MBTiles pill button. Click the button to download the file.
- Download the Mbtile file from the desired data source.
- Open QGIS and select
Layer
->Add Layer
->Add Vector Layer
. - Choose
File
as source type and browse to your mbtile file using the...
button. Once configured, clickAdd
. - Final result.