Comments (13)
xvfd available in the jancelin/docker-qgis-server:2.18LTR !!! finally took the time to do it...
But I can't print the background maps as google-satellite or osm-mapnik :(
Can you test?
from docker-lizmap.
To activate the the xserver :
- List the containers
docker ps
and get the id of the qgis server (not lizmap) container. For exemple container id 09458996bc1c - Go into the container command line
docker exec -ti 09458996bc1c bash
- Follow steps here
- Leave the container
exit
docker-compose restart
. Opening the project should give an error- go back in the qgis server container and execute the following command line
Xvfb :99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset &
from docker-lizmap.
Always not possible to print pDF but PNG, SVG too
Maybe, due to HTTS use?
I catch nothing in the error.log
The request:
"GET /websig/lizmap/www/index.php/lizmap/service/?repository=montpellier&project=montpellier&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetPrint&FORMAT=pdf&EXCEPTIONS=application/vnd.ogc.se_inimage&TRANSPARENT=true&SRS=EPSG:3857&DPI=100&TEMPLATE=Landscape%20A4&map0:extent=431489.817076,5404400.156372,432674.845573,5405355.179338&map0:scale=5000&map0:LAYERS=tram_stop_work,osm-stamen-toner,Quartiers,publicbuildings,tramway,tramstop,edition_line,points%20of%20interest&map0:STYLES=default,default,default,default,black,default,default,default&map1:extent=417006.6137375999,5394910.340902998,447158.04891101,5414844.9948054&map1:LAYERS=Overview&LAYERS=tram_stop_work,osm-stamen-toner,Quartiers,publicbuildings,tramway,tramstop,edition_line,points%20of%20interest,Overview&STYLES=default,default,default,default,black,default,default,default,default&OPACITIES=255,255,255,255,255,255,255,255,255&description=Description&title=Map%27s+title HTTP/1.1" 200 1022 "https://www.gate-16.xyz/websig/lizmap/www/index.php/view/map/?repository=montpellier&project=montpellier" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0"
from docker-lizmap.
Thanks jl
Could be a PR in docker-qgis-server in my opinion !
from docker-lizmap.
;-)
This is happening in the debian:jessie image, not the lizmap one. I don't know the best way to modify only the debian image. But interested to learn @jancelin
from docker-lizmap.
Basically without testing :
1 - in Dockerfile here : https://github.com/jancelin/docker-lizmap/blob/master/Dockerfile
You could add xvfb
in line 8 before \
2 - in fcgid.conf : https://github.com/jancelin/docker-lizmap/blob/master/files/fcgid.conf between line 14 and 15
# Pass display number to QGIS MapServer instances
FcgidInitialEnv DISPLAY ":99"
3 - Add a new file in file folder : https://github.com/jancelin/docker-lizmap/tree/master/files called
xvfb.service with the following
[Unit]
Description=X Virtual Frame Buffer Service
After=network.target
[Service]
ExecStart=/usr/bin/Xvfb :99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset &
[Install]
WantedBy=multi-user.target
Source : https://gist.github.com/ypandit/f4fe751bcbf3ee6a32ca
4 - Add this line at line 18 in setup.sh here : https://github.com/jancelin/docker-lizmap/blob/master/files/setup.sh
mv /home/files/xvfb.service && chmod +x /etc/systemd/system/xvfb.service && systemctl enable xvfb.service && systemctl start xvfb.service
from docker-lizmap.
You are right on the command lines but not on the repository.
This has to be done in the docker-qgis-server repository not here
from docker-lizmap.
Yes agree sorry !
Could be adapt quickly ...
from docker-lizmap.
yes ;-)
from docker-lizmap.
Do you want to do it ?
If not I could ;-)
from docker-lizmap.
from docker-lizmap.
@jlstanus can you print background with lizmap?
from docker-lizmap.
i will reinstall this docker in the next weekds, i keep you in touch
from docker-lizmap.
Related Issues (20)
- Service non disponible! HOT 31
- SSL Certificate - Error HOT 2
- Containeur se lance mais impossible de se connecter HOT 21
- Unable to view new projects HOT 2
- CORS error HOT 1
- Rancher support
- Error 500 to access lizmap after a new git clone HOT 11
- [DELETE]
- Service non Desponible HOT 5
- Aide pour installer sur OMV HOT 1
- Connect to PostGIS DB from outside HOT 1
- Invalid compose-file HOT 1
- Impossible d'accéder à la page admin HOT 4
- COmment accéder au répertoire où stocker les projets HOT 2
- SSL pour lizmap
- Lizmap ip:80 non fonctionnel sur le browser
- Migration container Lizmap : impossible de se connecter à l'application
- [3.3.0] a bytes-like object is required, not 'str'
- [nightly] Are you trying to mount a directory onto a file? HOT 2
- [nightly] where is the postgis container?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-lizmap.