4700 Commits

Author SHA1 Message Date
Nyall Dawson
a06000e0e7 Add method to QgsTextRenderer to retreive scaled QFontMetricsF
from a text format in a specified render context
2018-05-11 17:48:45 +10:00
Nyall Dawson
e53adc154b Add methods to convert QgsTextFormat to and from QFonts 2018-05-11 17:48:45 +10:00
Denis Rouzaud
6459d24e5a allow to reset prefixes in settings 2018-05-10 16:11:27 -04:00
Denis Rouzaud
0a0de2ec9f use multimap to allow using the same prefix for several filters 2018-05-10 15:51:07 -04:00
Denis Rouzaud
37e9f3abca allow customizing prefix of locator filters 2018-05-09 14:59:58 -04:00
Denis Rouzaud
5d7a6c18ec remove useless API break 2018-05-09 14:02:51 -04:00
Denis Rouzaud
8e20996ddc simplify netwotk content fetcher registry
kudos @wonder-sk
2018-05-09 11:04:29 -04:00
Denis Rouzaud
30b7fd183c use QgsNetworkContentFetcherRegistry 2018-05-09 11:01:59 -04:00
Denis Rouzaud
18699299ab [FEATURE ] allow to use URLs for attribute forms 2018-05-09 11:01:59 -04:00
Matthias Kuhn
29489e1056
Merge pull request #6865 from PeterPetrik/qgsquick_1_canvas_merge
[FEATURE] Introduction of QGIS Quick library
2018-05-09 07:40:01 +02:00
Nyall Dawson
10475a6adf Really accept strings for arrow data defined properties 2018-05-08 20:38:08 +10:00
Nyall Dawson
99d0b3c337 More spell checks 2018-05-08 09:33:07 +10:00
Denis Rouzaud
b4d00d95a1 delete contents in destructor and add missing mutexes 2018-05-07 10:15:06 -04:00
Denis Rouzaud
5610ebe9a2 fix crash when redownloading or canceling 2018-05-07 08:21:00 -04:00
Denis Rouzaud
9d45077456 also add localFile returning a QFile 2018-05-07 08:20:59 -04:00
Denis Rouzaud
8308ce1207 avoid race condition 2018-05-07 08:20:59 -04:00
Denis Rouzaud
0d6dcb231e do not return a const file and add localFile helper 2018-05-07 08:20:59 -04:00
Denis Rouzaud
648562d2b7 do not expose task and make it thread safe 2018-05-07 08:20:59 -04:00
Denis Rouzaud
25108e5f5d QgsNetworkContentFetcherRegistry: a registry for temporary downloaded files 2018-05-07 08:20:59 -04:00
Nyall Dawson
787dd3413e [processing] More helpful errors when raster inputs are not valid 2018-05-06 19:19:45 +10:00
Peter Petrik
12183e98db Fix reading/writing of mesh layer to a qgis project (fixes #18801) (PR #6869)
* fix guard header

* [bugfix] Fix reading/writing of mesh layer to a qgis project #18801

* fix copy-paste error

* fix copy-paste error

* extract decode source to derived classes

* remove raster providers from vector decode source

* reset testdata to master
2018-05-03 12:10:54 +02:00
Nyall Dawson
1e7d479321 Fix outdated example code, convert to python
(because c++ devs are l33t and don't need examples...)
2018-05-03 16:33:26 +10:00
Nyall Dawson
8f9a378d76 Seriously, I thought I told ya ta shuddup already, right? 2018-05-02 08:47:16 +10:00
Martin Dobias
3b36cdd170
Merge pull request #6750 from lbartoletti/visibleSnapPerf
[BUGFIX][FEATURE][NEEDS-DOCS] Disable snapping on invisible features. Second version
2018-05-01 09:46:59 +02:00
Nyall Dawson
9ffae600f4 [FEATURE] Variable width buffers
Adds geometry methods to create variable width buffers, including
tapered buffers (with a specified start and end diameter) and
variable width buffers from line string m values.

Also adds processing algorithms which expose these methods
to processing.
2018-05-01 06:16:01 +10:00
Nyall Dawson
c1552e728a [processing] Add createByDefault argument to destination parameter
constructors

Allows this setting to be set for parameters created from
description text files
2018-04-28 05:51:07 +10:00
Nyall Dawson
5339d62715 [processing] More helpful errors when sources cannot be loaded
Include descriptive text with the specified parameter value
in error, and always check that sources were loaded to avoid
raw Python exceptions when they are not
2018-04-28 05:50:47 +10:00
Hugo Mercier
3984e906ea
Merge pull request #6513 from pblottiere/executesql_params
[FEATURE][needs-docs] Add parameters to 'Execute SQL' algorithm
2018-04-27 09:12:34 +02:00
Nyall Dawson
a5a91ec3ba Fix some more redundant geos includes in headers
And re-add geos include directory for grass provider
2018-04-27 09:21:28 +10:00
Martin Dobias
16a6a90dd7
Merge pull request #6859 from wonder-sk/overlay-alg-fixes-3
Port Union algorithm to C++ and fix it
2018-04-26 22:56:22 +02:00
Peter Petrik
b1bf9b2809 [FEATURE] Introduction of QGIS Quick library
This pull request is a subset of #6490

This adds a new library for creation of applications based on Qt Quick
framework.
It contains reusable QML / Qt Quick components based on QGIS core
library.
The initial work introduces MapCanvas

To enable compilation of the library, use WITH_QUICK=TRUE

Further documentation of the library is located in doc/qgsquick.dox

For background information see the associated QEP:
qgis/QGIS-Enhancement-Proposals#109

The initial implementation is largely based on the work of Matthias Kuhn
and Marco Bernasocchi on QField probject - kudos to them for the great
job!
2018-04-26 13:33:48 +02:00
Matthias Kuhn
f8165888e4
Merge pull request #6862 from m-kuhn/core-headers-no-qforeach
Rewrite all core header usages of Q_FOREACH
2018-04-26 11:42:52 +02:00
Blottiere Paul
4f4844fa8a Add a new source type for parameters 2018-04-26 09:47:40 +01:00
Blottiere Paul
4168c05c3e Add method to search variables in text with expressions 2018-04-26 09:47:40 +01:00
Martin Dobias
091ed912ab Move fieldNamesToIndices() and indicesToFields() to QgsProcessingUtils 2018-04-26 10:34:30 +02:00
Matthias Kuhn
2d5ec75acf Rewrite all core header usages of Q_FOREACH 2018-04-26 09:59:22 +02:00
Nyall Dawson
d5626d9236 Remove geos include from qgsgeometry.h
Avoids the need to include geos from some build targets
2018-04-26 17:28:59 +12:00
Loïc Bartoletti
07caafe7c6 try disconnect/connect for destroyIndex 2018-04-25 17:05:14 +02:00
Martin Dobias
ade216d02d
Merge pull request #6820 from PeterPetrik/QgsMeshLayer_1_mesh
[FEATURE] QgsMeshLayer part 1: Reading raw mesh
2018-04-25 09:02:24 +02:00
Nyall Dawson
70b67c6150 Add some more line segment methods 2018-04-24 10:07:51 +12:00
Nyall Dawson
8f1d1a31c9 Add reverse method to QgsLineSegment2D 2018-04-24 10:07:51 +12:00
Nyall Dawson
646b4af057 Add left of line test to QgsLineSegment2D 2018-04-24 10:07:51 +12:00
Nyall Dawson
59c9b97651 Declare typeinfo for QgsVector to optimise use in Qt containers 2018-04-24 10:07:51 +12:00
Nyall Dawson
c6a50fe772 Add QgsLineSegment2D class, for simple 2d line segments which
consist of just a 2D start and end point
2018-04-24 10:07:51 +12:00
Nyall Dawson
01f036cf52 Add some useful QgsVector methods 2018-04-24 10:07:51 +12:00
Nyall Dawson
e047738981 Add QgsGeometry method to create wedge shaped buffers
Creates a wedge shaped buffer using circular strings, with
parameters for azimuth, wedge width (in degrees), outer radius
and inner radius.
2018-04-24 10:07:51 +12:00
Nyall Dawson
9a6d966d35 Allow using the longer arc with two point and center methods 2018-04-24 10:07:51 +12:00
Nyall Dawson
732d6bb475 Add convenience constructors to create QgsCircularStrings
Add constructors to create a circular string with a single arc:
- from 3 points on arc
- from 2 points and a center
2018-04-24 10:07:51 +12:00
Nyall Dawson
3f3b9515ef Add convenience constructor to create QgsLineString between two points 2018-04-24 10:07:51 +12:00
Nyall Dawson
fbf6b4a383 Add geometry method to calculate mid point on an arc from p1->p2 with given center
And improve some docstrings
2018-04-24 10:07:51 +12:00