Hot answers tagged

87 votes

Installing latest QGIS version on Ubuntu?

The instructions on the QGIS download site are not as intuitive as I'd like, but they do work when you know the command syntax: First, what version of Debian Linux (Ubuntu / Mint) are you running? The ...
user avatar
54 votes
Accepted

Error adding qgis.org repository public key to apt keyring

Based on old notes, the following seems to work: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 51F523511C7028C3 -- Update -- As of August 2020: sudo apt-key adv --keyserver keyserver....
user avatar
  • 10.3k
36 votes

Installing latest QGIS version on Ubuntu?

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update If you already have qgis installed: sudo apt-get upgrade If you don't already have it: sudo apt-get install qgis
user avatar
35 votes
Accepted

Install QGIS 2.14 Essen on Ubuntu 16.04 Xenial

It looks like there actually is Xenial support in the debian repository and although I haven't tried the following solution myself I guess it is worth a try. Before trying the following I would ...
21 votes
Accepted

QGIS fails to load

Got the same problem on Linux Mint and finally fixed it. The problem is that you've installed a few python libraries and one of them is a dependency of QGIS. QGIS ~2.18 works fine with Scipy 0.17, ...
user avatar
  • 6,386
20 votes

Python GDAL package missing header file when installing via pip

After following a subset of this advice, this is how I got the Python GDAL 1.11.0 (the solution should be version-independent, see below) install to work on Ubuntu 14.04 with pip: Install ...
user avatar
19 votes

I have not found shp2pgsql in postgis installation

I was also following the OP's installation method of PostgreSQL and PostGIS, namely sudo apt-get install postgresql-9.4-postgis-2.1 pgadmin3 postgresql-contrib-9.4 I enabled the PostGIS extension in ...
user avatar
  • 636
19 votes
Accepted

Installing QGIS 3.12.x on Ubuntu focal 20.04 architecture mismatch

You can specify the platform in your APT line with [ arch=amd64 ]: deb [ arch=amd64 ] https://qgis.org/ubuntu/ focal main Source : https://unix.stackexchange.com/questions/272908/apt-looking-for-...
user avatar
  • 5,665
18 votes

Python GDAL package missing header file when installing via pip

Installing Python package gdal into virualenv on Linux GDAL provides nice toolkit for GEO related operations. However, installing it to virtualenv on Linux is not trivial task. This recipe describes,...
user avatar
15 votes
Accepted

PostGIS non functional on Ubuntu 14.04

Following the advice at the postgis-users maillist it was possible to identify the existence of outdated ligbeos libraries as the source of the problem: $ locate libgeos_c.so /usr/lib/libgeos_c.so /...
user avatar
15 votes

Repairing broken GDAL and PROJ.4 on Ubuntu?

In https://gis.stackexchange.com/questions/158457/gdal2tiles-how-to-make-filenames-of-tiles-to-represent-xyz-coordinates, somebody mentions doing: sudo ln -s /usr/lib/libproj.so.0 /usr/lib/libproj.so ...
user avatar
  • 381
15 votes
Accepted

gdal2tiles.py gives ERROR 6 about EPSG:900913 on fresh Ubuntu 14.04 install

Going from what @user30184 said in the comment. This issue is that the gdal2tiles.py script tells gdal to output 'mercator' as EPSG:900913. This is fine as long as it knows how to convert to this. ...
user avatar
  • 418
14 votes
Accepted

OS with better performance for QGIS

I suspect you'll get a lot of subjective answers to this question, but here's some (hopefully objective!) points to keep in mind: running Linux natively will always be faster than running it in a ...
user avatar
  • 26.2k
14 votes

Can't install QGIS 3.x on Ubuntu 18.04

According to ubuntugis documentation. "A convenient new command is available for adding Launchpad PPA (Personal Package Archive) repositories via the command line: add-apt-repository." For the stable ...
user avatar
11 votes
Accepted

Repairing broken GDAL and PROJ.4 on Ubuntu?

After several wrong ways, including multiple reinstall of libproj0 package and even installing QGIS from sources different from the Ubuntu Software Center default (I think it's from the official QGIS ...
user avatar
  • 1,487
10 votes
Accepted

Unable to install ECW support on lubuntu 14.04

By now, ubuntugis-unstable has added trusty packages for QGIS 2.2 and GDAL 1.11. Unfortunately, libgdal-ecw-src is still missing, and the available versions for raring and precise are intended for ...
user avatar
  • 74.9k
10 votes
Accepted

GDAL utility in Bash for loop (Ubuntu)

Linux (ubuntu as you call it) uses a shell (probably bash in this case) which has a different syntax to windows so you want something like: for i in se70*.tif do gdalinfo $i done
user avatar
  • 74.7k
10 votes

Getting QGIS to use dedicated graphics card (GPU) over integrated?

I am a GIS developer and geospatial analyst. I use QGIS professionally. QGIS does make limited use of parallelized GPU acceleration, but only for raster rendering, namely: slope aspect hillshade ...
user avatar
  • 101
10 votes

How to reinstall QGIS from scratch on Ubuntu?

sudo software-properties-gtk there in the package manager remove qgis and ubuntugis from the list; sudo apt-get autoremove sudo apt-get autoclean sudo apt-get -f install sudo apt-get autoremove qgis ...
user avatar
  • 3,259
10 votes

No SAGA available in QGIS Processing

I had faced a similar issue but resolved it with saga install. You need to install proper version of SAGA. I installed saga via apt install. SAGA version in Ubuntu 18.04.3 repository work very well ...
user avatar
9 votes

How to create svg symbols that have modifiable fill color, stroke color and stroke width?

It seems worth providing a simple answer about the basics of SVGs to go alongside the details provided here about specifics around software... An SVG file is just a text file. The file ending will be ...
user avatar
  • 2,860
9 votes

Installing latest QGIS version on Ubuntu?

The Ubuntu and UbuntuGIS repositories really do lag very far behind the latest release of QGIS, so the best thing is to download directly from qgis.org. Here is perhaps the simplest way to do this, ...
user avatar
  • 1,293
9 votes
Accepted

Cannot run Grass algorithms in QGIS 2.18 on Ubuntu 16.04

I get the same error with the Ubuntugis version of QGIS and GRASS version 7.2.0. It seems that 7.2 is not yet correctly adopted in processing. There is already a ticket for it: https://hub.qgis.org/...
user avatar
  • 74.9k
9 votes

Error adding qgis.org repository public key to apt keyring

After you have verified the fingerprint you forgot to add the key to apt with: gpg --export --armor 51F523511C7028C3 | sudo apt-key add - Read the QGIS documentation. All the instructions are: ...
user avatar
  • 191
8 votes

Geoserver init.d script

I found a working procedure: Create a file geoserver inside /etc/default dir and feed with the following code (change top four variables according to your own setup): USER=zia GEOSERVER_DATA_DIR=/...
user avatar
  • 1,130
8 votes

I have not found shp2pgsql in postgis installation

When installing postgis on Linux, be sure to install the client also, as postgis on its own will not install the shp2pgsql executable. yum install postgis2_94 yum install postgis2_94-utils yum ...
user avatar
8 votes

Repairing broken GDAL and PROJ.4 on Ubuntu?

Try: sudo apt-get install libproj-dev It solved the same error for me when using gdal_translate for extracting bands from an hdf image.
user avatar
  • 81
8 votes
Accepted

IDE (PyCharm) settings for developing with Processing in Linux (Ubuntu)

I’ve found the solution of my main question with help of this answer. If you need to add some external library, first of all check where it is placed (if it is possible of course). I opened Python ...
user avatar
8 votes
Accepted

Unable to install ‘sf’ R package on Ubuntu 16.04 LTS

This worked for me. Using sudo aptitude install libgdal-dev and then devtools::install_github("r-spatial/sf")
user avatar
8 votes
Accepted

Install a Python package on QGIS

For installing python packages for your Ubuntu QGIS-3, you don't need to launch Python Console. First, in bash console: sudo su [sudo] password for user: apt-get install python3-pip pip3 install ...
user avatar
  • 25.9k

Only top scored, non community-wiki answers of a minimum length are eligible