Giter Site home page Giter Site logo

Comments (13)

jancelin avatar jancelin commented on August 17, 2024 2

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.

jlstanus avatar jlstanus commented on August 17, 2024 1

To activate the the xserver :

  1. List the containers docker ps and get the id of the qgis server (not lizmap) container. For exemple container id 09458996bc1c
  2. Go into the container command line docker exec -ti 09458996bc1c bash
  3. Follow steps here
  4. Leave the container exit
  5. docker-compose restart. Opening the project should give an error
  6. 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.

jlstanus avatar jlstanus commented on August 17, 2024

Always not possible to print pDF but PNG, SVG too

Maybe, due to HTTS use?

I catch nothing in the error.log

image

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.

kikislater avatar kikislater commented on August 17, 2024

Thanks jl
Could be a PR in docker-qgis-server in my opinion !

from docker-lizmap.

jlstanus avatar jlstanus commented on August 17, 2024

;-)
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.

kikislater avatar kikislater commented on August 17, 2024

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.

jlstanus avatar jlstanus commented on August 17, 2024

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.

kikislater avatar kikislater commented on August 17, 2024

Yes agree sorry !
Could be adapt quickly ...

from docker-lizmap.

jlstanus avatar jlstanus commented on August 17, 2024

yes ;-)

from docker-lizmap.

kikislater avatar kikislater commented on August 17, 2024

Do you want to do it ?
If not I could ;-)

from docker-lizmap.

jlstanus avatar jlstanus commented on August 17, 2024

from docker-lizmap.

jancelin avatar jancelin commented on August 17, 2024

@jlstanus can you print background with lizmap?

from docker-lizmap.

jlstanus avatar jlstanus commented on August 17, 2024

i will reinstall this docker in the next weekds, i keep you in touch

from docker-lizmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.