Skip to main content
6 votes

Connecting local QGIS to Docker container?

First, you need to ensure your Docker container has it's ports exposed, so do something like: docker run -p 5432:5432 --name some-postgis -e POSTGRES_PASSWORD=mysecretpassword -d mdillon/postgis And ...
Alex Leith's user avatar
  • 13.5k
6 votes

Docker container for OSGeo

There is a fairly large list of OSGeo Docker images here that are built on a variety of different base images. The page also contains information on the source, whether or not the image is on Docker ...
lambertj's user avatar
  • 3,112
6 votes
Accepted

Importing .shp file into PostGIS with the function shp2pgsql

Run the command with -d switch https://postgis.net/docs/using_postgis_dbmanagement.html#shp2pgsql_usage -d Drops the database table before creating a new table with the data in the Shape file. for ...
user30184's user avatar
  • 69k
5 votes

Running QGIS GUI in Docker Container

You need to export your current user and X-window environment correctly, which including you have to using the same user id, share .X11-unix socket and .XAuthority. Also you need to let the user have ...
void's user avatar
  • 51
5 votes
Accepted

GDAL Dockerfiles depending on Apache binary artifacts/packages no longer build successfully

I found that this is a known and recurring issue with Apache binary packages. Since I can't afford to have a hosting issue stop my builds, I decided to remove the reference to this repository before I ...
user1476258's user avatar
4 votes
Accepted

QGIS on docker container: Could not connect to any X display

This is how I found a solution: At shell I run: export QT_QPA_PLATFORM=offscreen Then, at a python script I did this: import os from qgis.core import * os.environ["QT_QPA_PLATFORM"] = "offscreen" ...
DrJacoby's user avatar
  • 781
4 votes

`ogr2ogr` command doesn't run the same through Docker

Found the second problem, first one was the missing --net=host parameter to connect inner command with outside Postgresql, as @user30184 correctly pointed out. The second problem, not writing the KML ...
FLC's user avatar
  • 151
4 votes

Running PyQGIS standalone script on Ubuntu terminal (docker)

The following solution worked for me: Xvfb :99 -ac -noreset & export DISPLAY=:99 instalacia xvfb: sudo apt-get install python-pip sudo apt-get install xvfb xserver-xephyr vnc4server sudo pip ...
Mehran's user avatar
  • 69
4 votes

Docker ogr2ogr & ogrinfo .shp shapefile "Unable to open datasource"

Mount your directory to the docker container ...Of course you need to do that. Otherwise the docker container won't contain any contents and the file myShapefile.shp is just not present and the ...
nonNumericalFloat's user avatar
4 votes
Accepted

Wrong order of the geometry parts in the result of QgsGeometry.difference()

By the simple features standard, the order of members in a multigeometry does not matter. The following query in PostGIS returns true. Notice also the reversed order of vertices in one part. SELECT ...
user30184's user avatar
  • 69k
3 votes
Accepted

QGIS PDF export SVG display issues within container

I managed to fix this by simply upgrading from a debian:buster-slim Docker image to debian:bullseye-slim. Presumably there was some dependency (likely related to SVG) that was not being properly met ...
tomfumb's user avatar
  • 3,698
3 votes

Using qgis-server docker behind reverse proxy

Use a docker-compose environment. To simplify things, work on the same host as your QGIS server docker. We will be using an off-the-shelf solution, provided by JWilder. The nginxreverse-proxy will: ...
RafDouglas C. Tommasi's user avatar
3 votes

Docker PostGIS .sql files not loading into database at build

I have a hunch about this, but you’ll need to try this out to see if it’s correct :-) As user30184 pointed out, it looks like you’re running a PostGIS query on a database without the PostGIS ...
Steven Kay's user avatar
  • 20.6k
3 votes
Accepted

Open Jupyter Notebook with Open Data Cube in docker

There's an example configuration of the Open Data Cube and Docker available called "Cube in a Box". You should be able to get something up using just Docker Compose, as shown below, but the above ...
Alex Leith's user avatar
  • 13.5k
3 votes

GeoServer - disk quota error

I think I found the solution. To fix this issue I followed these steps: Disabled the check box for disk quota Delete the file diskquota.index.db on folder gwc/diskquota_page_store_h2 Enable the check ...
Doug P's user avatar
  • 131
3 votes

Reduce QGIS Docker image size

The official QGIS docker image requires that much space because it includes the complete source code, all the dependencies required to build QGIS (which are at least a couple of GB's heavy) and also ...
CodeBard's user avatar
  • 3,699
2 votes
Accepted

Building Docker image including IPython Notebook and EE?

The tylere/docker-tmpnb-ee repository is not longer being maintained. Development has moved to https://github.com/gee-community/ee-jupyter-contrib
Tyler Erickson's user avatar
2 votes
Accepted

Creating a GRASS GIS Docker container with a mounted volume

I have managed to produce a reproducible environment that, although it's not my perfect solution, at least gives me the primary things I want, with only a few limitations. Objectives Uses Docker ...
alphabetasoup's user avatar
2 votes
Accepted

PDAL pipeline could not connect to server: Connection refused

The problem is that localhost inside of your Docker container refers to the container, not the host where Postgres is running. If you add --net=host to your docker run commend, then your Docker ...
dbaston's user avatar
  • 13.2k
2 votes

How to run PDAL pipeline with docker

So the line which does the job is: sudo docker run --net=host -v /home/user/Documents/projectX:/data pdal/pdal:1.7 pdal pipeline /data/laz2pg.txt
Neven's user avatar
  • 546
2 votes

QGIS Server - Docker - Multiple Projects

I found now a working solution for my problem. However to be honest I am not really convinced of this solution (but it is working). Currently I have used QGIS Server 2.18 but I think it should work ...
Jonathan's user avatar
  • 523
2 votes

shp2pgsql available in postgis:13-3.1-alpine but no in postgis:13-3.1 docker image

I ran into the same problem and I think I might have a more elegant solution to this. You can use a multi stage docker build to install shp2pgsql and copy it to your final docker image. This would ...
Alexandre Babouin's user avatar
2 votes
Accepted

Unable to install proj related Python packages in a Linux alpine environment

From: https://github.com/pyproj4/pyproj/issues/767, proj-util is the missing package. Based on the version compatibility matrix: https://pyproj4.github.io/pyproj/stable/installation.html#installing-...
snowman2's user avatar
  • 7,527
2 votes

No ST_* spatial functions are available in SQLite3

You simply did not read the reference doc from Spatialite as I suppose you were expecting portability between PostGIS and Spatialite spatial SQL syntaxes. You are correctly loading your extension but ...
ThomasG77's user avatar
  • 31.2k
2 votes

How should ODC databases be restored and snapshot in Docker?

I don't think you should store application state in a Docker container. And DB data kind of fits this. There's a post here, which says it's not best practice. using a Dockerfile allows you to ...
Alex Leith's user avatar
  • 13.5k
2 votes

pg_tileserv Docker - How to access and modify the configuration file?

Okay, so this is more of a docker question than a GIS question and probably should have been placed on stackoverflow. Anyway, you probably want to mount the config file into the docker container. I've ...
RedM's user avatar
  • 1,653
2 votes
Accepted

v.in.ogr does not provide any error information

Before you can import a file using v.in.ogr you first have to create a GRASS environment: a database, location, and mapset. I use this same Docker container (in conjunction with some workflow software)...
alphabetasoup's user avatar
2 votes
Accepted

QGIS OpenRouteService plugin: using OpenRouteService run in Docker rather than the ORS main API

You don't need to link QGIS to Docker. You need the 'Open Route Service plugin' to use the API exposed by the dedicated instance you deploy with Docker. 'Open Route Service plugin' allows you to ...
Kasper's user avatar
  • 3,585
2 votes

ArcGIS Python API wont run in Docker

I had the same issue. I was able to solve it by downgrading the Python library 'urllib3' back to 1.26.14 in my requirements.txt file. ie. urllib3==1.26.14
Patrick C's user avatar
2 votes
Accepted

Setting up QGIS Python scripts in Docker container

As suggested, using an official QGIS Docker image works great. Dockerfile # Use an official QGIS image FROM qgis/qgis # Set environment variables for QGIS ENV QGIS_PREFIX_PATH=/usr ENV ...
Timothée Billiet's user avatar

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