QGIS plugin to retrieve tiles of a dataset by selecting features of an opened vector layer in the mapcanvas. AHNdownloader
In QGIS, select Plugins > Manage and Install Plugins...
Download and unzip to your QGIS plugins directory
Open a vector layer with a valid tile-index field
select some features
select the vector layer and set the index-field
select the source URL of the tiled dataset
Set the output location, existing files with the same name will be overwritten
choose whether the result should be extracted
press the download button to start
The download process is handled by a separate thread. Therefore QGIS can preform other tasks during the download. For testing purposes we have prepared a tiled dataset with high-resolution elevation data of one of the Dutch islands. The first dataset contains the raw data. The second one contains modified data: NoData zones are filled with the most probable value based on the topography.
The plugin is already configured for this test. You can just select WFS: testGISplein and one of the source URL's to download this example.
Open WFS layer (optional)
add the selected service to the canvas connect
add a new service. This will open a dialog where you can enter the specifications of a new service, e.g: new
- name: test GISplein
- url: http://220.127.116.11/geoserver/wfs?
- service: WFS
- version: 1.0.0
- request: GetFeature
- typename: GISPLEIN:tile_index
- srsname: EPSG:28992
delete the selected service completely
edit the configuration of the selected service
Choose the vector layer and set the field holding the tile-index Select index layer
Select or edit the source URL of the tiled dataset. When an existing URL is modified it will be saved in a new record. URLs that are no longer used can be removed. Source URL
After the download is completed, the results tab is selected showing some info about the outcome. A temporary vector layer is created with the results. This allows a new attempt to retrieve the missing tiles. To start a new download session you have to push the reset button. Results
When using the raster files in QGIS for analysis or visualisation it isn't necessary to merge al the files together to one big raster dataset. GDAL / QGIS comes with the functionality to create a Virtual Raster. Loading the raster tiles
Menubar > Raster > Miscellaneous > Build Virtual Raster (Catalog)...
The .VRT file is just a XML file holding the geometric metadata of the tiles. Only the necessary data is loaded by QGIS.
Please report any problems you have with the AHNdownloader. To ensure no time or effort is wasted in bug reporting, please follow these steps: Make sure you are using the latest release of the plugin Check the issues on Github to see whether the bug has already been reported, and if so, read through all the comments on the issue, and add any additional information from your experience of the bug Make sure you can reproduce the bug reliably Reporting bugs
Raise a <a href"https://github.com/gisplein/ahnDownloader">Github issue, including:
the AHNdownloader version (or make it clear you are using Github master branch)
any Python error text/stack trace which occurs
a link to the dataset you used, if possible