Sandro Santilli
b33924a4b9
Fix old GDAL triggers in geopackage files
...
This makes changes which would otherwise fixed by done upon
opening these files with GDAL >= 3.2.2
Batch update was done using:
ogrinfo ${F} -sql "select 1"
See
https://github.com/qgis/QGIS/issues/49033#issuecomment-1158006469
References GH-25830
2022-06-17 00:13:25 +02:00
Sandro Santilli
8c18fa28b6
Drop gpkg_metadata_reference_column_name_update trigger generated by GDAL < 2.4.0
...
Presence of this trigger results in QGIS dropping it whenever the file
is opened in read-write mode (as it happens with vector layer is
created from it)
See https://github.com/qgis/QGIS/issues/48937#issuecomment-1152726973
2022-06-11 01:35:14 +02:00
Alessandro Pasotti
34c5cdcf2d
Handle fid and geom cols in GPKG exec sql
2021-07-06 20:58:35 +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
David Marteau
5bf8d2cd26
Pass project when creating relation from Xml
...
Fix dependency inconsistency to project from QgsRelationManager
by forcing 'QgsRelation::createFromXml' to rely on project passed
to 'QgsRelationManager' instead of using 'QgisProject::instance()'
2019-12-20 23:56:17 +01:00
Nyall Dawson
ee414f5750
Add unit test for upgrading older project bookmarks
2019-09-04 14:19:47 +10:00
Alessandro Pasotti
75defad55c
Remove warning
2019-07-05 13:33:27 +02:00
Alessandro Pasotti
b92012ccae
Fix relative storage for GPKG projects
...
Fixes #30387
2019-07-04 11:23:56 +02:00
Alessandro Pasotti
ba4981a1f4
Move change data source under filter
2018-11-08 11:30:06 +01:00
Alessandro Pasotti
c74ce886dc
Disable "Change data source..." action if layer is editable
2018-11-08 09:22:33 +01:00
Alessandro Pasotti
9af0719ff2
Bad layers: added tests for subset string and groups
2018-11-06 14:58:04 +01:00
Alessandro Pasotti
7db1d4e8b4
Added test project with the bad layers (not used by tests)
...
but still useful for manual tests
2018-11-06 10:28:49 +01:00
Alessandro Pasotti
ba3ccca2dd
Add rule-based and categorized styles to the bad layers test
2018-11-06 10:27:07 +01:00
Alessandro Pasotti
7a259c6ea5
Better handling of invalid relations ...
...
- do not add them to the manager dialog
- do not add relations to not existent layers (but keep relations to invalid layers)
2018-11-05 10:26:39 +01:00
Alessandro Pasotti
bc424d09c1
Store original style as QDomDocument instead of an XML string
2018-11-05 10:26:39 +01:00
Alessandro Pasotti
d46d765d58
Restore handle bad layers dialog original behavior
2018-11-05 10:26:39 +01:00
Alessandro Pasotti
8493636f18
Data source select dialog now accepts a model
2018-11-05 10:26:39 +01:00
Alessandro Pasotti
17433181aa
Fix raster style restore when setDataSource
2018-11-05 10:24:35 +01:00
Alessandro Pasotti
8d9d52d128
Add test data for relations
2018-11-05 10:24:35 +01:00
Juergen E. Fischer
8c96eec25e
fix detection of 2.x project crs (followup f2b5a595)
2018-01-24 19:15:25 +01:00
Nyall Dawson
f2b5a5952b
Fix loading 2.x projects with custom CRS
...
Fixes #17257
2017-11-13 15:26:05 +10:00
Nyall Dawson
b808c5647a
When upgrading 2.x projects to 3.0, default to enabling a valid
...
project projection instead of defaulting to no CRS
Fixes #16965
2017-08-07 05:41:58 +10:00