census:qgis_install
Table of Contents
Installing QGIS
The following are instructions on installing and starting QGIS on Ubuntu/Mint22.
Installing Qgis
The following are instructions for Installing QGIS on Ubuntu/Mint and then loading Census Data
- apt update
- As user root: apt install qgis (this installed 3.22 which is a long term support version)
Starting QGIS
On Linux, if you are ssh-ing into a server, make sure to specify the “-XY” arguments. This will allow X-windows to re-route to your local machine.
ssh -XY -l <user> <host> qgis
Plugins
qgis2web and QuickMap Service
- Menu –> Plugins –> Manage and Install Plugins
- Search for qgis2web
- Click “Install Plugin”
- Search quickmap and choose quickmapservices
- Click “Install Plugin”
Configuring QGIS to accept URL Arguments
Change the following at the top of qgis2web.js
function getParam(name) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(name);
}
let lat = parseFloat(getParam("lat")) || 44.8;
let lon = parseFloat(getParam("lon")) || -103.4;
let zoom = parseInt(getParam("zoom")) || 4;
Users
I'm going to use a user called “qgis” to own all files.
useradd -g developer -s /bin/bash -c 'Qgis Account' qgis mkdir -p /opt/qgis chown -R qgis:developer /opt/qgis
census/qgis_install.txt · Last modified: by mlivolsi
