Comments (21)
Can you try a request SERVICE=ATLAS&REQUEST=GETCAPABILITIES
to check that the plugin is well installed?
Did you clear the cache of the getcapabilities response?
from qgis-wfsoutputextension.
Hi Gustry,
Thanks for your answer.
The request with "SERVICE=ATLAS&REQUEST=GETCAPABILITIES" don't work:
Service unknown or unsupported
But it works with "SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"
from qgis-wfsoutputextension.
The request with "SERVICE=ATLAS&REQUEST=GETCAPABILITIES" don't work:
and
But it works with "SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities"
They are two different requests. You must have the first one working. It means the plugin is not well installed.
Did you put the folder wfsOutputExtension
next to the other one? (named like this)
from qgis-wfsoutputextension.
I put the extension folder in the /opt/qgis-server/plugins just near the folder qgis-helloserver
from qgis-wfsoutputextension.
I said something wrong early,
I modified the file /etc/apache2/mods-available/fcgid.conf for adding the QGIS_PLUGINPATH
Maybe should I modified the file /etc/apache2/conf-available/serve-cgi-bin.conf ?
from qgis-wfsoutputextension.
J'ai le même problème avec :
QGIS 3.10.8
Lizmap 3.3.9
QGIS server 3.10.7.1
WFSoutputExtension 1.3.0 ou 1.2.3 (les deux versions ont été testées)
Windows server 2012
Le dossier du plugin est déposé ici :
\OSGeo4W64\apps\qgis-ltr\python\plugins\
Le getCapabilities ne mentionne que les formats de base GeoJson et GML
Je suis preneur d'une piste parce que je n'en ai plus moi même :)
Merci
from qgis-wfsoutputextension.
Take a look at the QGIS Server Log, you can check if the plugin is installed and well loaded.
from qgis-wfsoutputextension.
Thank you for your answer.
Indeed, here is my log :
QGIS version:
3.10.8-A Coruña 'A Coruña', d09a4f2388
Python path:
['C:\\OSGeo4W64\\apps\\qgis-ltr\\python', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python\\plugins', 'C:\\OSGeo4W64\\apps\\Python37\\DLLs', 'C:\\OSGeo4W64\\ap', 'C:\\OSGeo4W64\\bin\\python37.zip', 'C:\\OSGeo4W64\\apps\\Python37\\lib', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\bin', 'C:\\OSGeo4W64\\apps\\Python37', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages\\win32', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages\\Pythonwin']
16:42:31 WARNING Python error[19460]: An error occurred during execution of following code:
qgis.utils.initServerInterface(465349856352)
Traceback (most recent call last):
File "", line 1, in
File "C:/OSGeo4W64/apps/qgis-ltr/./python\qgis\utils.py", line 612, in initServerInterface
from qgis.server import QgsServerInterface
ImportError: cannot import name 'QgsServerInterface' from 'qgis.server' (unknown location)
Python version:
3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
QGIS version:
3.10.8-A Coruña 'A Coruña', d09a4f2388
Python path:
['C:/OSGeo4W64/apps/qgis-ltr/./python', 'C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python\\plugins', 'C:/Windows/system32/config/systemprofile/AppData/Roaming/QGIS/QGIS3\\profiles\\default/python/plugins', 'C:/OSGeo4W64/apps/qgis-ltr/./python/plugins', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\python\\plugins', 'C:\\OSGeo4W64\\apps\\Python37\\DLLs', 'C:\\OSGeo4W64\\ap', 'C:\\OSGeo4W64\\bin\\python37.zip', 'C:\\OSGeo4W64\\apps\\Python37\\lib', 'C:\\OSGeo4W64\\apps\\qgis-ltr\\bin', 'C:\\OSGeo4W64\\apps\\Python37', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages\\win32', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W64\\apps\\Python37\\lib\\site-packages\\Pythonwin']
16:42:31 WARNING Python error[19460]: Traceback (most recent call last):
File "C:/OSGeo4W64/apps/qgis-ltr/./python\qgis\utils.py", line 634, in startServerPlugin
server_plugins[packageName] = package.serverClassFactory(serverIface)
File "C:\OSGeo4W64\apps\qgis-ltr\python\plugins\wfsOutputExtension\__init__.py", line 35, in serverClassFactory
return WfsOutputExtensionServer(serverIface)
File "C:\OSGeo4W64\apps\qgis-ltr\python\plugins\wfsOutputExtension\wfs_output_extension_server.py", line 14, in __init__
from .wfs_filter import WFSFilter
File "C:/OSGeo4W64/apps/qgis-ltr/./python\qgis\utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\OSGeo4W64\apps\qgis-ltr\python\plugins\wfsOutputExtension\wfs_filter.py", line 21, in <module>
from qgis.server import QgsServerFilter
ImportError: cannot import name 'QgsServerFilter' from 'qgis.server' (unknown location)
16:42:31 WARNING Couldn't load server plugin wfsOutputExtension due to an error when calling its serverClassFactory() method[19460]: Couldn't load server plugin wfsOutputExtension due to an error when calling its serverClassFactory() method
ImportError: cannot import name 'QgsServerFilter' from 'qgis.server' (unknown location)
Traceback (most recent call last):
File "C:/OSGeo4W64/apps/qgis-ltr/./python\qgis\utils.py", line 634, in startServerPlugin
server_plugins[packageName] = package.serverClassFactory(serverIface)
File "C:\OSGeo4W64\apps\qgis-ltr\python\plugins\wfsOutputExtension\__init__.py", line 35, in serverClassFactory
return WfsOutputExtensionServer(serverIface)
File "C:\OSGeo4W64\apps\qgis-ltr\python\plugins\wfsOutputExtension\wfs_output_extension_server.py", line 14, in __init__
from .wfs_filter import WFSFilter
File "C:/OSGeo4W64/apps/qgis-ltr/./python\qgis\utils.py", line 743, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:\OSGeo4W64\apps\qgis-ltr\python\plugins\wfsOutputExtension\wfs_filter.py", line 21, in
from qgis.server import QgsServerFilter
ImportError: cannot import name 'QgsServerFilter' from 'qgis.server' (unknown location)
Thank you
from qgis-wfsoutputextension.
@Glasnost46 Your problem is quite different.
QGIS Server detected the plugin and tried to load it.
But it fails on the Python API:
ImportError: cannot import name 'QgsServerFilter' from 'qgis.server' (unknown location)
I have never tried to install a QGIS plugin server on Windows.
Did you use https://github.com/NaturalGIS/qgis_server_and_lizmap_on_windows ?
CC @gioman, do you know about installing QGIS Server plugin on Windows?
from qgis-wfsoutputextension.
Thanks for your reply Gustry.
I have use the lizmap website to install all (https://docs.lizmap.com/current/fr/install/windows.html), everything seems to work fine except this plugin. My getcapabilities requests are ok.
from qgis-wfsoutputextension.
CC @gioman, do you know about installing QGIS Server plugin on Windows?
@Gustry I have not tested QGIS Server plugins on Windows, nevertheless it would intersting to do so on a machine where QGIS Server was installed and configured with the "recipe" https://github.com/NaturalGIS/qgis_server_and_lizmap_on_windows @Glasnost46 could you do it?
from qgis-wfsoutputextension.
@Glasnost46 could you do it?
I think my setup is ok, except for this plugin.
This plugin worked on windows2012 in my previous setup with qgis2.8 / lizmap 3.2 / qgisserver
from qgis-wfsoutputextension.
qgisserver
QGIS Server 2 or 3?
from qgis-wfsoutputextension.
qgisserver
QGIS Server 2 or 3?
With QGIS server 2.18.28
from qgis-wfsoutputextension.
QGIS Server 3 was basically rewritten from scratch, so there is a chance that something is not working with plugins on Windows.
from qgis-wfsoutputextension.
@Glasnost46 In your comment, you are talking about QGIS 3:
#15 (comment)
At the top, we can read
QGIS version: 3.10.8-A Coruña 'A Coruña', d09a4f2388
Where did you get this from?
If you are really running QGIS Server 2 (so you must have QGIS Desktop 2 too !), the AtlasPrint plugin must be an older version maybe like 1.1.0 https://github.com/3liz/qgis-atlasprint/releases That's you got the error "ImportError: cannot import name 'QgsServerFilter' from 'qgis.server' (unknown location)"
from qgis-wfsoutputextension.
@Glasnost46 In your comment, you are talking about QGIS 3:
#15 (comment)At the top, we can read
QGIS version: 3.10.8-A Coruña 'A Coruña', d09a4f2388
Where did you get this from?
From my actual qgis_server.log
If you are really running QGIS Server 2 (so you must have QGIS Desktop 2 too !), the AtlasPrint plugin must be an older version maybe like 1.1.0 https://github.com/3liz/qgis-atlasprint/releases That's you got the error "ImportError: cannot import name 'QgsServerFilter' from 'qgis.server' (unknown location)"
Now I'm using qgis server 3.10.7.1 with Qgis 3.10.8 and the plugin doesn't work.
Before, with qgis server 2.18.28 and qgis 2.8 it worked well.
I haven't the atlas plugin in my plugin folder.
Anyway, a conflict between old and new files is quite possible I guess.
Thanks for your help
from qgis-wfsoutputextension.
Hi.
I'm back from my Hollidays and the cruel life.
I will try to install the plugin again and the atlasprint plugin, but it failed to.
I try to had those lines to the 000-default.conf but the qgis-server crashed ...
_<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
FcgidInitialEnv DISPLAY ":99"
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL "0"
FcgidInitialEnv QGIS_SERVER_LOG_STDERR "1"
<Location /qgisserver>
SetHandler fcgid-script
FcgidWrapper /usr/lib/cgi-bin/qgis_mapserv.fcgi virtual
Options +ExecCGI -MultiViews +FollowSymLinks
Require all granted
</Location>
</VirtualHost>_
from qgis-wfsoutputextension.
Did you make some progress?
I will try to install the plugin again and the atlasprint plugin, but it failed to.
Do you have any error message?
Check :
- Where QGIS is looking for plugins?
- If the folder is correct,
wfsOutputExtension
with themetadata.txt
inside. Better to take the zip from release - Check the rights on the file.
root
might not be good when unzipping
from qgis-wfsoutputextension.
I've also tried to enable wfsOutputExtension qgis-server plug-in. At first I had difficulties, because it was not clear to me where should I put the QGIS_PLUGINPATH line (having Apache2 with FastCGI). I've checked qgis-server documentation here. I've modified my configuration at sites-available, than conf-available (serve-cgi-bin.conf). Nothing happened, GET CAPABILITIES not worked. It was not clear for me which file should I modify.
Than I started to check each qgis-server plug-in documentation I could find, and at Atlasprint plug-in I've found clearly specified /etc/apache2/mods-available/fcgid.conf
There I've pasted the following lines, reload and restart apache2 service and GET CAPABILITIES and lizmap export started to work.
FcgidInitialEnv LC_ALL "en_US.UTF-8"
FcgidInitialEnv PYTHONIOENCODING UTF-8
FcgidInitialEnv LANG "en_US.UTF-8"
FcgidInitialEnv QGIS_SERVER_LOG_FILE /tmp/qgis-000.log
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
FcgidInitialEnv QGIS_PLUGINPATH "/opt/qgis-server/plugins"
I've extracted as root user, seems it's not an issue.
Still having problems with accented/special characters, as it doesn't get recognized at export. I've thought the first 3 lines in the above config would help, but it didn't. But generally the plug-in is working, and I'm happy with it.
from qgis-wfsoutputextension.
I have reviewed the readme quickly and added a link to the AtlasPrint just in case.
Open a new ticket if you have any issue
from qgis-wfsoutputextension.
Related Issues (20)
- Problem with QGIS 3.16 (new LTR) HOT 5
- Fix name tag on GH Action
- New export formats not showing in drop down menu HOT 2
- Is a stable relase planned? HOT 1
- Reduce log output for WfsOutputExtension.sendResponse HOT 1
- Dxf format HOT 13
- Does not work on newer versions of QGIS Server HOT 5
- Additional outputFormats with WFS when using describeFeatureType
- Use the new API for QGIS Server for QGIS 3.24
- Field format altered text to numeric when exporting in csv/xlsx HOT 11
- Temporary space not left after not enought space error HOT 3
- Unreleased space after deleting files HOT 1
- Unreleased space after deleting files HOT 1
- Remowe wfsOutputExtension from QGIS Desktop plugins list? HOT 1
- No the good name and extension in the end of the file HOT 17
- Add .cpg file for Shapefile output
- Save SHP with .sld- and .qml-files to preserve styles. HOT 1
- On Win32: temporary files attempted to be removed before process completed, causing 'The process cannot access the file because it is being used by another process' error
- Add FlatGeobuf support HOT 4
- Requests with SRS=EPSG:3006 returns wrong bounding box HOT 1
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 qgis-wfsoutputextension.