143 Commits

Author SHA1 Message Date
Nyall Dawson
22a4b881d3 Sipify 2021-02-12 15:41:14 +10:00
Nyall Dawson
d5e2051818 Spelling 2021-02-12 15:41:14 +10:00
Nyall Dawson
4b921d9ee9 Respect project "avoid tile artefacts" setting when rendering
a project using WMS services

Fixes #37679
2021-02-12 15:41:14 +10:00
Nyall Dawson
50b9beaad6 [sipify] Catch more class references and insert :py:class: annotations 2021-01-31 05:41:22 +10:00
Alessandro Pasotti
0290024f21 Remove unused MAX_CACHE_LAYERS 2021-01-16 06:40:33 +10:00
Marco Hugentobler
090cd5c036 Add project setting if attribute form should be considered for feature info 2021-01-15 11:27:22 +01:00
pathmapper
d9c220882b Addressing code review comments 2021-01-05 04:18:51 +10:00
pathmapper
7ef6f6ac64 Run sipify_all to fix qgsserverprojectutils.sip.in 2021-01-05 04:18:51 +10:00
Alessandro Pasotti
a470c025ca Server profiler 2020-12-02 13:55:27 +01:00
Alessandro Pasotti
1cc55f99c4 Server landing page: use cached projects 2020-11-19 12:32:00 +01:00
Nyall Dawson
403b2142ee Fix incorrect reference to non-existing DONT_LOAD_LAYOUTS flag 2020-08-31 11:38:02 +10:00
Blottiere Paul
028634f433 Update sip binding 2020-08-27 10:51:33 +02:00
Blottiere Paul
94e9a91592 Clean 2020-08-27 10:14:21 +02:00
Blottiere Paul
3efd98d9cf Update unit tests 2020-08-27 10:14:21 +02:00
Blottiere Paul
904000c143 Add name method 2020-08-27 10:14:19 +02:00
Blottiere Paul
d601f93ad1 Update doc 2020-08-27 10:12:55 +02:00
Blottiere Paul
48b21a052f Add new settings 2020-08-27 10:11:40 +02:00
rldhont
3372a9267d
Merge pull request #38240 from rldhont/server-dont-load-layouts
New QGIS Server setting environement to disable GetPrint and do not load layouts
2020-08-24 14:21:15 +02:00
Nyall Dawson
f496173bd7 Fix messy doxygen blocks which mess with sipify script
Fixes #38291
2020-08-20 17:01:35 +10:00
rldhont
98741cb91f Change to QGIS_SERVER_DISABLE_GETPRINT 2020-08-17 18:46:16 +02:00
rldhont
fa7da5a68b New QGIS Server setting environement to do not load layouts
Defined a new QGIS Server setting environnement `QGIS_SERVER_DONT_LOAD_LAYOUTS` to do not load layouts when QGIS Server reads projects.
This variable will disable QGIS Server GetPrint capabilities.
2020-08-13 14:20:00 +02:00
rldhont
d711db570a Server: define QGIS_SERVER_TRUST_LAYER_METADATA setting environnement 2020-08-11 18:14:15 +02:00
Alessandro Pasotti
00853d1ab1 Typo 2020-08-06 17:09:51 +02:00
Alessandro Pasotti
a8e033c794 Updated client after rebase 2020-08-06 15:57:38 +02:00
Alessandro Pasotti
de83d28b76 Code layout and sip 2020-08-06 14:53:35 +02:00
Alessandro Pasotti
c3b7cb1c87 Server: add path() accessor to request handler
just for convenience
2020-08-06 14:52:07 +02:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Nyall Dawson
cedd73ee4d More list formatting fixes 2020-06-13 16:49:14 +10:00
Juergen E. Fischer
49c62a556f [sip] Fix use of deleted method in QgsRequestHandler (followup #37116, refs #37072) 2020-06-12 21:42:26 +02:00
Nyall Dawson
ae42850d08 Sipify 2020-06-11 13:29:59 +10:00
Nyall Dawson
c795ddb1e9 Updates 2020-06-11 13:29:59 +10:00
Alessandro Pasotti
055d7c6c64 Server: remove unused allowMethod
Fixes #36163
2020-06-05 11:49:29 +02:00
Even Rouault
cc1488fce9
Many classes: mark assignment operator as deleted due to existence of copy constructor 2020-06-02 13:56:18 +02:00
Harrissou Sant-anna
ea4f2bbfb9 Making lists in PyQGIS doc look better
and fix some wording
2020-05-20 16:39:42 +10:00
Matthias Kuhn
768d68f2bf Remove garbage
Pretty sure that was never put here on purpose
2020-05-04 16:12:29 +10:00
Alessandro Pasotti
860fb23e36 Server little cleanup (class documentation)
Plus removed sql injection protection from
sanitize because:

1. it was not required: the value goes into a QgsExpression and it's
never sent to a provider directly
2. it could have been misused with the wrong assumption that
it was robust implementation (it wasn't)
2020-04-23 12:17:09 +02:00
Alessandro Pasotti
83979c30ef Server: fix wrong comment and log message 2020-04-16 09:34:05 +02:00
Alessandro Pasotti
b94988aef6 Server: add QGIS_SERVER_IGNORE_BAD_LAYERS config option
Allow to override the default behavior in case of
bad layers (which is to invalidate the whole project).

When set to TRUE, the bad layers are skipped and the
project is considered available.

Followup #8922
2020-04-13 10:38:50 +02:00
Juergen E. Fischer
edee4a3d10 spelling fixes (closes #32408) 2020-02-28 21:04:02 +01:00
Marco Bernasocchi
c65815957d fix docstring "since" for QGIS_SERVER_WMS_MAX_XXXX to 3.6.2
This was backported in #9752
2020-01-17 10:55:03 +10:00
rldhont
4bb775cc3c [Server] Throw exception if bad layers are not restricted
QGIS Server throw an exception if the project has bad layers, but the user can defined restricted layers which are unpublished layers.

So restricted layers can be bad layers server side, it is not necessary an error.

This code verified that the bad layers are not restricted. If the project contains unrestricted bad layers, the server throw an exception.
2020-01-09 11:10:10 +01:00
Alessandro Pasotti
e1ea0f3c50 Add py code examples to api 2019-12-07 17:34:12 +01:00
rldhont
656f9e04bc [Bugfix][Server] Use floor and ceil for round extent coordinates in services capabilities 2019-11-20 21:46:56 +01:00
Alessandro Pasotti
fc9ba85efa Sipify 2019-11-12 12:22:18 +01:00
Alessandro Pasotti
f5e4a7c535 Removed unused and unuseful method + typo 2019-11-11 13:54:52 +01:00
Alessandro Pasotti
7ab8f73092 Server OAPIF transactions: POST
Fix attributes and geometry transformation.
2019-11-11 13:54:52 +01:00
Alessandro Pasotti
814d5be0ff Server WFS3 simple transactions
Preliminary specs:
https://github.com/opengeospatial/ogcapi-features/blob/master/extensions/transactions/TX_Notes.adoc
2019-11-11 13:53:32 +01:00
Alessandro Pasotti
cadb7916b5 Server OAPIF: expose XML schema for collections
Also make sure links to parent paths end with /
2019-11-08 14:40:44 +01:00
Alessandro Pasotti
e8fa8edfc4 Typo 2019-10-30 17:46:27 +01:00
Alessandro Pasotti
76f4c96dc6 Remove unused code (leftover) 2019-10-30 11:53:14 +01:00