158 Commits

Author SHA1 Message Date
Blottiere Paul
1c9f9df0ea Add test 2017-10-26 14:27:05 +01:00
rldhont
dc6bdc2919 [Server][Tests] Fix WMS tests locally 2017-10-19 14:48:48 +02:00
Blottiere Paul
a3971ee0cd Update unit tests 2017-10-17 10:17:49 +01:00
rldhont
24a68547e2 [Server][WFS] Update GML GetFeature document 2017-10-12 13:50:03 +02:00
rldhont
0d350b8865 [Server][WFS][Feature] Support resultType=hits from GetFeature 1.1.0 2017-10-12 13:49:51 +02:00
rldhont
1e009b47e6 [Server][Tests] Update PyQgsServerWFS test for 1.1.0 2017-10-12 13:49:42 +02:00
rldhont
b8ebbc1455 [Server][Tests] Add PyQgsServerWFS test 2017-10-12 13:49:09 +02:00
Blottiere Paul
a9a2c200e3 Search schemaExtension.xsd in share directory 2017-10-10 08:02:33 +01:00
Blottiere Paul
8a09a197cc Merge pull request #5150 from pblottiere/server_bugfix_ogc_getfeatureinfo_invalid_format
[server][bugfix] Fix OGC test getfeatureinfo:invalid-info_format
2017-10-03 06:24:46 +01:00
Blottiere Paul
203e81fa6b Add tests 2017-09-29 09:30:20 +01:00
Blottiere Paul
04cdf496b7 Add some tests 2017-09-29 09:26:25 +01:00
rldhont
f926033699 [Server] WMS GetFeatureInfo refactoring 2017-07-17 12:39:34 +02:00
rldhont
aa24896ce1 Fix GML2 after GML3 improvements 2017-07-07 13:01:31 +02:00
Nyall Dawson
65a5669b25 Merge pull request #4727 from aaime/stroke_hairline
Fixes 16707, export of hairline results in a different visual thickness
2017-06-27 06:12:12 +10:00
Marco Hugentobler
ef8e58bcc2 Unit test for feature info geometry filter 2017-06-24 12:30:04 +02:00
Andrea Aime
b64f256e84 Fixes 16707, export of hairline results in a different visual thickness 2017-06-15 10:04:58 +02:00
rldhont
faa7c750bc Merge pull request #4699 from pblottiere/getlegendgraphic
[Server] WMS GetLegendGraphics refactoring
2017-06-12 09:40:57 +02:00
Blottiere Paul
c1657ac853 [Server] Add/update tests 2017-06-09 12:55:27 +01:00
Stéphane Brunner
9d9e94e6b9 Fix the mandatory OnlineResource 2017-06-09 13:32:47 +02:00
rldhont
ada8715691 [Server] Add GetStyles test 2017-05-29 12:14:46 +02:00
rldhont
e7d45a0976 [Server] Add DescribeLayer test 2017-05-26 16:59:23 +02:00
rldhont
83b3368e38 [Server] Add GetContext test 2017-05-26 15:48:03 +02:00
rldhont
6feca53278 [Server] Fix QgsServerProjectUtils readListEntry 2017-05-26 15:48:03 +02:00
Alessandro Pasotti
3c4567d0af [server] More WMS tests for FILTER parameter with bool operators and UTF8
Forward port from 2.18 commit 8fd4fc60697738a986207
2017-05-06 10:45:10 +02:00
rldhont
27a9053490 [Server] WMS GetCapabilities refactoring - Part 1
Part 1 for removing QgsWMSProjectParser from GetCapabilities
2017-04-25 14:11:36 +02:00
Alessandro Pasotti
d3453063ea [server] Tests housekeeping and improved robustness
* There is now a new common base class for QGIS Server testing
* WMS tests have been moved into their own class
* Added tests for onlineResource URL in query string
2017-04-24 14:28:52 +02:00
rldhont
04ed2b4dcd [Server] WFS GetCapapbilities and DescribeFeatureType refactoring
Remove QgsWFSProjectParser from GetCapabilities and DescribeFeatureType
2017-04-08 17:06:56 +02:00
rldhont
98d323edb1 [Server] Remove QgsWCSProjectParser 2017-02-27 16:55:00 +01:00
Marco Hugentobler
dedeb9cc81 Change gml test output (use xmlns instead of gml: which both is valid) 2017-02-12 16:29:45 +01:00
Blottiere Paul
5c8360dba2 [server] WIP clean project parsing by using QgsProject 2017-01-30 08:21:05 +01:00
rldhont
8475fc36f3 Update [QGIS Server] CITE WMS 130 Test project 2017-01-03 14:55:00 +01:00
rldhont
56633baffc [QGIS Server] CITE WMS 130 Test project
Add a project for OGC CITE WMS 130 tests
2016-12-13 13:07:51 +01:00
rldhont
29a05dfa9c Adapt WFS capabilties in server test for WMS 1.3.0 compliance 2016-12-12 14:06:14 +01:00
Marco Hugentobler
e6d4010eb6 Adapt expected capabilities / project settings response in server test for WMS 1.3.0 compliance 2016-12-01 10:30:04 +01:00
Alessandro Pasotti
49ae0206f4 [Server 3.0] Tests reliability + new auth test
- Local server searches for a free port before binding
- Server tests now ignore attributes order
- Updated reference docs
- Renamed projects ("+" -> "_")
- Added a smoke test for auth manager and WMS/WFS providers
2016-09-29 11:47:32 +02:00
Alessandro Pasotti
76d1e8a8ea [Server 3.0] migrate more tests 2016-09-26 19:32:14 +02:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Stéphane Brunner
47cf9240b3 Add and fix WFS server MAXFEATURES test
It was not working when we do a POST with an XML
2016-05-30 07:33:51 +02:00
Alessandro Pasotti
10e8807655 [server] Added regression test for #8656
Ref. commit b956874f02a9379
2016-05-20 09:57:17 +02:00
Nyall Dawson
0780527428 Fix PyQgsServer test on GDAL >= 2.0
Also fix handling of longlong types in wfs_describefeaturetype
2016-03-03 14:06:07 +11:00
rldhont
36b0c3c10a [BUGFIX][QGIS Server] WFS DescribeFeatureType Geometry element type
In the OGR provider, we can read:
```
Some ogr drivers (e.g. GML) are not able to determine the geometry type of a layer like this.
In such cases, we use virtual sublayers for each geometry if the layer contains
multiple geometries (see subLayers) otherwise we guess geometry type from first feature
```
It means that in DescribeFeatureType Geometry element can be describe as simple and the GML contains
simple and multi. It's not XML valid.
To fix it, for OGR provider Geometry element type is set to `gml:GeometryPropertyType`

For the next release, it will be interesting to allow users to specify whether the geometries are multi.
2016-02-26 10:08:07 +01:00
elpaso
82cee03057 Added test data for GetFeatureInfo 2016-02-22 18:52:53 +01:00
Juergen E. Fischer
294f033b81 adapt wfs capabilities test data to d11c689e 2016-02-10 09:54:40 +01:00
Matthias Kuhn
04919963f7 Merge pull request #2616 from SebDieBln/FixLayerCountAttribute
Remove the 'layercount' attribute in a project file
2016-01-12 10:46:17 +01:00
rldhont
e276f170c7 [Feature][QGIS Server] Add WMS INSPIRE Capabilities
In the project properties the user can:
* activate INSPIRE capabilities
* select language of the service, 24 EU official languages + 5 regionals
* choose the scenario for service metadata and specify them

The WMS 1.3.0 capabilities reflects the INSPIRE configuration.
2016-01-11 21:12:09 +01:00
Sebastian Dietrich
d26bd46d99 remove 'layercount' attribute from project file
The 'layercount' attribute was not used anyway and the calculated number could already be outdated when loading the project file again due to changes to embedded projects.
2016-01-08 16:10:58 +01:00
rldhont
a32587bcd1 [FEATURE][QGIS Server] Add short name to layers, groups and project
A number of elements have both a <Name> and a <Title>. The Name is a text string used for machine-to-machine
communication while the Title is for the benefit of humans. For example, a dataset might have the descriptive Title
“Maximum Atmospheric Temperature” and be requested using the abbreviated Name “ATMAX”.

User can already set title for layers, groups and project. OWS name is based on the name used in layer tree. This name is more a label for humans than a name for machine-to-machine communication.

To add the capability to users to define Name as a text string for machine-to-machine communication, this pull-request adds:
* short name line edits to layers properties
* WMS data dialog to layer tree group (short name, title, abstract)
* short name line edits to project properties
* add a regexp validator "^[A-Za-z][A-Za-z0-9\._-]*" to short name line edit accessible through a static method
* add a TreeName element in the fullProjectSettings

If a short name has been set for layers, groups and project it is used by QGIS Sever as the layer name.
2015-12-23 10:03:04 +01:00
rldhont
e2d1320295 [BUGFIX] WFS GetCapabilities respons misses <keywords> key
Fixes #13037 WFS GetCapabilities respons misses <keywords> key

Replace KeywordList by Keywords in WFS Getcapabilities and keywords in WCS GetCapabilities.
2015-12-18 12:20:12 +01:00
rldhont
9e8e868a0f [TEST][QGIS Server] Add WFS GetFeature STARTINDEX test 2015-12-15 17:18:41 +01:00
AsgerPetersen
3d937e1deb Simple python tests of WFS responses 2015-12-15 13:51:11 +01:00