Giter Site home page Giter Site logo

Comments (5)

dmarteau avatar dmarteau commented on June 15, 2024

There is also custom function in qgis profile folder.

Make sure that the environment variable QGIS_OPTIONS_PATH is correctly set when running the server.

See https://docs.qgis.org/3.22/en/docs/server_manual/config.html#environment-variables

from py-qgis-server.

lassitanskanen avatar lassitanskanen commented on June 15, 2024

I use default options path.

from py-qgis-server.

dmarteau avatar dmarteau commented on June 15, 2024

I use default options path.

This may be undefined: that depends how you start the server (if you use Docker then there is no such thing as default options path and you must bind mount the profile directory explicitely)

To make sure that your are using the correct profile provide a QGIS_OPTIONS_PATH environment variable that hold the path to the profile folder. Remember that the server is expected to run in its own environment (no qgis desktop around) and doesn't known about your Qgis desktop settings.

from py-qgis-server.

r9zzai avatar r9zzai commented on June 15, 2024

I've another question related to getfeatureinfo. Actual external wms layers shows no info onclick. It could be implented by js by identifying lizMap.layers .. url does not include lizMap.map.baseURI. For performance issues we actually clone projects and embed "internal" WMS layer so that all CPU cores are used. To overcome the issue that third party can see the "internal" wms link and probably can embed project layers into their own projects we create xml files with gdal_translate command and embed them instead of wms source layers. But now per js we cannot see then what layer is embedded externally (by url). What would be a better approach? Use internal wms without xml (gdal_wmts because gdal_wms dont respect layer transparency) and set credentials/auth? I made researches but it seems to be difficult to set auth for a qgis project. Another question is why it is not documented/worked on that using internal wms layer can use all CPU cores? I know its all about simplification (make no sense display 10 k features). But I think with project caching function of pyqgisserver big projects with 100+ layers will load in time the focus of multiprocessing will be rising. I like to have a big project rather than 3-4 small ones.

from py-qgis-server.

dmarteau avatar dmarteau commented on June 15, 2024

I've another question related to getfeatureinfo. Actual external wms layers shows no info onclick...

Sorry, but I dont see how that relates to the actual issue: It seems to to me that it is more a Qgis issue/question since py-qgis-server is a wrapper around Qgis server and that is related how Qgis handle external wms.

from py-qgis-server.

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.