in Geomatics, Technologies

Awesome basemap layer for your QGIS project

If you are like me, you probably spend a decent amount of time in your GIS software, right? I’m by far not a GIS expert, but my trusty QGIS allows me to quickly visualize flightlines, area of interests, airport locations, … while at the same time being a universal solution for all kind of conversions, geoprocessing and georeferencing tasks.

Easily visualize your data with a basemap

Talking about visualization you probably want to have some good looking basemap in addition to your plain vector layers. Of course the very popular Openlayers plugin is great for that. It easily integrates in your QGIS menu and will give you the option of adding the most common basemap layers to your project. Unfortunately though there is not much you can adjust afterwards. One of the most common things I would like to be able to do is to add some layer transparency which unfortunately is not possible. This is were GDAL layers come to the rescue!

GDAL basemap layers

I stumbled upon this blogpost while looking for some new WMS layer that I could use. The article describes how you are able to add WMS, TMS, TileService and other provider into QGIS. First an xml-file has to be created which can then be added to your QGIS project like any other regular raster layer. Why go through all this trouble? The GDAL layer that you just added will now allow you to change all properties like you would do for any other raster layer.

Intrigued  by the article I soon found myself trying out different WMS and TileSerivces. Quickly I realized that it is crucial to know the exact parameters of the service used and how to correctly add them to the xml-file. Luckily the GDAL website explains the structure of the file in detail and even gives some examples there.

Browsing through various services I decided to pick some and turn them into GDAL xml-files so that I can use them as basemap for future projects. My absolute favorite is the SRTM layer – this will make things so much easier as I will no longer have to download different tiles for my projects anymore…

Some examples of GDAL raster layers

Feel like giving them a try? Go ahead, I listed them below for you to download and import into your QGIS project:

Of course there are endless more that could be created. What do you use as basemap for your projects? Any specific layers that you want to see as a GDAL xml-file? Let me know in the comments below…

Google Maps

Google_Map

Google Maps Layer

Google Maps GDAL basemap layer (21241 downloads )

Google_Satellite

Google Maps Satellite Layer

Google Satellite GDAL basemap layer (21301 downloads )

Google_Terrain

Google Maps Terrain Layer

Google Terrain GDAL basemap layer (38292 downloads )

Google_TerrainStreetsWater

Google Maps Terrain Layer with Streets and Water

Google Terrain, Streets, Water GDAL basemap layer (9494 downloads )

ESRI

World_Dark_Gray_Base

World Dark Gray Baselayer

ESRI World Dark Gray GDAL basemap layer (16943 downloads )

World_Light_Gray_Base

World Light Gray Baselayer

ESRI World Light Gray GDAL basemap layer (37381 downloads )

World_Ocean_Base

World Ocean Baselayer

ESRI World Ocean GDAL basemap layer (15093 downloads )

World_Terrain_Base

World Terrain Baselayer

ESRI World Terrain GDAL basemap layer (62962 downloads )

ArcGis_WorldStreetMap

ArcGIS World Street Layer

ESRI ArcGIS Street GDAL basemap layer (8448 downloads )

MapQuest

MapQuest_OpenAerial

MapQuest Open Aerial Layer

MapQuest OpenAerial GDAL basemap layer (9369 downloads )

Mapquest_OSM

MapQuest OSM Layer

MapQuest OSM GDAL basemap layer (11915 downloads )

Mapnik

OSM_Mapnik

Mapnik OSM Layer

Mapnik OSM GDAL basemap layer (7296 downloads )

OSM_Mapnik_BW

Mapnik OSM Black and White Layer

Mapnik OSM BW GDAL basemap layer (20533 downloads )

Other

Skobbler

Skobbler OSM Layer

Skobbler OSM GDAL basemap layer (5708 downloads )

Mapbox_Satellite

Mapbox Satellite Layer

Mapbox Satellite GDAL basemap layer (18132 downloads )

SRTM

SRTM Layer

SRTM GDAL basemap layer (12272 downloads )

Write a Comment

Comment

33 Comments

      • These layers are not created by me, rather I use existing free layers and create the GDAL xml-file for them. Would you have any example of a WMS- or Tileserver that has the map style you are looking for?

        • I really like you Google Maps Terrain Layer with Streets and Water .xml but would like to have it without the street names, and identified locations like schools , restaurants etc.

          Unfortunately I am having a hard time finding an exact example.

  1. It would be great if the zoom levels for the services could be defined in the xml files. Making the tiles draw at only the zoom levels they were designed to be viewed at instead of getting a pixelated or fuzzy image for scales between publish zoom levels.

  2. Hi, fisrt of all thanks for sharing! I can not load the xlm files, waiting about 5 minutes and after that qgis crashes. Any suggestions?

    • I know that some of the servers tend to be slower than others, but never had it crash on me. Are you using the latest version of QGIS?

      • I had a problem with the OSM b/w, the Esri one loads normally. Thanks a lot for the help and for sharing these valuable files! I will try one more time with the latest Qgis version.

  3. Hello, thank you for this blog. Im from Argentina and i dont write good in english. My question for you is : ¿Do you know the year of the Google Satellital image xml? I need a newer image and i dont know what year is that. Thank you !

    • Unfortunately I have no information about the acquisition date for the Google Satellite Imagery.
      I also assume that the whole layer is combined from several images and the date will therefore be different depending on the area you are looking at.

      Maybe Google Earth can help you to identify the year of the imagery? Activate the historic imagery feature (toolbar>little clock icon button next to the sun button), this allows you then to jump backwards and forwards between different image sets. In the footer it will then tell you the date the image was acquired.
      For private and research use, you might also want to take a look at Google EarthEngine (https://earthengine.google.com/). Google collected various imagery sources there.

  4. Hello Felix. How are you? Im Pablo again. I am using the Google_Satellite xml image to work in my project but since today when i make a full zoom tu an area… 1 block, for example, the image turn black. This had never happend before today with your image. I worked fine making full zooms since today. I would like to know what happens with de image or if it is something else i dont know?… Thank yo very much. Excuses for my poor english. Pablo.

  5. Hi Felix,
    the title of the website is really true: “Awesome Basemap Layers …”.
    Thank you for that.
    I’m just starting to use qgis and needed a simple way to integrate the Google terrain feature. Your solution is the perfect way.
    Now I tried to integrate the opentopomap.org but unfortunately I failed. Maybe it’s a simple thing for you to create the respecive xml file for the opentopomap project?
    Thank you!

  6. Excellent contribution!…thanks Felix. I’m an amateur in this field and was really helpful to have this basemaps…

  7. Hi Felix, I tried to import the SRTM layer, the import seems to work but I just get a black layer, seems the raster is not displayed properly. This also happens e.g. with the mapnik layers. Actually any hint is appreciated whether there could something wrong in the xml or is it an issue with the QGis properties, e.g. projection. Thank you. I am using version 2.18.13

  8. Hi Felix, for a reason that I do not understand the URL links does not seem to work when I add it in the XYZ tiles in QGIS, for exemple Google Maps Terrain Layers with Street and Water “http://mt.google.com/vt/lyrs=p&x=${x}&y=${y}&z=${z}” does not work. I have the same problem with the other URL links. Thank you

    • Hi Frédéric, these downloads are supposed to be added as raster files… download the xml file and use the add Layer option in QGIS. Tested the Google Maps Terrain/Street/Water in the latest QGIS and it loads just fine.

  9. Hi Felix, the good URL link for Google Maps Terrain Layers with Street and Water is “https://mt1.google.com/vt/lyrs=p&x={x}&y={y}&z={z}” and not “http://mt.google.com/vt/lyrs=p&x=${x}&y=${y}&z=${z}”. You should check the other URL links.

  10. Hi Felix, I have downloaded the XML files (it actually works better with Chrome rather than Edge) and it works fine with me too. However, if you have to do nice map with really good dpi, I highly recommand to use xyz tile server connections. Thank you again for your help.

  11. Hi Felix, thanks a lot for your awesome work, I used your Google Terrain XML for some QGIS work a year ago – but returning to my old file, it seems that the XML does not work properly (with QGIS 2.18.3) as it only displays black terrain. Your help would be much appreciated! Thanks, Dominik

Webmentions

  • Easily add custom tilemap layers in QGIS 30. August 2019

    […] fast and is considered by many as a valid (or even superior) alternative to ESRI’s ArcGIS. In one of my previous posts I described how to use GDAL xml-files to simply add baselayers of different sources (WMS/TMS). With […]

  • Awesome basemap layer for your QGIS project | G... 30. August 2019

    […] If you are like me, you probably spend a decent amount of time in your GIS software, right? I’m by far not a GI  […]