Fetch geospatial and text data from a Directus API into QGIS
- Overview
- Features
- Installation
- Usage
- Requirements
- Development & Debugging
- Contributing
- License
- Author
DirectusImporter is a QGIS plugin designed to seamlessly import spatial and non-spatial data from a Directus headless CMS instance into QGIS. It supports geometry field detection, selective field import, data caching, and plugin reload functionality to enhance your GIS workflows.
- Connect to any Directus API endpoint with optional authentication token
- Browse and select collections (tables) from your Directus instance
- Choose geometry field to import spatial data
- Select which attribute fields to import via a convenient checklist
- Pagination handling to retrieve all records from Directus
- Caches API data locally to improve performance
- Debug mode with plugin reload option for easy development/testing
- Download the latest release ZIP file from the GitHub repository.
- In QGIS, go to Plugins > Manage and Install Plugins > Install from ZIP.
- Select the downloaded ZIP and install.
- Enable the plugin via the Plugins panel.
- Open QGIS and click Plugins > DirectusImporter > Settings.
- Enter your Directus API URL and authentication token (if required).
- Click Load Collections to fetch available tables.
- Select the collection to import.
- Click Load Fields to fetch and display available fields.
- Choose the geometry field and select desired attribute fields.
- Click OK to save settings.
- Click Import from Directus from the plugin menu to load data into QGIS.
- QGIS 3.10 or higher
- Python packages:
requests,osgeo(GDAL/OGR bindings) - A running Directus instance with accessible API
- Enable Debug Mode in the plugin code to show plugin reload option.
- Plugin caches API responses locally to
.directus_cache.jsonfor faster reloads. - Debug output is printed to QGIS Python Console.
Contributions and bug reports are welcome! Please open issues or pull requests on the GitHub repo.
GNU GPL 3 — see LICENSE file.
Julian Bogdani — julian.bogdani@uniroma1.it