kartoza / docker-qgis-server Goto Github PK
View Code? Open in Web Editor NEWA dockerfile that contains a running QGIS server
A dockerfile that contains a running QGIS server
Hi,
here with @tudorbarascu trying to run the image, but running:
http://localhost:8081/cgi-bin/qgis_mapserv.fcgi?
Shows: the requested URL /cgi-bin/qgis_mapserv.fcgi was not found on this server.
We found the qgis_mapserv.fcgi in /usr/bin cannot find configs pointing to that.
Any hints
i can't solve this problem plz help.
Service unknown or unsupportedhow can i solve this problem?
Hi. Just wondering if there is a 3.16 image I can use for this.
Also I'm assuming I just point desktop 3.16 to the localhost 8081 port to connect right? Thanks!
Due to the recent crash as described here: kartoza/geosafe#538 ,
we found out that on a GeoJSON layer with big size (something like 60MB in test case), the memory usage rocket into 2GB to process these layers. Moreover, when it crash, apache doesn't release the resources, so it has memory leak.
When processing huge GeoJSON layer like this, we might have to disable multiprocess thread.
Let's say the map client requested 4 tiles in parallel. Usually one QGIS Server instance might take all these request and handle it by forking the process in a different thread/worker. But for this case, it causes these problem:
So I suggest the following solutions:
CC @timlinux
Is is likely this process will work for QGIS Server 3?
I can set up a PR, if you like. Just wanted to confirm that it will work before I get stuck in...
This image does not work. Tried with the default project, copying my own into the container, and use a volume reference.
> <ServiceExceptionReport xmlns="http://www.opengis.net/ogc" version="1.3.0">
> <ServiceException code="Service configuration error">Service unknown or unsupported</ServiceException>
> </ServiceExceptionReport>``
Hi Tim,
It seems nginx could be a good alternative to Apache, see
http://osgeo-org.1560.x6.nabble.com/Use-Nginx-to-serve-QGIS-Server-td5175087.html
I write this issue just to share interest, and will try it whenever I can find enough time...
Hi,
we are fiddling with the QGIS-Server 3 container. I have a bunch of database layers (PostGIS), all in EPSG:25832. The projct is in EPSG:25832, too. GetCapabilities lists all layers with their bounding box and tells me that EPSG:25832 is an available CRS for both the project and the individual layers. A GetMap request however returns:
<ServiceExceptionReport version="1.3.0"> <ServiceException code="InvalidCRS">Could not create output CRS</ServiceException></ServiceExceptionReport>
Sorry I'm a newsbee in docker but I can't run your docker-qgis-server container.
docker run --name "qgis-server" -p 2222:22 -p 8080:80 -d -t kartoza/docker-qgis-server
7109debdbfe9fa698df41c3e15584a496116a1325e539388a52b4e6b47d541aa
2014/08/27 17:21:54 Error: Cannot start container 7109debdbfe9fa698df41c3e15584a496116a1325e539388a52b4e6b47d541aa: port has already been allocated
and if I change port docker create a container but his statut is exited:
docker run --name "qgis-server" -p 2222:22 -p 8081:80 -d -t kartoza/docker-qgis-server
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
75a6e3c0d7c6 kartoza/docker-qgis-server:latest /bin/sh -c 'apachect 3 seconds ago Exited (1) 2 seconds ago qgis-server
For exemple I have docker ui and It works fine:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
75a6e3c0d7c6 kartoza/docker-qgis-server:latest /bin/sh -c 'apachect 3 seconds ago Exited (1) 2 seconds ago qgis-server
5835fa3b861b crosbymichael/dockerui:latest ./dockerui -e /docke 7 weeks ago Up 21 minutes 0.0.0.0:8001->9000/tcp evil_brown
I have my compose file setup
postgres:
image: kartoza/postgis:9.5-2.2
ports:
- "35432:5432"
environment:
- USERNAME=docker
- PASS=docker
qgisserver:
image: kartoza/qgis-server:2.18.10
hostname: qgis-server
volumes:
- ./web:/web
environment:
- QGIS_PROJECT_FILE=/web/project/project.qgs
- PGSERVICEFILE=/web/project/pg_service.conf
links:
- postgres:postgres
ports:
- "30003:80"
When I log into the qgis-server container I can connect to the Postgres container by using the service file. psql service=gis
but when I do a get capabilities on my layer the request generated is not valid.
I then proceed to open the project file and replace my data source with a shapefile and do a get capabilities which returns true.
I think QGIS server is not connecting properly to the Postgres container.
When I try to build the image i get the following error:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
qgis-mapserver : Depends: qgis-providers (= 2.4.0+wheezy1) but it is not going to be installed
Depends: libgdal1 (>= 1.8.0) but it is not installable
Depends: libqgis-analysis2.4.0 but it is not going to be installed
Depends: libqgis-core2.4.0 but it is not going to be installed
Depends: libspatialindex1 but it is not installable
Hi,
Thank you very much for your work.
Is it ok to add "Header set Access-Control-Allow-Origin "*" " by default in in the apache conf ?
I can't request my WFS server from a client api like openlayers without CORS.
Thanks in advance
It would be really nice to add WPS functionality in this image:
After switching from kartoza/qgis-server:2.18 to kartoza/qgis-server:3.0.3 I encounter various issues.
Besides #17, the GetMap requests now respond with error code 400:
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" version="1.3.0">
<ServiceException code="InvalidCRS">Could not create output CRS</ServiceException>
</ServiceExceptionReport>
This might be caused by some path/config issue, as the log indicates some database access issues(?):
...
[84][12:42:10] Can't open database: unable to open database file
[84][12:42:10] Can't open database: unable to open database file
[84][12:42:10] Can't open database: unable to open database file
[84][12:42:11] Error, could not create output CRS from EPSG
I have run a docker qgis server instance, everything works fine with shapefiles, but when I load layers to Qgis Desktop from PostGis installed in the host and also in a docker container, the getCapabilities are not showing the layers.
I am running an Ubuntu 20.04 LTS host and Qgis Coruña. The containers were created based on the configuration bellow:
db:
image: kartoza/postgis:9.6-2.4
#volumes:
#- ./pg/postgres_data:/var/lib/postgresql
environment:
- USERNAME=docker
- PASS=docker
ports:
- "5433:5432"
qgisserver3:
#build : 3,0
image: kartoza/qgis-server:3.0.3
hostname: qgis-server
environment:
# set to '' if you plan on hosting
# multiple projects on this server an
# then add map= to your GET
# requests
- QGIS_PROJECT_FILE=''
# 0 = highest level, shows all messages
# 5 = very quiet
- QGIS_SERVER_LOG_LEVEL=0
volumes:
- /home/geo/Documents/qgis/projects:/project
ports:
- "80:80"
links:
- db:db
Hello, I want to deploy a QGIS project:
qgis_project.zip
Using this command:
docker run --name "qgis-server" -v $(pwd)/qgis_project/:/project -p 8080:80 -d -t kartoza/qgis-server:3.0.3
What I'm doing wrong?
With LTS version I don't have any problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.