102 Commits

Author SHA1 Message Date
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
Alessandro Pasotti
358c814722 Server OAPIF temporal extent 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
3a10f69d80 Server OAPIF use QgsRange classes for intervals
with full test coverage for single values and ranges,
supports time, datetime and string fields.
2019-10-30 11:53:14 +01:00
Alessandro Pasotti
07bb6b77e1 Server OAPIF datetime filter support
with full test coverage for single values and ranges,
supports time, datetime and string fields.
2019-10-30 11:53:14 +01:00
Alessandro Pasotti
595807171d Server: datetime basic filter support for OAPIF 2019-10-30 11:53:14 +01:00
Alessandro Pasotti
6112da45f6 Server OAPIF datetime support 2019-10-30 11:53:13 +01:00
Juergen E. Fischer
b81d306047 spelling fixes (closes #32408) 2019-10-26 10:50:30 +10:00
Alessandro Pasotti
67c8e56f9c QGIS Server WFS3 ACL + alias + excluded fields
Takes into account aliases, excluded attributes and ACL plugins
2019-09-10 18:21:53 +02:00
Alessandro Pasotti
95c0ad54ff WFS3 add ACL and other visibility options 2019-09-10 18:21:53 +02:00
Alessandro Pasotti
c9c2d3ed27 Server API: simplify contentTypes handling and allow overrides 2019-08-20 12:22:32 +02:00
Alessandro Pasotti
dab7481083 More Python exception bubbling and SIP enum fix 2019-08-19 20:50:01 +02:00
Alessandro Pasotti
4cc7a0ffa6 Server: catch Python exceptions from plugins
Make sure Python exceptions are converted into
QgsServerException and catched by the main
service executor.

Without this patch, the server process is terminated
(aborted).
2019-08-19 18:32:03 +02:00
Nyall Dawson
dd27f72b0e Convert doxygen \throws to Sphinx :raises: syntax in sipify 2019-08-14 06:45:54 +10:00
Alessandro Pasotti
92ac7a2e93
[server] Server api and WFS3 (#10016)
Implementation of OGC API and WFS3 core draft specification
2019-08-06 16:38:21 +02:00
Éric Lemoine
23872fcc41 Improve the API docs 2019-06-18 14:48:23 +02:00
lbartoletti
35c4209bfd New parameter for WMS service: tile_buffer [needs-docs][FEATURE] 2019-06-04 07:20:29 +02:00
Juergen E. Fischer
3017c7a1c8 qgis server: track timestamps of remote projects 2019-05-15 21:58:41 +02:00
David Signer
450e193c85 fix comment since 3.4 2019-04-24 14:22:39 +02:00
David Signer
27fc381600 fix comment 2019-04-12 22:24:42 +02:00
David Signer
1c3cfd1e13 use calculation factor for scale 2019-04-11 11:42:45 +02:00
David Signer
7ef426b0ef using of configured default map units per mm for legend symbols in case no BBOX parameter is passed 2019-04-11 11:42:45 +02:00
Marco Bernasocchi
8b3f97fa19
Merge pull request #9691 from mbernasocchi/check_width_height
Allow setting wmsMaxWidth and wmsMaxHeight in the server env
2019-04-05 20:04:40 +02:00
rldhont
98235eb46b [Bugfix][Server] QGIS Server removes empty string in style parameter even if it describes default style
In OGC WMS standard, the empty string represents the default style.

QGIS Server when it parses the parameters, QGIS Server when it parses parameters it removes empty parts.
When all requested styles are default ones it's equal to an empty parameter STYLE, as defined in the standard.
When only one layer is requested, there is no issue with custom or default style.
When multiple layers are requested and some with custom styles, because QGIS Server does not retain empty strings, it loses the layer / style match.

To fix it, keeps empty parts for not empty styles parameters.
2019-04-05 09:29:21 +02:00
Marco Bernasocchi
2cda2afe3e Add test and sip
add missing methods

Signed-off-by: Marco Bernasocchi <marco@opengis.ch>

Update src/server/qgsserversettings.cpp

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Update src/server/qgsserversettings.cpp

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Update tests/src/python/test_qgsserver_wms_getmap.py

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Update src/server/qgsserversettings.h

Co-Authored-By: mbernasocchi <marco@opengis.ch>

Adress most review comments in PR

Signed-off-by: Marco Bernasocchi <marco@opengis.ch>
2019-04-05 08:01:41 +02:00
Alessandro Pasotti
0355611b60 Added \since QGIS 3.8 2019-04-01 17:25:36 +02:00
Alessandro Pasotti
120ae773b6 [server][feature][needs-docs] Add env vars to override locale ...
...and group separator:

QGIS_SERVER_OVERRIDE_SYSTEM_LOCALE (default '')
QGIS_SERVER_SHOW_GROUP_SEPARATOR (default false)
2019-04-01 16:22:37 +02:00
Blottiere Paul
b0ef62ba51 Fixes compilation 2019-03-22 12:57:28 +00:00
Blottiere Paul
096bd79565 Update sip binding 2019-03-22 12:36:52 +00:00
Nyall Dawson
107b48a430 Add NULLPTR macro for use in doxygen comments
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)

Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Blottiere Paul
0a76d7c108 Fixes unit tests 2019-02-26 08:24:37 +00:00
Nyall Dawson
384d310233 Minor improvements to PyQGIS returns for SIP_OUT params 2019-02-05 04:55:34 +11:00
mhugent
b5febe5189
Merge pull request #8922 from mhugent/server_datasource_error
Server: catch datasource error
2019-01-24 17:27:13 +01:00
Marco Hugentobler
9eeaa31c9e =default with extra-asterisk 2019-01-24 09:58:39 +01:00
Marco Hugentobler
b5a4875536 Add autogenerated sip file and remove =default in qgsstorebadlayerinfo.h (rejected by travis) 2019-01-23 09:25:02 +01:00
Alessandro Pasotti
02c3c8e84a Fix doxy string 2019-01-22 09:44:00 +01:00
Alessandro Pasotti
691176b39b Fix POST requests for QGIS server
Followup https://github.com/qgis/QGIS/pull/8830 that fixed
a regression with rewritten urls in the server, unfortunately
my original solution introduced a side-effect on the POST
request, with the new approach I'm introducing a new method
to retrieve the URL as seen by the web server: by default
this is the same URL seen by QGIS server, but in case
a rewrite module made some changes, the original URL will
be used as a base URL if not overridden by a config setting.

This PR comes with an extended set of tests that should
cover both (rewritten and unrewritten) cases for GET and
POST and for WFS/WFS/WCS and WMTS.
2019-01-21 19:15:49 +01:00
Alessandro Pasotti
4d609ff46f
Merge pull request #8830 from elpaso/bugfix-server-fcgi-rewritten-uri
[server] Use REQUEST_URI as default URL for FCGI requests
2019-01-11 15:58:26 +01:00
Alessandro Pasotti
cd763bccf2 Update override comment with a full explanation of what it does
Also checks for original url emptiness before returning it.
2019-01-10 10:58:27 +01:00
Blottiere Paul
fcc3996ddf Remove unnecessary #include in server 2019-01-10 07:50:02 +10:00
Alessandro Pasotti
00ec08a8aa Rewritten function comment 2019-01-09 18:46:32 +01:00
Alessandro Pasotti
bb9ec39fa6 [server] Fix URL rewrite from fcgi servers
The URL exposed in the XML documents generated
by the server was wrong because instead of
using the original URL (from REQUEST_URI)
the rewritten query string (from QUERY_STRING)
was applied to the internal mUrl variable.

This patch also adds some tests for the
FCGI request, that handle most common
scenarios with bot rewritten and not
rewritten URLs.

QgsFcgiServerRequest is now exposed to
Python mainly for testability purposes.
2019-01-09 18:46:32 +01:00