5688 Commits

Author SHA1 Message Date
Alessandro Pasotti
063d29b256
Add NMEA GST Message for GPSInformation.Accuracies (#30274)
* Update sentence.h

* Update sentence.h

* Update sentence.h

* Update sentence.c

* Update parse.h

* Update parse.h

* Update sentence.h

* Update parse.c

* Update qgsnmeaconnection.cpp

* Update qgsnmeaconnection.cpp

* Update qgsnmeaconnection.cpp

* Update info.h

* Update qgsnmeaconnection.h

* Update qgsnmeaconnection.h

* Update parse.c

* Update parse.c

* Update parse.c

- Corrected Buffer Sizecomparison to 6
- defined Variable for buffer_size

* Astyle

* Fix docstrings
2019-06-25 09:41:29 +02:00
rldhont
15961c2207 Fix SIP file not up to date: core/auto_generated/qgsfieldproxymodel.sip
Introduced by 39fb9ce84a4b1743ddccb6a2cf842f06d17eb124 Merge branch 'master' into on-screen-navigation
2019-06-24 15:41:27 +02:00
Matthias Kuhn
db18ef260f
Merge pull request #30281 from nyalldawson/text_symbol
Handle text formats in style manager
2019-06-21 16:14:16 +02:00
Matthias Kuhn
5e1ca35373
Merge pull request #10020 from m-kuhn/teamplates_on_welcome_page
Templates on welcome page
2019-06-21 16:13:28 +02:00
Juergen E. Fischer
88cb4d4eda dxf export: fix export of curved geometries 2019-06-21 13:14:46 +02:00
Nyall Dawson
850ea71c4d More wip 2019-06-21 15:52:56 +10:00
Nyall Dawson
d4d77808f9 Style model work 2019-06-21 15:52:56 +10:00
Nyall Dawson
aa658e5d07 Allow label settings gui widget to work widget layers 2019-06-21 15:52:56 +10:00
Nyall Dawson
0fd4984b3b [FEATURE] Allow storage of label settings in style manager
Just like the earlier change which allows for text formats to
be managed in style manager, this change allows for layer-wide
label settings to be stored and managed in styles.

So while a text format includes just the font settings and other
appearance related settings, Label Settings also includes layer-type
specific settings such as label placement, priority, rendering
settings.
2019-06-21 15:52:56 +10:00
Nyall Dawson
6f172da7e0 Fix dox 2019-06-21 15:52:56 +10:00
Nyall Dawson
554d23b324 Improve handling of favorites in QgsStyleModel and proxy model
Fixes favorite entities sometimes incorrectly filtered out
2019-06-21 15:52:56 +10:00
Nyall Dawson
e0446a7165 Preview icons for text symbols 2019-06-21 15:52:56 +10:00
Nyall Dawson
9647a18c13 Move label preview background color setting to QgsTextFormat
So that we can utilise it outside of labeling
2019-06-21 15:52:56 +10:00
Nyall Dawson
40e4789ba1 [API] Add support for text renderer formats to QgsStyle 2019-06-21 15:52:56 +10:00
Nyall Dawson
3bd3aba25b [needs-docs] [labeling] Allow data defined control over line placement options
Allows users to override the line placement settings (e.g.
above/below/on line options) on a per-feature basis. Somehow
this one was the only(?) setting from labeling which
was missing a data defined control...
2019-06-20 10:24:16 +07:00
Nyall Dawson
de672e3127 Allow storing layer WKB type in QgsMimeDataUtils::Uri 2019-06-17 18:17:10 +10:00
Nyall Dawson
52d22b8050 QgsDataSourceURI doxygen improvements 2019-06-16 10:00:59 +10:00
Alex
a02a4ede6e Allow calculating aggregates using a subset of fids only 2019-06-16 07:00:26 +10:00
Nyall Dawson
78a606188c Expose some more auth manager methods to Python
These methods either
- only wrap QSettings values (so there's no added security gained
by not exposing them -- it's currently easily possible to achieve
the same results via direct QSettings manipulation)

OR

- are required to allow fully automated QGIS deployment/startup
scripts which rely on auth manager functionality
2019-06-14 08:54:44 +10:00
Nyall Dawson
d56ddc25fb Minor refactor of QgsMapLayerProxyModel 2019-06-13 04:57:37 +10:00
Nyall Dawson
760af67d0f Cleanup handling of QgsMimeDataUtils::Uri corresponding to project layers
And add tests
2019-06-13 04:57:37 +10:00
Alessandro Pasotti
e740688faa
Merge pull request #30151 from elpaso/bugfix-gh30115-value-relation-widget-match-name-if-id-fails
When loading a QLR, try to match the layer name if id does not
2019-06-11 11:20:30 +02:00
Alessandro Pasotti
2d45ba8d68 Move the QgsProject singleton problem one step up 2019-06-11 09:22:31 +02:00
Alessandro Pasotti
103ef762ca Factor out generateId for layers and fix QLR mutiple layers id import 2019-06-10 17:58:22 +02:00
Alessandro Pasotti
a295701023 ResolveLayer returns a layer instance instead of an ID 2019-06-10 15:39:52 +02:00
Alessandro Pasotti
13099cc4fa
Merge pull request #30137 from elpaso/bugfix-gh30131-postgres-json
Fix json hanlding of bools and complete json(b) PG support
2019-06-10 14:22:14 +02:00
Alessandro Pasotti
f9b50b5b38 Move layer resolver into a static method 2019-06-10 14:10:11 +02:00
Alessandro Pasotti
79219dae23 Forward port of histogram binding fix with a bonus test
Fwd port of PR #30033
Fixes #29700

With a new test for the bug.
2019-06-09 10:25:50 +02:00
Alessandro Pasotti
d2a93501f2 Remove empty lines 2019-06-08 20:32:02 +02:00
Alessandro Pasotti
3ea542a433 Fix json hanlding of bools and complete json(b) PG support
Fixes #30131 and add tests for jsonutils
2019-06-08 20:29:48 +02:00
Alessandro Pasotti
96c3357915
Merge pull request #30100 from elpaso/bugfix-gh29937-duplicated-datefield-crash
Do not emit dateChanged signal if value has not changed
2019-06-07 08:18:47 +02:00
Alessandro Pasotti
58fcd60f49
Emit newProject after save project as ... (#30025)
* Emit newProject after save project as ...

Fixes #29919

* Use QgisApp::projectSavedAs signal when project is saved with a new path

* Update browser project home path when saved as

* Set home path when reading a project

* Emit homePathChanged in any case
2019-06-06 12:04:22 +02:00
Alessandro Pasotti
8ffdb4ae28 Remove old incomplete documentation 2019-06-06 11:57:19 +02:00
Nyall Dawson
8b16e05998 Cleaner handling of raster provider native resolutions 2019-06-06 17:11:06 +10:00
Nyall Dawson
a98d12e1e0 Dox 2019-06-04 06:18:17 +10:00
Nyall Dawson
1bc716fc61 [labeling] Fix incorrect bounding box of labels used when
map is rotated

Fixes #24680
2019-06-04 06:18:17 +10:00
Nyall Dawson
004b7d879a [labeling] Fix cannot use labeling map tools when canvas is rotated
Fixes #25384
2019-06-04 06:18:17 +10:00
Nyall Dawson
789dbb570b Add friendly, descriptive errors when opening a project which has
preset non-default coordinate operations set between a crs pair,
which use grids that are not available on the local system
2019-06-03 16:46:54 +10:00
Nyall Dawson
f758bb7214 Add mechanisms to set handlers for coordinate transform creation errors and warnings 2019-06-03 16:46:54 +10:00
Nyall Dawson
d754a09296 Refactor to extract useful method 2019-06-03 16:46:54 +10:00
Nyall Dawson
a4e5e6a598 [needs-docs] Append a local, user writable folder to proj 6 search paths
Now, proj will search in the current user profile "proj" folder (e.g.
.local/share/QGIS/QGIS3/profiles/default/proj" on linux) for
grid files and other proj helper files.

This allows users (and plugins) to install grid files and make them
available for use in QGIS without requiring administrator access
to the system.
2019-06-03 10:38:22 +10:00
Nyall Dawson
c82d3b643f Upgrade QgsCoordinateTransformContext for proj 6
This reworks (on proj 6 builds only!) QgsCoordinateTransformContext
to use proj strings of proj coordinate operations to handle the
users' preferred list of operations when transforming coordinates
between two CRSes.

Previously, the context heavily utilised internal transform ID
numbers, which were QGIS specific and relied on matching entries
from the QGIS srs.db file. This approach was undesirable because
it meant QGIS had to maintain and carry it's own table of
possible transform pathways between CRS pairs (which was difficult
to update, impossible to track, and most likely severely out of
date).

Now we can utilse Proj 6's (wonderful!) logic for determining the
best coordinate operation to utilise between two CRSes. All the
old API has been deprecated and no longer works under proj 6, but
that's unavoidable (and unlikely to be in use by plugins anyway,
it's VERY low level stuff).

A further bonus of this work is that QgsCoordinateTransform no
longer relies on proj strings of the source/dest CRS to build
the transform -- the issue with that approach was that proj
strings are lossy (and not always possible to generate), so
now by default we are generating better pathways between CRS
pairs.

This resolves issues with transforms which rely on pivot datums,
such as GDA94 - GDA2020 conversions.

Sponsored by ICSM
2019-05-31 10:38:08 +10:00
Nyall Dawson
0cf4ecf491 Deprecate a QgsCoordinateTransformContext members which don't
apply in proj >= 6.0 builds
2019-05-31 10:38:08 +10:00
Nyall Dawson
c61fb85ed6 Remove unused support for single source/dest settings in QgsCoordinateTransformContext
This has been #ifdef'ed out since it's original implementation,
and it has no meaning in the world of Proj >= 6.0
2019-05-31 10:38:08 +10:00
Nyall Dawson
7213030ad9 [labeling] Fix missing labels when multilinestring features are used in
conjunction with the "merge connected lines" setting

Refs #12173
2019-05-30 17:27:00 +10:00
Matthias Kuhn
6eb5b3e770 Add a template list to the welcome screen 2019-05-27 14:57:35 +02:00
Alessandro Pasotti
3f1ba81b7e Address PR comments (minor changes) 2019-05-27 09:20:34 +02:00
Alessandro Pasotti
564fd50e43 Fix spatialite handling of JSON arrays
Fixes #21986

plus:

- fix multiple string keys with commas in value relation widget
- more robust JSON and array (un)marshalling
- uniform array representation in value relation widgets
- lot of test coverage
- automatic QVariant type conversions in JSON utils
2019-05-27 09:20:34 +02:00
Denis Rouzaud
d7fa0286c4
do not insert layers in embedded groups (#10004)
fixes #29678
2019-05-26 23:25:15 -05:00
Nyall Dawson
85e207897b Add API to retrieve avaiable coordinate operations between a source
and destination QgsCoordinateReferenceSystem on proj >= 6 builds
2019-05-27 08:26:34 +10:00