41560 Commits

Author SHA1 Message Date
Alessandro Pasotti
e4231fd99a Geopackage items: fix create new layer close dialog 2017-09-14 17:10:57 +02:00
Alessandro Pasotti
91a98902a1 Adds connectionsChanged signal to iface
This is meant to be used by plugins (DBManager is the
first candidate) to notify the application that
the GUI elements that handle connections needs to
be updated (i.e. the data source manager dialog
and the browsers)
2017-09-14 14:08:59 +02:00
Alessandro Pasotti
d8940544f7 [bugfix] Geopackage restore connections in DB-manager 2017-09-14 13:39:44 +02:00
Alessandro Pasotti
1e85556922 Restore synchronization between connections and data source manager
Partial revert of commit 22bd2a35
2017-09-14 13:34:19 +02:00
Alessandro Pasotti
591b01ec74 Fix geopackage delete connection 2017-09-14 13:14:44 +02:00
Matthias Kuhn
16c6bf998a
[docker] Use a unicode compatible locale 2017-09-14 11:22:15 +02:00
Larry Shaffer
bd292b5fce Set CMake 3.9 policy for macOS RPATH settings to NEW 2017-09-13 21:56:58 -06:00
Nyall Dawson
625c205047 Fix area calculation on polygons with Z/M wkb types
Follow up a6800d6
2017-09-14 13:12:47 +10:00
Nyall Dawson
4ec1b4b348 [processing] Transparently map 'qgis' algorithms to 'native' algorithms
This allows us to freely move algorithms from the qgis python library
to the c++ native provider without breaking API or existing models
2017-09-14 11:41:38 +10:00
Nyall Dawson
d96a3f4dd4 Port simplify geometries to c++ 2017-09-14 09:57:15 +10:00
Nyall Dawson
8e8f3edc55 Port merge lines and smooth to c++ 2017-09-14 09:57:15 +10:00
Nyall Dawson
7c5521ecdf Port fix geometries alg to c++ 2017-09-14 09:57:15 +10:00
Nyall Dawson
07fd9cb83c Add missing overrides 2017-09-14 09:45:10 +10:00
Nyall Dawson
2b1cf99e04 Merge pull request #5188 from nyalldawson/int
[processing] Fix intersection and union tools don't work with input layers with Z or M values present
2017-09-14 09:04:24 +10:00
Nyall Dawson
bf078b1c84 [processing] Fix intersection and union tools don't work with
input layers with Z or M values present

Also ensure that written geometries are always multitype, to
match the created layer geometry type (before the layer was
being created as a multi* layer, but single part geometries
were sometimes created. This causes errors with some data
providers)
2017-09-14 07:35:54 +10:00
Nyall Dawson
c371b72dfe Merge pull request #5184 from nyalldawson/join_locate
[FEATURE] Reworked processing 'Join by location' alg
2017-09-14 06:09:56 +10:00
Nyall Dawson
d084cc6b73 Merge pull request #5178 from Gustry/metadata_viewer
use the metadata API for the metadata viewer
2017-09-14 06:08:37 +10:00
Etienne Trimaille
c3309b9257 use the metadata API in the HTML viewer 2017-09-13 16:50:14 +02:00
Nyall Dawson
742f3e5b4d Merge pull request #5112 from nyalldawson/locator_core
Move locator non-gui classes to core
2017-09-13 18:50:28 +10:00
Nyall Dawson
be88da8173 [FEATURE][processing] Add 'Join by location (summary)' algorithm
Like the main Join Attributes by Location algorithm, this algorithm
takes two layers and combines the attributes based on a spatial
criteria.

However this algorithm calculates summaries for the attributes for
all matching features, e.g. calculating the mean/min/max/etc.

The list of fields to summaries, and the summaries to
calculate for those, can be selected.
2017-09-13 18:45:56 +10:00
Mathieu Pellerin
df94b503a5 Merge pull request #5180 from nirvn/fix_levels 2017-09-13 12:37:39 +07:00
nirvn
fe8b751eb5 [FEATURE] Make symbol levels dialog a style dock panel widget 2017-09-13 11:46:28 +07:00
nirvn
5e7dadd575 [symbology] resurrect symbol levels dialog (fixes #16996) 2017-09-13 11:17:58 +07:00
Nyall Dawson
458e994d39 [FEATURE] Reworked processing 'Join by location' alg
Improvements:
- transparently handle different source/join CRS
- added option to create output feature for EVERY joined
feature (i.e. 1 to many type join)
- added option to select joined fields to take
- optimised performance of algorithm

The previous option to create a summary of joined features has been
removed, and will be moved to a separate 'Join by location (summary)'
algorithm.
2017-09-13 08:01:56 +10:00
Nyall Dawson
5796783e04 Merge pull request #5153 from nyalldawson/geonode
[FEATURE] QGIS - GeoNode Integration
2017-09-13 07:42:44 +10:00
Nyall Dawson
220c5e85e3 Move GeoNode browser/source select from app -> new 'geonode' provider
Instead of including these classes in app, we instead make a
shell data provider which implements only the dataItemProviders()
and sourceSelectProviders() methods.

Helps keep GeoNode GUI related code partitioned
2017-09-13 05:48:21 +10:00
Nyall Dawson
54df0a28fd Fix geonode connection correctly storing service specific settings 2017-09-13 05:47:53 +10:00
Nyall Dawson
687fc52a1d Make sure WFS/WMS settings are respected when adding GeoNode layers from source select dialog 2017-09-13 05:47:53 +10:00
Nyall Dawson
ac15df9863 Add support for updating a uri with GeoNode WFS/WMS related connection settings 2017-09-13 05:47:53 +10:00
Nyall Dawson
05e047d779 Generalize some WFS/WMS connection setting handling 2017-09-13 05:47:53 +10:00
Nyall Dawson
4c8733853a Cleanup QgsOwsConnection 2017-09-13 05:47:53 +10:00
Nyall Dawson
51922fc74c Remove duplicate code 2017-09-13 05:47:53 +10:00
Nyall Dawson
42869bb92c Fix build 2017-09-13 05:47:53 +10:00
Nyall Dawson
ffaafa6229 Rework QgsGeoNodeNewConnection to inherit from QgsNewHttpConnection
Avoids a lot of duplicate code.

Note that while this refactoring was done to allow WFS and WMS
settings to be simultaneously visible, I've removed the settings
from the GeoNode connection for now. Looking into this they were
being stored, but not used at all when loading the layers from
the GeoNode instance.
2017-09-13 05:47:53 +10:00
Nyall Dawson
90237fa3bf Cleanup some strings 2017-09-13 05:47:53 +10:00
Nyall Dawson
35eea229aa Rework QgsNewHttpConnection layout so that both WFS and WMS settings
can be shown simultaneously
2017-09-13 05:47:53 +10:00
Nyall Dawson
6134950609 Use explicit flags to set behavior of QgsNewHttpConnection instead of key parsing 2017-09-13 05:47:53 +10:00
Nyall Dawson
88b8741ff5 Fix ordering of Arcgis map server item 2017-09-13 05:47:53 +10:00
Nyall Dawson
2c0019952d Clean comments 2017-09-13 05:47:53 +10:00
Nyall Dawson
af03d2f476 Remove Q_FOREACH, fix inefficient loops 2017-09-13 05:47:53 +10:00
Nyall Dawson
944cb8c4bd Revert unused changes to QgsDataItem 2017-09-13 05:47:53 +10:00
Nyall Dawson
9a8adfc802 Fix spelling 2017-09-13 05:47:53 +10:00
Nyall Dawson
388b37a1a9 Hide non-functional style related browser actions 2017-09-13 05:47:53 +10:00
Nyall Dawson
e25436811b Cleanup and add docs for QgsGeoNodeConnection 2017-09-13 05:47:53 +10:00
Nyall Dawson
e1562df16b [geonode] Don't block data source manager while connecting to a server
Also add missing docstrings
2017-09-13 05:47:53 +10:00
Nyall Dawson
1a19283634 Class shuffle 2017-09-13 05:47:53 +10:00
Nyall Dawson
e6a8980b97 Run all GeoNode tests locally, but skip ones which rely on a remote server on Travis 2017-09-13 05:47:53 +10:00
Nyall Dawson
e803545258 Add missing sip file 2017-09-13 05:47:53 +10:00
Nyall Dawson
4e6516267a Misc optimisations to geonode data items, fix leaks 2017-09-13 05:47:53 +10:00
Nyall Dawson
29539e6712 Move remaining geonode classes from gui->app 2017-09-13 05:47:53 +10:00