Importing Data into Geobase using QGIS
This guide will walk you through the process of importing data into Geobase using QGIS.
Connect QGIS to PostgreSQL
To connect QGIS to Geobase, you can follow the steps outlined in the Getting Started.
Note: Ensure that you have the necessary permissions to access the PostgreSQL database.
Load Data into QGIS
Add the spatial data you want to import, such as shapefiles or GeoJSON files in QGIS. Data used in the example is from Natural Earth, you can download the data from Natural Earth.
Export Data to Geobase
Once you have loaded the data into QGIS, you can export it to Geobase by following these steps:
Open DB Manager in QGIS by going to Database > DB Manager
.
In the list of PostGIS databases, find the one you want to export to, find the desired schema, and press Import Layer/File...
.
Select the layer in the Input field you want to export and press OK
.
You will see a success message like below:
Verify Data in Geobase
Open the Geobase web interface, select your project, and navigate to the Table Editor
.
You should see the table you imported in the public schema like below:
If the table does not appear, ensure that the import process completed successfully and refresh the page.
Serving the data via tile server
You can now navigate to the tile server page and view the table there as well. Follow the tile server guide for how to use the tile server.