# Adding Base-maps and Raster Data

Initially, QGIS only has a single basemap to work with, let's add it!

![](/files/BAgGFcsJIllMceIX6yYI)

In your browser pane, find XYZ Tiles and click the down arrow to find the Open Street Map basemap. Click and drag it into your layers box, and it will appear on the map.&#x20;

![Now we have a basemap to start from!](/files/Js4SEb39KwlLcNkBiJnM)

There are lots of different options for loading basemaps, but first you have to connect them to your project from their hosted locations online (or self host). Here's a fast way to get a bunch of standard basemaps though, thanks to Klas Karlsson (one of the main qgis devs)!

1\) Download the python script below and open it in a text editor (e.g. notepad).

{% file src="/files/bPsvVI9RuiR2jiVsHuwi" %}
Thanks Klas!
{% endfile %}

2\) Open up the Python console in QGIS by going to Plugins-->Python Console

![](/files/NUJ1A43HhO22ZmuO1spl)

3\) Copy the python script into the editor and press enter.&#x20;

![](/files/EBAf3d8WWxvpxoTDreKH)

4\) Enjoy all your basemaps! Thanks Karl!

![](/files/e5lk1nGxWJb4evYjvln1)

What if you want to load your own georeferenced map, like one from MapWarper? Easy enough!&#x20;

1\) Right-click on XYZ and select "New Connection"

2\) Look back at your mapwarper project page and choose the Tiles URL (the same one you use with ArcGIS online or Knightlab Storymaps

![The Mapwarper Export Page](/files/YMD1piQJ2YIt8irgTJa8)

3\) Name your connection and you should be good to go!

![Name and URL for your hosted map](/files/WsjWl0kpawjwLsNv2lJ7)

![We've successfully imported a historical map!](/files/zA8VLIepvyFOyajs2EEM)

Finally, what about importing a local raster file, whether its a georeferenced historical map, a Digital Elevation Model, or some other raster. Even easier!

1\) Make sure you know where the file is hosted on your computer, or download the file from the internet (Like with the rectified GeoTiff from Mapwarper)

2\) In the main toolbar, go to Layer --->Add Layer-->Add Raster Layer

![](/files/aHYfIU3QbOjQGANiKnBv)

3\) In the Source section, click the "..." and navigate to your saved georeferenced raster as your raster dataset, open it up, and click "Add" to add it to your map.

![](/files/PMRXFg9qj0rYDUSTQWxH)

It may look the same, but this map is locally hosted!

![](/files/pR392jMaAN11KzJDk87h)

That's it for the basics of adding rasters and basemaps to QGIS!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bcds.gitbook.io/learn/digital-scholarship-incubator/topics/mapping-and-gis/workshop-a-brief-introduction-to-qgis/adding-base-maps-and-raster-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
