# Loading raster data

The guides below detail how to load raster data for the following products:

<details>

<summary>QGIS</summary>

It is assumed that the user will have already set the default co-ordinate reference system in QGIS to British National Grid (EPSG 27700). Instructions of how to do this can be found in the QGIS Getting Started Guide;

### **Loading and Displaying GeoTIFF supply**

1. Open QGIS. Select ‘open raster layer’ from the left hand toolbar.<img src="/files/E27ApOFoiFvRy31cDRYn" alt="" data-size="original">
2. In the next window, click ‘**browse**’ and navigate to the folder where the OS OpenMap-Local GeoTIFF files are located.<br>

   <figure><img src="/files/asXwGmS3VWG8nxCAoFPT" alt="File selection dialog open to browse and load GeoTIFF files"><figcaption><p>File selection dialog</p></figcaption></figure>
3. Select one or several GeoTIFF files as required. Once selected, click ‘**open**’.

* The files will then appear in the QGIS map window.

  <figure><img src="/files/OBGZrd4pAhwxGTWaJ7HL" alt="A screenshot of the QGIS window with a stylised map loaded" width="452"><figcaption><p> QGIS map window</p></figcaption></figure>
* Zoom to the desired map scale using the zoom buttons or set the scale using the drop-down option at the bottom of the window. It is recommended to set the viewing scale to 1:5000 or slightly less.

As an alternative to loading the GeoTIFF files one at a time or in groups, it can be quicker and easier to create a virtual raster table (VRT) to load the data.

4. In the QGIS main menu, select ‘**Raster**’ and then in the drop-down menu select ‘**build virtual raster (catalog)**’. In the resulting window, the user has the option of selecting a folder containing all the raster GeoTIFF files, or the user can simply select several files with which to build the virtual raster table.

* It is highly recommended, for OS OpenMap-Local, to keep the maximum size of the VRT file to a 100km2 grid square, for example, SU. In some cases, the maximum number of tiles will be smaller than this.<br>

  <figure><img src="/files/IupvidvaAmDu1AW7tf4U" alt="Build virtual raster dialog showing the select button on the input files highlighted"><figcaption><p>Build Virtual Raster dialog</p></figcaption></figure>

5. The user also has the option of loading the virtual raster table when finished. Once the choice is made click ‘**select**’ and then navigate to the selected folder.

* It is then necessary to specify the name and location of an output VRT file. It is normal procedure to place the VRT file in the same folders as the GeoTIFF files.

  <figure><img src="/files/J7OHJjxXCgtFnUXL22bC" alt="VRT file selection dialog"><figcaption><p>VRT file selection dialog</p></figcaption></figure>

6. Once the user is happy with the name of the VRT file and its location, click ‘**Save’**.

* The dialog box is now populated with the data required to construct the VRT file.

  <figure><img src="/files/x1Uuj9zI2o6CDVaYX3qm" alt="Build virtual raster dialog window"><figcaption><p>Build virtual raster dialog</p></figcaption></figure>

7. When satisfied, click ‘**OK**’. The process should now start and run to completion. It is important to note that in testing with the beta release data, the actual maximum number of OML raster tiles that could be included in a VRT file was considerably less than a 100km2 grid tile, as indicated previously in this guide. This is because there are 400 separate GeoTIFF files within a 100km2 tile and the actual size of the GeoTIFF file does vary according to the density of detail in the area which it covers. The user must experiment with their own system to find the optimal number of tiles for a VRT table.

   <figure><img src="/files/eTj1HkrdFrcGqJ00zNtt" alt="Process finished message window on the build raster data dialog"><figcaption><p>Process finished message window on the build raster data dialog</p></figcaption></figure>

* The user can now click ‘**OK**’ twice and then close the Build Virtual Raster catalog dialog box.

8. The OS OpenMap-Local raster data should display in a similar fashion to the example below, if the ‘l**oad data into canvass when finished**’ option was ticked in the building dialog window. If this option was not selected, the VRT file will have to be loaded manually by selecting the load raster data button as described previously and then selecting the .VRT file just constructed. For best viewing results, set the viewing scale to 1:5000 or slightly less.<br>

   <figure><img src="/files/b3K7V8gHYy1hbrJhfPrt" alt="QGIS main data canvas showing data displayed "><figcaption><p>QGIS main data canvas<br></p></figcaption></figure>

   <figure><img src="/files/2qWOLIp4gEhRCVSOUVoF" alt="Add data file dialog "><figcaption><p>Add data file dialog</p></figcaption></figure>

</details>

<details>

<summary>ArcGIS ArcMap Desktop</summary>

For the purposes of this guide, it is assumed that the user is familiar with the procedure of creating a file geodatabase within ESRI ArcGIS. A file geodatabase is used to contain a raster catalog. The procedure for creating a raster catalog will be described later. The construction of a file geodatabase is described in the loading of the vector version of OS OpenMap-Local section of this guide.

### **Loading and Displaying GeoTIFF supply**

1. Open ArcMap. To load the GeoTIFF file on an individual basis, or in small groups, click ‘**Add Data**’. <br>

   <figure><img src="/files/OijQ2CnRSpxNsmnToqwd" alt="Add data button in the ArcGis toolbar"><figcaption><p>Add data button in the ArcGis toolbar</p></figcaption></figure>
2. In the dialog box, browse to the folder where the GeoTIFF files are to be found. If the folder is not in the list of connected folders, the user will have to create a new folder connection to it in the usual way. Select the GeoTIFF files required and click ‘**Add**’.
3. In the next dialog box, the user should consider whether or not pyramids should be created before loading the raster data. In this case we are not going to create pyramids with the data.<br>

   <figure><img src="/files/AjSx1RuDUOcWxzU0v2T6" alt="Screenshot of the pyramid creation dialog box"><figcaption><p>Creat pyramids dialog</p></figcaption></figure>
4. Click ‘**no**’ on this dialog box. This must be repeated for all the raster files selected to be loaded. The data loaded should appear in a similar fashion to what is displayed in the next example. Select a suitable scale for viewing the data, probably around 1:5000 or less.<br>

   <figure><img src="/files/vNJg7zPV8du4HLXt8dik" alt="Screenshot of data loaded successfully " width="479"><figcaption><p>Data loaded into ArcGIS</p></figcaption></figure>
5. The best way of loading multiple raster files in ESRI ArcMap is to use a raster catalog to store the data. This method works from within a file geodatabase, which can also be used to store the vector version of OS OpenMap-Local if required. Details of how to create a file geodatabase in ArcCatalog are described in the loading of the vector version section later in this guide.

* Assuming the user has a file geodatabase already created to hold the data, the following procedure can be used to create a raster catalog to hold the raster files.

1. Open ArcCatalog. Right-click on the file geodatabase that has been created to fold the data and select ‘**New**’ ‘**Raster Catalog**’.<br>

   <figure><img src="/files/VrDkHSy8IiQg5p7jOPKc" alt="Raster catalog menu option in the New menu"><figcaption><p>Raster Catalog menu option</p></figcaption></figure>
2. In the resulting dialog box, the user must give the raster catalog a name. In this box one can also specify a co-ordinate reference system and if the catalog will be managed or unmanaged. A managed catalog will physically contain all the raster tiles, and will take longer to create. However, if the file geodatabase is to be shared, the data will be available with the database and can be shared more easily with other users. In the example we have created a managed catalog with the British National Grid co-ordinate reference system. Click ‘**OK**’ when finished.<br>

   <figure><img src="/files/twx7NSrWHDpw2vovX4lK" alt="Screenshot of the create raster catalog dialog box"><figcaption><p>Create Raster Catalog dialog</p></figcaption></figure>
3. Once the catalog has been created it will appear as an entity within the file geodatabase. Refresh in ArcCatalog to see if it has been created. To load the raster files into the catalog, right-click the raster catalog and select ‘**load raster datasets**’.

   <figure><img src="/files/zOQoa49kOgq6mdm5aT5W" alt="Screenshot of the load data menu showing the load raster datasets option"><figcaption><p>Load Raster datasets menu option</p></figcaption></figure>
4. Browse, in the next dialog box, to the folder where the raster datasets are stored and select the ones required for use. Click ‘**OK**’ when finished. The list of selected raster will now appear in the dialog box.<br>

   <figure><img src="/files/nHqUsWhEEyZ0rhDty9Ig" alt="Screenshot of the raster to Geodatabase dialog"><figcaption><p>Raster to Geodatabase dialog</p></figcaption></figure>
5. The output geodatabase will normally be the correct one where the raster catalog is located, so the user can then click ‘**OK**’. This process may take some time if there are many files to be loaded to the catalog, and the catalog which is being used is of the managed type. Once completed, the user will see the list of files in the catalog listed in the view pane of the main ArcCatalog window.<br>

   <figure><img src="/files/dGjWI2KKm0Y0vOClA4Ms" alt="Add data dialog window and file explorer showing OS Open Map Local data file"><figcaption><p>Add data dialog </p></figcaption></figure>
6. In ArcMap, select ‘**Add Data**’ and then browse to the file geodatabase where the raster catalog is stored. Select the raster catalog and then click ‘**Add**’. The data will now appear in the ArcMap main map window.
7. Select the raster catalog and then click ‘**Add**’. The data will now appear in the ArcMap main map window.
8. If a grid similar to what is shown in the example below is seen, it means that the catalog contains over the maximum number of raster tiles set to be displayed in ArcMap, which then defaults to a wireframe grid.<br>

   <figure><img src="/files/XGcBzn3kP9GLVO3fuA9Y" alt="Screenshot of ArcMap showing Raster tiles in the ArcMap main window"><figcaption><p>Raster tiles shown in the ArcMap main window</p></figcaption></figure>
9. If this happens, the wireframe mode should be turned off. Right-click on the raster catalog in the table of contents window, select ‘**Properties**’ and then select the ‘**Display**’ tab. Click on the ‘**Never show Wireframe**’ radio button. Then click ‘**OK**’ or ‘**Apply**’. The raster data should now display correctly.<br>

   <figure><img src="/files/XsamqRJcl9OSM4kcghXI" alt="Screenshot of the layer properties dialog showing the display tab for altering visual settings"><figcaption><p>Layer properties dialog showing the display tab</p></figcaption></figure>

</details>

<details>

<summary>MapInfo Professional</summary>

For the purposes of this guide, it is assumed that the user is familiar with using MapInfo Professional and knows how to perform certain functions required to handle raster data. MapInfo Professional 64bit version 15.2.4 is being used in these examples. Users of the 32-bit version of MapInfo or those using earlier releases will see different screens to those shown here.

1. To open the GeoTIFF raster files, select Open Table either from the ribbon button list at the top of the screen or select the ‘**Home**’ tab and select the table option.

   <figure><img src="/files/aAkFcYHCvryMohexCmfu" alt="" width="355"><figcaption><p>Open table option in the MapInfo professional menu</p></figcaption></figure>
2. In the next window, navigate to the folder in which the raster files are found. Initially, on a first load, the user will need to change the files of type to raster image from the default ‘**tab**’ type.<br>

   <figure><img src="/files/F1fdXkX8fu2w6ZgotMDp" alt="Raster files shown in the file explorer" width="563"><figcaption><p>Raster files shown in the file explorer</p></figcaption></figure>
3. Select the number of raster tiles required and then click ‘**open**’. The raster data is now displayed in the map window.<br>

   <figure><img src="/files/GD5DQHyYVNTUBNu5pyAC" alt="Raster data displayed in the main window" width="563"><figcaption><p>Raster data displayed in the main window</p></figcaption></figure>
4. MapInfo has loaded each of the raster tiles individually. Although this is normally OK for a small number of tiles, when working with large numbers of raster tiles and/or multiple layers of data, it is more efficient to create a seamless table in MapInfo to hold the data.

* The user will need to load the seamless table manager under the Tools button in the Home tab of MapInfo Professional.<br>

  <figure><img src="/files/mb8k7I7Bm4vhtFN2DOrU" alt="Seamless table manager in the home tab of MapInfo Professional" width="358"><figcaption><p>Seamless manager tools</p></figcaption></figure>

5. The user must load at least one raster tile into the map window to start the process of creating a seamless table. Once this is done, double click seamless manager in the tools drop-down as shown above. The following window will appear.<br>

   <figure><img src="/files/TRfM64uuQnIIFHBykQ3n" alt="Screenshot of seamless manager window" width="244"><figcaption><p>Seamless manager window</p></figcaption></figure>
6. Click ‘**New Seamless Table**’. Then select a folder in which to store the seamless table and give the table a name. Then click ‘**Save**’<br>

   <figure><img src="/files/wa7DIgBVGsxvHvCAAven" alt="Seamless Map Sheet file explorer with the save button highlighted" width="375"><figcaption><p>New Seamless Table window</p></figcaption></figure>
7. MapInfo has now created a seamless table containing the one table that was loaded in the map window. The user can now add additional tables to the seamless table by appending additional tables to the one just created. This procedure works differently to the process used in earlier 32-bit versions of MapInfo. In MapInfo 64-bit, all the tables to be appended need to be loaded into the map window first.<br>

   <figure><img src="/files/Hyt8JZCWaZFPLP73Eek1" alt="Append to Seamless Table button highlighted on the Seamless manager dialog" width="250"><figcaption><p>Seamless manager dialog</p></figcaption></figure>
8. This time click the ‘**Append to Seamless Table**’ Option. The browse window will appear.

   <figure><img src="/files/7IbxNneaqjFb37lBGglx" alt="Seamless table manager open data file explorer" width="343"><figcaption><p>Seamless table to append</p></figcaption></figure>
9. Select the seamless table to be appended. In the example above it is ‘**OML.TAB**’. Click ‘**open**’. The following message will appear depending on the number of tables loaded into the map window.\
   ![MapInfo informatio message showing 'Seamless map sheet "OML" was appended with 7 table(s)'](/files/N4amNzHnxawuQJxNBmJr)
10. From now on, the user can load all eight tables (in this example) at once simply by loading the seamless table. It is also important to note that the seamless manager will only work on tables created by MapInfo when loading in the original raster files. It will not work with GeoTIFF files directly.

</details>

<details>

<summary>CadCorp Map Modeller</summary>

### **Loading and Displaying GeoTIFF supply**

1. Open CadCorp Map Modeller. In the ribbon menu bar, select ‘**Add overlay**’.

   <figure><img src="/files/Xh8z3BJKEzGYKmz6mrnq" alt="Add overlay button on the Cadcorp toolbar" width="98"><figcaption><p>Add overlay button </p></figcaption></figure>
2. In the next window, select ‘**File**’ as the type of overlay to be opened.<br>

   <figure><img src="/files/b9VSpzxHSmzEF6Wf6ORF" alt="Overlay types window showing files selected" width="367"><figcaption><p>Overlay Types window</p></figcaption></figure>
3. Navigate to the folder where the data resides and select however many GeoTIFF files that are required to be loaded.<br>

   <figure><img src="/files/vYYPURlCo4zLEizL5AON" alt="Screenshot of the file browser" width="359"><figcaption><p>FIle browser window</p></figcaption></figure>

* Click ‘**Finish**’.

4. The GeoTIFF files will load into the map window.<br>

   <figure><img src="/files/Jv50EjNENjsuUCC91da1" alt="Screenshot of the GeoTIFF data loaded into the map window"><figcaption><p>GeoTIFF file loaded into the map window</p></figcaption></figure>

Alternatively, the user can drag and drop the GeoTIFF files directly into the CadCorp Map window.

</details>


---

# 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://docs.os.uk/os-downloads/products/maps-and-imagery-portfolio/os-openmap-local/os-openmap-local-getting-started-guide/loading-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.
