Martin Dobias
a2ff3631d5
Fix tessellation of polygons that are not horizontal
...
Discovered by Nyall while working on PR #5708
Tessellation would shift coordinates because when points got reprojected
to the new base, the Z coordinates were considered zero (which worked only
when all points were on the same plane).
2017-11-23 14:09:03 +01:00
Alessandro Pasotti
4f82adf2c8
Update tests
2017-11-23 13:58:00 +01:00
Alessandro Pasotti
def85fa202
QgsVectorLayer code cleaning use enums instead of int
...
It was one of the TODOs for QGIS 3
2017-11-23 12:09:30 +01:00
Nyall Dawson
5206bf0f76
[3d] Fix creation of extruded walls in vertex binding mode
...
Previously the walls always had horizontal top/bottom, but
in vertex binding mode the walls need to have different z values
at the start and end coordinate
Note that the unit test exposes a different bug in the tesselator,
which should also be fixed...
2017-11-23 11:40:52 +01:00
Alessandro Pasotti
9d8a39fac0
Merge pull request #5694 from elpaso/bugfix-17518-pg-import--without-schema
...
[bugfix][postgres] Browser panel D&D a layer onto a postgresql connection tree …
2017-11-23 07:53:57 +01:00
Nyall Dawson
07e4c57291
Add some unit tests for DXF export
2017-11-23 14:44:23 +10:00
Nyall Dawson
fada3d9ace
Add unit test for package algorithm
2017-11-23 11:27:24 +10:00
Alessandro Pasotti
9f56878d88
[bugfix] Add some more logic to get the schema name if empty
2017-11-22 17:22:14 +01:00
Alessandro Pasotti
23dfb1de57
[bugfix] Browser panel D&D a layer onto a postgresql connection tree node icon fails without notice
...
Fixes #17518 by defaulting to "public" if no schema is given
2017-11-22 13:02:15 +01:00
Blottiere Paul
fd1539f502
Skip test instead of commenting
2017-11-22 07:46:24 +00:00
Blottiere Paul
e29f605bb3
Add some masks and set a higher threshold for comparing images
2017-11-22 07:46:24 +00:00
Blottiere Paul
1c81c4236b
Disable a test
2017-11-22 07:46:24 +00:00
Blottiere Paul
d24de06c10
Split some WMS tests
2017-11-22 07:46:24 +00:00
Nyall Dawson
b058df7d1d
Merge pull request #5686 from nyalldawson/encoding
...
[processing] Don't use crappy Qt file picker dialog
2017-11-22 07:27:50 +11:00
Alessandro Pasotti
b2c6464e58
Merge pull request #5679 from elpaso/bugfix-16935-gpkg-split-features
...
[bugfix] Editing a GPKG layer added by d&d leads
2017-11-21 14:00:45 +01:00
Etienne Trimaille
373471214f
rename metadata() to htmlMetadata() in QgsRasterDataProvider
2017-11-21 11:38:50 +01:00
Nyall Dawson
f660d78017
Add a new dialog for selecting file encoding, QgsEncodingSelectionDialog
...
Can be used to prompt users for a file encoding choice
2017-11-21 20:38:07 +10:00
Matthias Kuhn
62713a5029
Merge pull request #5510 from m-kuhn/relationsearch
...
[FEATURE] Search widget for relations using aggregates
2017-11-21 09:11:26 +01:00
Alessandro Pasotti
a12939d380
[ogr] Implement skipConstraintsCheck for fid
...
With test.
2017-11-21 09:03:24 +01:00
Nyall Dawson
95cf299099
Followup c9b8ddc, add unit test
2017-11-21 08:58:54 +10:00
Matthias Kuhn
04101c3f43
Add dummy canvas to test
2017-11-20 20:31:39 +01:00
Matthias Kuhn
f8a8cb96b8
Fix failing tests
2017-11-20 20:31:39 +01:00
Alessandro Pasotti
f97b5a54d0
Fix test for primary key constraints
2017-11-20 18:30:49 +01:00
Alessandro Pasotti
73d6765e89
[bugfix] Editing a GPKG layer added by d&d leads
...
... to error and data corruption
Fixes #16935 for GPKG (OGR), still needs to check spatialite
Thanks to Matthias Kuhn for pointing me into the right direction
2017-11-20 17:04:17 +01:00
Matthias Kuhn
67b68a841d
Merge pull request #5578 from gacarrillor/iface_copy_paste_features
...
Expose through iface methods to copy/paste features between given layers
2017-11-20 07:24:41 +01:00
Nyall Dawson
eb2ef6a681
Merge pull request #5672 from nyalldawson/provider_fixes2
...
Add tests/fixes for some provider issues
2017-11-20 11:51:49 +11:00
Nyall Dawson
8cf9f8fb6f
Fix combining extent of valid rectangle with invalid rectangle results
...
in invalid rectangle
2017-11-20 08:29:17 +11:00
Nyall Dawson
6c4a8a246e
Update WFS tests
2017-11-19 17:19:04 +10:00
Nyall Dawson
d6eb8eccdd
Add a bit of tolerance to WFS provider test
...
Was failing on Fedora 27
2017-11-19 16:20:02 +10:00
Nyall Dawson
705416c489
More consistent exception throwing in QgsCoordinateTransform::transformBoundingBox
...
Depending on the os and proj versions, we weren't always getting an
exception when a bad bounding box transform was made. So now we
explicitly check the result, and if everything was invalid
then we also throw an exception.
This makes the behavior consistent across different platforms,
and fixes running the provider tests on non Travis platforms
(highly likely also fixes various issues encountered while running
QGIS)
2017-11-19 16:17:30 +10:00
Nyall Dawson
957cf652aa
Add some more provider tests for feature count when subset string is added/removed
2017-11-19 08:59:12 +10:00
Nyall Dawson
1cfd6ee829
Add provider test to ensure that extent is correctly calculated
...
for layers with 1 point and also no features
The first scenario should return an 'empty' rectangle with x/y
min/max matching just the single point's coordinate, the
second scenario must return a null rectangle (not an empty 0,0
rectangle!)
2017-11-19 08:56:48 +10:00
Blottiere Paul
898eb4abf4
Merge pull request #5628 from pblottiere/bugfix-transaction-tuple
...
executeSql in transaction does not return an error on tuple
2017-11-16 09:36:56 +00:00
Blottiere Paul
9283b26762
Update tests
2017-11-16 08:40:45 +00:00
Blottiere Paul
f52300d361
Update tests
2017-11-16 08:04:03 +00:00
Blottiere Paul
c6b054ed4d
Add test
2017-11-16 08:01:07 +00:00
Alessandro Pasotti
8dd70c1dab
Merge pull request #5526 from boundlessgeo/ogr_authconfig_2
...
[auth][needs-docs] Authentication configuration support in OGR provider
2017-11-16 09:00:04 +01:00
Mathieu Pellerin
05d38b3d1d
[processing] preserve field length and precision for temporary outputs ( #5654 )
...
* add test case to cover length and precision through uri
2017-11-16 14:13:52 +07:00
Larry Shaffer
72af1a00da
[auth][ogr] Add missing PyQGIS auth manager OGR test
2017-11-15 19:30:34 -07:00
Blottiere Paul
bc90210e4f
Merge pull request #5620 from pblottiere/bugfix_gpkg_bool
...
[bugfix] Fixes #17070 by considering bool fields as OGR integer fields with boolean subtype
2017-11-15 20:30:50 +00:00
gacarrillor
a00ce9e1cc
Rename editCopy/editPaste to copySelectionToClipboard/pasteFromClipboard
2017-11-15 12:51:42 -05:00
Blottiere Paul
9f0985ff36
Merge pull request #5554 from pblottiere/bugfix_virtuallayer
...
[bugfix] Fixes #16798 FilterFid feature requests with virtual layers
2017-11-15 16:20:40 +00:00
Blottiere Paul
bd30e12cf9
Merge pull request #5597 from pblottiere/bugfix-clickxy
...
[bugfix] Fixes #16852 by adding click_x and click_y variables to resolve actions
2017-11-15 16:18:36 +00:00
Blottiere Paul
76635894bd
Update test with Bool type instead of Int type
2017-11-15 16:15:45 +00:00
Blottiere Paul
caf0cf7576
Add test
2017-11-15 16:15:45 +00:00
Blottiere Paul
b5317c57e3
Fix test
2017-11-15 12:09:19 +00:00
Blottiere Paul
f25ea5b6ba
Add some tests with cross join
2017-11-15 12:09:19 +00:00
Nyall Dawson
3734a0d677
Fix tests
2017-11-15 20:51:05 +10:00
Nyall Dawson
75885d70d5
Rename various WKT/WKB/GeoJSON/GML methods for consistency
...
and consistent capitalisation
2017-11-15 20:51:05 +10:00
Nyall Dawson
95765a191a
Remove coordinate formatting methods from QgsPointXY
...
Use QgsCoordinateFormatter instead
2017-11-15 20:49:45 +10:00