138 Commits

Author SHA1 Message Date
Alessandro Pasotti
0f2a70a39a PG raster: simplify tests data 2020-04-06 10:51:09 +02:00
Alessandro Pasotti
3f8c28b684 Fix temporal range slices (exclude end) 2020-04-06 10:51:08 +02:00
Marco Hugentobler
4cd464059c Revert test gpkg files 2020-03-30 08:26:16 +02:00
Marco Hugentobler
934e30f30e Adapt expected test output 2020-03-27 14:38:32 +01:00
Alessandro Pasotti
9815b2ae84 PG raster: update extent when filter changes
plus other changes:
- fix extent calculation when filter is set
- more tests
2020-03-04 14:29:34 +01:00
Alessandro Pasotti
a6679eedd1 PG raster enable filters in source select 2020-03-03 16:07:45 +01:00
Alessandro Pasotti
ea1826a3d1 Modular PG raster tests
It should be now possible to disable test
cases individually.
2020-03-03 14:25:21 +01:00
Alessandro Pasotti
18d98d422d Testdata for PG raster 2020-03-03 13:55:38 +01:00
Sandro Santilli
b270ff1da7 Recover pointcloud tests
This reverts commit bf6915633cf12a556cd807b136e63509b6cdb33f while
improving predictability of results
2020-02-17 11:36:46 +01:00
Matthias Kuhn
bf6915633c Revert "Add test for pointcloud layers fetching and related permissions"
This reverts commit 30fe7484698046b588284ff5485115e70833a268.
2020-02-14 13:43:51 +01:00
Matthias Kuhn
8dbb855121 Revert "More debug for [travis]"
This reverts commit c58f7f49e8dffa12e8f749e34792abedc8824287.
2020-02-01 12:58:45 +01:00
Alessandro Pasotti
ee323eb5c1
Merge pull request #34012 from elpaso/bugfix-gh33383-ogr-spatialite-respect-provider-defaults
Dataprovider ogr spatialite respect provider defaults
2020-01-29 07:59:25 +01:00
Nyall Dawson
255e4ed09f (Hopefully temporarily) disable PG Raster tests on Travis
This test is failing on master builds, causing timeouts during
the sql data load step and resulting in build failures on the
master branch. The consequence is that build caching on Travis
is broken, resulting in increasingly lengthy test build times.
2020-01-28 12:04:39 +10:00
Alessandro Pasotti
ebf7d247d8 Provider default values: more tests and homogenize
Fixes #33383

Homogenization is not complete but at least
there are test cases for the future.
2020-01-27 18:21:19 +01:00
Alessandro Pasotti
63e66c232c PG: fix default value for IDENTITY PKs
Fixes #29560 - PostgreSQL identity column not recognized properly
2020-01-24 15:20:15 +01:00
Matthias Kuhn
c58f7f49e8 More debug for [travis] 2020-01-23 19:32:38 +01:00
Matthias Kuhn
b4eebfcd82 Add test output to postgres database startup
to debug travis
2020-01-22 14:52:21 +01:00
Even Rouault
bf7dffee6d QgsExpression::referencedAttributeIndexes(): only report valid indices
If the expression was referencing a non-existing field, -1 was returned in the
result set, which caused later crashed in various providers, including the
Spatialite, Postgres, etc..., due to tried to dereference mFields.at(-1)

Discarding invalid indices is what is also done in
QgsFeatureRequest::OrderBy::usedAttributeIndices()

Fixes #33878
2020-01-21 11:37:11 +10:00
Alessandro Pasotti
5af1306bf3
Merge pull request #33685 from elpaso/pgraster-pkeys
Native PostGIS raster data provider
2020-01-17 11:31:28 +01:00
Alessandro Pasotti
99ac4fb820 PG raster: do not require db name
... in case a service file is used
2020-01-14 08:28:10 +01:00
Alessandro Pasotti
483ed77b9b PG raster support composite PKs 2020-01-13 18:26:11 +01:00
Alessandro Pasotti
792fa4b7e8 PG raster: support SQL where conditions 2020-01-13 16:12:54 +01:00
speillet
1d818a4189 resolve review comments
resolve review comments
2020-01-13 22:25:23 +13:00
speillet
32ebc12d82 Add test to check identity field management 2020-01-13 22:25:23 +13:00
Julien Cabieces
e9cb34e1b8 fix multiline and multi surface skipping some parts 2020-01-13 13:24:25 +13:00
Julien Cabieces
1f3370a956 fix multipolygons with only one polygon 2020-01-13 13:24:25 +13:00
Julien Cabieces
a1f8af904b fix read for oracle curve polygon with Z coordinates 2020-01-13 13:24:25 +13:00
Alessandro Pasotti
feaf00fc4c Fix build on travis + minor cleanup 2020-01-10 14:23:21 +01:00
Alessandro Pasotti
4f55df03fc Support raster without constraints 2020-01-10 09:54:53 +01:00
Alessandro Pasotti
f822d45a8e First raster drawn! 2020-01-10 09:54:53 +01:00
Alessandro Pasotti
25972abdd2 Fix SRID on test data 2020-01-10 09:54:53 +01:00
Alessandro Pasotti
91d58f2904 Add testdata for PG raster 2020-01-10 09:54:53 +01:00
Alessandro Pasotti
c186f06f38 Test for PG raster provider 2020-01-10 09:54:53 +01:00
Julien Cabieces
e5fd756527 Configure Oracle continuous integration 2020-01-02 20:59:28 +10:00
Julien Cabieces
ba925bb36d Create child feature with geometry from the relation editor (#32528)
* [FEATURE][needs-docs] Create geometric child feature from relation editor
2019-12-04 14:46:32 +01:00
Sandro Santilli
30fe748469 Add test for pointcloud layers fetching and related permissions
This commit is expected to fail, lacking an actual fix

See #32972
2019-12-04 16:59:24 +10:00
Sandro Santilli
f543a9abb7 Add test for TopoGeometry layers visibility with and w/out permissions
Adds a "qgis_test_user" database users with the db setup script,
using an hard-coded password for connection.

This was the simplest way to make things work because the alternative
of using 'options' member in the URI is not supported by QGIS
at the moment, see https://github.com/qgis/QGIS/issues/32832
2019-11-15 13:14:42 +01:00
Sandro Santilli
c20ba1e5f3 Have db setup script check for pg_service.conf functionality
... and hint about how to set it up
2019-11-14 13:05:01 +01:00
Sandro Santilli
ea970d9ef1 Add test for extracting candidate primary keys from geometryless view 2019-11-10 11:48:48 +01:00
Alessandro Pasotti
f7d1971d01 PG views: be tolerant for unsupported field type ...
... if it's in URI key

Fixes #31799
2019-09-17 14:30:33 +02:00
Mathieu Pellerin
5df309447e
[delimiter text] Add Point{Z,M,ZM} geometry support (fixes #25645) (#31595)
[FEATURE][delimiter text] Add Point{Z,M,ZM} geometry support (fixes #25645)
2019-09-06 19:35:27 +07:00
Sandro Santilli
ffad801fad Add test for custom bbox in postgresql provider
See #18107
2019-08-29 17:47:25 +02:00
Sandro Santilli
81146a639d [tests] Load postgis_raster extension when available, and needed 2019-08-29 17:47:25 +02:00
Alessandro Pasotti
a3c4eb9947
Providers connections interface API
This is the implementation of the new DB connections API (grant proposal 2019).
Summary

The new API makes it available to QGIS core a new interface for provider connections and will allow to:

    replace the provider specific QgsSettings management in QGIS4 (save/load connections from the settings) NOT IN SCOPE FOR NOW.
    provide a unified API for common operations on DB connections:
        executeSql and get the results
        list tables names and properties and schemas
        create a new vector table (no rasters for now)
        create/rename/drop schemas and tables
        vacuum
       ....
2019-08-16 20:44:05 +02:00
Māris Nartišs
6eeb031134 WMS provider: Extract WMS-C TileSet layer title and abstract from matching WMS Layer data (fixes #30262) 2019-08-09 13:42:10 +03:00
Denis Rouzaud
0698eedc94
add test for detecting composite key relations (#31092) 2019-08-06 13:39:00 +02:00
Nyall Dawson
1164d204ee [postgres] Unit tests for citext field type 2019-07-02 06:17:37 +10:00
Nyall Dawson
aa1bc5d1f9 [needs-docs][postgres] Correctly handle binary (bytea) fields
Previously these would be silently dropped from the layers, but
we now have comprehensive support for binary fields and should
expose them.

Fix sponsored by WhereGroup
2019-07-02 06:17:37 +10:00
Alessandro Pasotti
a4187a7a6e Tests for case sensistive pg schema 2019-05-22 18:16:43 +02:00
Alessandro Pasotti
da49f79045 Suggestions from JEF 2019-04-26 12:32:42 +02:00