44071 Commits

Author SHA1 Message Date
Patrick Valsecchi
b8f708ff1b [FEATURE][needs-docs] Add OGC filters to WMS
Implement https://github.com/qgis/QGIS-Enhancement-Proposals/issues/104
2017-11-28 07:40:33 +01:00
Mathieu Pellerin
d31f60baa5
Show unknown feature count instead of misleading 0 in sublayer dialog 2017-11-28 13:34:22 +07:00
Nyall Dawson
7a09f0890e
Merge pull request #5727 from nyalldawson/sublayer
Fix ogr sublayer handling of names containing ":"
2017-11-28 14:47:34 +11:00
Nyall Dawson
2156e89c1a
Merge pull request #5748 from nyalldawson/offset_tool
Fix offset curve tool offsets curves in opposite direction to mouse
2017-11-28 13:48:18 +11:00
Nyall Dawson
5c66526c7d Pressing escape cancels offset tool 2017-11-28 11:19:23 +10:00
Nyall Dawson
8a7fc259be [offset tool] Also check for ctrl modifier on final click
Otherwise copies are only made if ctrl was held on the first click,
but holding ctrl on the second click is also a natural behavior
2017-11-28 11:14:38 +10:00
Nyall Dawson
9aa5752643 Use QgsGeometry API for offset tool instead of raw geos calls 2017-11-28 11:05:58 +10:00
Nyall Dawson
dacced8cb3 Cleanup some offset tool code 2017-11-28 10:11:02 +10:00
Nyall Dawson
1d0db0b02b Fix offset curve tool offsets curves in opposite direction to mouse 2017-11-28 07:42:33 +10:00
Martin Dobias
721551f8b6 qDebug -> QgsMessageLog 2017-11-27 17:01:38 +01:00
Martin Dobias
7bce7ea9ca [3d] Fix crash in tessellator with near coords (fixes #17286, fixes #17515)
As the readme of poly2tri library says: "Poly2Tri does not support repeat points within epsilon."

When the coordinates are very near to each other, we get crashes in triangulation code.
To prevent that, we try to simplify geometries to hopefully fix the problem automatically,
if that fails we just skip the polygon as the last resort.

Usually this happens if user tries to use 3D renderer on unprojected lat/lon coordinates.
2017-11-27 17:01:38 +01:00
Blottiere Paul
d147064f2e
Merge pull request #5697 from pblottiere/server_bugfix_getprojectsettings
[server][bugfix]  Fixes #17519 by fixing GetProjectSettings response
2017-11-27 10:48:56 +00:00
Blottiere Paul
4aa97d865d Add a test 2017-11-27 09:15:57 +00:00
Blottiere Paul
d0ffaa7ccc Fixes #17519 by fixing GetProjectSettings response 2017-11-27 09:15:57 +00:00
Nyall Dawson
9bfb3f31ee Fix regexp_substr expression function returning whole match instead of captured group 2017-11-27 17:29:41 +10:00
Nathan Woodrow
01d1be9d70 Update API break docs 2017-11-27 14:52:36 +10:00
Nathan Woodrow
b2c396fdfd Fix #17510 - Better scoping of QgsProjectionSelectionDialog inside QgsProjectionSelectionWidget 2017-11-27 14:00:15 +10:00
Nathan Woodrow
0717835f79 Remove bound sync from crssync. Not longer needed 2017-11-27 11:54:08 +10:00
Nathan Woodrow
cecb89d089 Update srs.db with new bounds 2017-11-27 11:54:08 +10:00
Nathan Woodrow
877c0dc252 Update bounds srs.db in source from epsg db 2017-11-27 11:54:08 +10:00
Nyall Dawson
149e331d2c Fix data defined button icon size on hidpi screens 2017-11-27 11:32:30 +10:00
Nyall Dawson
60a56c372a Fix slightly oversized filter clear icons
And make sure on low-dpi screens the icon size is 16px for
pixel-snapped rendering of the svg
2017-11-27 10:16:47 +10:00
Larry Shaffer
a111a1cbe4 Fix macOS Qt 5.9+ close boxes do not show on document mode tab bar tabs
Setting any stylesheet makes the default close button disappear.
Setting a custom close button temporarily works around issue.

See: https://bugreports.qt.io/browse/QTBUG-61092
     https://bugreports.qt.io/browse/QTBUG-61742
2017-11-26 16:55:08 -07:00
Harrissou Sant-anna
4f9e2a5f29 Do not change property widget status if the dialog is rejected
refs #16766
2017-11-27 07:01:13 +11:00
Harrissou Sant-anna
731b57c8a7 Add Cancel and Help buttons to Property assistant dialog
because sometimes opening this dialog is a mistake and you want to close it
Also enable the Help capability
2017-11-27 07:01:13 +11:00
Harrissou Sant-anna
54b516530d Make frames expandable and cover needed space 2017-11-27 06:57:11 +11:00
Harrissou Sant-anna
62d71154a2 Set a title to the 3D config widget 2017-11-27 06:55:57 +11:00
Nyall Dawson
41089f28fa Add spell check variants for tessellate 2017-11-27 06:54:29 +11:00
Nyall Dawson
006da6e365 Move conversion of tesselation to multipolygon to QgsTessellator
Also
- add unit test
- fix bad tesselation due to missing origins
2017-11-27 06:54:29 +11:00
Nyall Dawson
c0e732b799 [processing] Add QGIS 3d provider
Adds a new QGIS processing provider for 3d algorithms, available
only when QGIS is built WITH_3D

Currently includes only a single algorithm for tesselating geometries,
which exposes the functionality of QgsTesselator to processing.

Like the native c++ algorithm provider, algorithms in the 3d
provider are transparently merged with the other QGIS providers
(i.e. they aren't separated into their own group)
2017-11-27 06:54:29 +11:00
Nyall Dawson
8c211f2869 Fix failing doc test 2017-11-27 06:38:21 +11:00
Nyall Dawson
3310343bcd [processing] Add a model-only "load layer to project" algorithm
This can be used to force loading a layer into the current project.
The primary use case here is to load a preset layer as part of a
model, but it's also useful for loading results from the
'package layers' algorithm into the project.
2017-11-27 06:38:21 +11:00
Nyall Dawson
bb63a83e04 Add missing output from package algorithm 2017-11-27 06:38:21 +11:00
Nyall Dawson
6283ca62bc [processing] Add a model-only algorithm for renaming layers
This is required for algorithms with behaviour which depends on the
layer names (e.g. the package algorithm uses the layer name as
the table name in the geopackage).

We need a way for models to be able to explicitly specify a layer
name for this algorithm to be useful in models, otherwise the
auto-generated temporary layer names are used (which are not
very nice!)
2017-11-27 06:38:21 +11:00
Nyall Dawson
aef0d33e11 Fix definition of output file parameters 2017-11-27 06:38:21 +11:00
Nyall Dawson
4b9986eb8c [processing] Add a generic map layer output type
For occasions when an algorithm creates a map layer, but the type
is not known in advance (i.e. could be raster OR vector)
2017-11-27 06:38:21 +11:00
Nyall Dawson
3d307b4109 Improve name of memory layers output from processing 2017-11-27 06:38:21 +11:00
Nyall Dawson
a95aecafd6 Fix tests 2017-11-26 16:28:59 +10:00
Nyall Dawson
f04587eb67 Update tests, add new test for complex layer name 2017-11-26 14:00:35 +10:00
Nyall Dawson
718e4985c6 Fix some inefficient QString replace calls 2017-11-26 12:48:31 +10:00
Nyall Dawson
148380abef Fix inefficient QString splitting
QString::split with single characters is about 10x faster than
QString::split using QStrings
2017-11-26 12:45:06 +10:00
Nyall Dawson
144e9a2e45 Fix handling of ogr sublayers with ':' in their name
Unlikely to happen, but it does occur with some layers coming
from processing models. In any case we want QGIS to be super-tolerant
of corner cases like this!
2017-11-26 12:23:32 +10:00
Nyall Dawson
7451422069 Fix package layers algorithm can't take the outputs from models
Fixes #17544
2017-11-26 12:01:41 +10:00
Nyall Dawson
96857ebdd4 Fix crash when a geopackage layer is open in QGIS, and then is overwritten
with another layer with different field definitions
2017-11-26 07:34:51 +11:00
Borys Jurgiel
5c22e31397 Follow up 248bc5db032cf 2017-11-25 12:43:24 +01:00
Alexander Bruy
3d6aa9c9f2 fix en_US locale handling in QgsHelp 2017-11-25 11:54:33 +02:00
Alessandro Pasotti
72553a60a9
Merge pull request #5710 from elpaso/api-code-cleaning-int-2-enums
QgsVectorLayer code cleaning use enums instead of int
2017-11-24 16:16:26 +01:00
Matthias Kuhn
916c9c4cdb Open heart surgery on expression context for processing sources 2017-11-24 16:09:05 +01:00
Matthias Kuhn
aaf70de71e Add test for QgsExpressionContextScope::takeScopes 2017-11-24 16:09:05 +01:00
Matthias Kuhn
abe1a9b661 Expression context creation for processing improvements
Hiding away the implementation directly in QgsProcessingFeatureSource

See discussion ec97102bc6 (r152903378)
2017-11-24 16:09:05 +01:00