5573 Commits

Author SHA1 Message Date
Matthias Kuhn
d96a2748b6 Add Order By Clause 2015-12-18 18:36:43 +01:00
Nyall Dawson
4511cc474e Fix doxygen warning 2015-12-18 16:03:05 +11:00
elpaso
66061e0ef2 Uninstall custom excepthook for server 2015-12-16 15:13:11 +01:00
Matthias Kuhn
4f2da483ac Indentation update 2015-12-15 16:24:12 +01:00
volaya
95b92c7960 [processing] correctly export multiline strings as python parameters from modeler
fixes #13830
2015-12-15 14:57:29 +01:00
Matthias Kuhn
de1c319bf6 Implicit sharing for QgsExpression 2015-12-15 13:39:07 +01:00
volaya
4fbf4cf3ad Merge pull request #2566 from radosuav/processing_fixes
[Processing] Three small fixes
2015-12-15 12:43:26 +01:00
volaya
08a8b6095f [processing] modified how user folder is defined
This should have no effect on a normal QGIS desktop installation, but improve using Processing when not running on top of a regular QGIS instance.
2015-12-15 12:38:05 +01:00
Nyall Dawson
85eebff69b Avoid some unnecessary object conversion during point rendering 2015-12-15 22:36:49 +11:00
Nyall Dawson
4e18d54555 Tests and fixes for QgsPolygonV2
- Setting exterior ring will force all interior rings to match
dimensionality of exterior ring
- add equality operator
- use correct WKB types for rings when creating polygon from WKB
- segmentize curves when setting exterior ring with curved segments
- fix export to GML2/3 (should use LinearRing, not LineString as
ring element tag)
2015-12-15 22:36:41 +11:00
radosuav
9096a64a6c [Processing] Use default value of boolean parameter in the modeler and fix typo in outputs.py 2015-12-15 10:57:02 +01:00
volaya
a53ba16934 Merge pull request #2451 from spono/patch-5
[Processing] Update GridMetrics.py
2015-12-15 08:14:43 +01:00
volaya
9c0ee36c49 Merge pull request #2469 from spono/patch-13
[Processing] Update FilterData.py
2015-12-15 08:14:10 +01:00
volaya
7f3cc35b10 Merge pull request #2467 from spono/patch-11
[Processing] Update Cover.py
2015-12-15 08:10:57 +01:00
nirvn
84d2e954bc [projection selector] apply selected projection on double click 2015-12-15 08:36:59 +07:00
Nyall Dawson
19ff7de06d Fix indentation 2015-12-15 11:22:39 +11:00
Nyall Dawson
2982082f12 Merge pull request #2537 from SebDieBln/ReprojectAnnotations
Make annotations aware of CRS (fixes #3618)
2015-12-13 12:10:34 +11:00
Sebastian Dietrich
66a83bd205 make annotations aware of crs (fixes #3618) 2015-12-13 00:22:33 +01:00
Sebastian Dietrich
dd2a422e9b Remove menu items when GDALtools plugin is unloaded (fixes #13642) 2015-12-12 14:24:45 +01:00
Nyall Dawson
62f90d0c5e Merge pull request #2569 from SebDieBln/Improve_CrsReadXML
Improve QgsCoordinateReferenceSystem::readXML()
2015-12-12 11:47:32 +11:00
Sebastian Dietrich
2d0be1cf69 Changed the parameter of QgsCoordinateReferenceSystem::readXML() to const
and removed const_cast<> where not needed any longer
2015-12-12 00:05:10 +01:00
Juergen E. Fischer
6e3b1da10e dxf export: add doxymentation 2015-12-11 23:16:08 +01:00
radosuav
41286e5061 [Processing] Fix issue in setting the subset from canvas extent. 2015-12-11 12:57:24 +01:00
Nyall Dawson
c176e3f41e Fix documentation test failure 2015-12-11 19:30:15 +11:00
Nyall Dawson
233f67b419 QgsPolygonV2 tests and fixes
- fixes for handling Polygon25D
- add QgsAbstractGeometryV2::convertTo( QgsWKBTypes::Type type ) for
easy conversion between geometry types
- fix crash when calculating perimeter with no exterior ring
- ensure that added rings respect dimensionality of polygon (avoids
issues such as polygons with z having a ring without z, or a
Polygon25D with LineStringZ rings)
- if a curved ring is added to a polygon then a segmentized version
of the ring is used (can't have a Polygon with a CircularString
ring)
- when calling setInteriorRings, make sure empty rings are skipped
and that all rings are converted to correct type for polygon
- don't crash when requesting or removing interior ring with
index < 0
2015-12-11 18:40:11 +11:00
Nyall Dawson
d2bf8d8923 Add equality operators to QgsLineStringV2 2015-12-11 18:40:11 +11:00
Nathan Woodrow
6dfffc5f12 Add missing docs 2015-12-11 15:12:11 +10:00
Nathan Woodrow
bc67c082ad Add missing SIP and docs 2015-12-11 14:11:02 +10:00
Nathan Woodrow
ffd7c9436f [FEATURE] Add project loading support from browser 2015-12-11 14:08:03 +10:00
Nathan Woodrow
d021100e5e [FEATURE] Allow hiding paths from the browser panel 2015-12-11 10:21:07 +10:00
Matthias Kuhn
ac5ff0c2ca Fix doxymentation also in sip 2015-12-10 15:57:21 +01:00
Matthias Kuhn
c423d64a8e Reduce wkb parsing 2015-12-10 12:33:43 +01:00
Matthias Kuhn
123a60e651 [sip, doxygen] Geometry modifier bindings
and lots of doxymentation
2015-12-10 12:33:43 +01:00
Matthias Kuhn
17f9d554f8 [FEATURE] Add geometry generator symbols 2015-12-10 12:33:43 +01:00
Juergen E. Fischer
70e35ff24c missed a string in 6c3141b 2015-12-09 09:18:58 +01:00
Juergen E. Fischer
6c3141b605 fix #13964 2015-12-09 08:56:15 +01:00
Nyall Dawson
c7c5c007be [FEATURE] Double clicking a legend node opens symbol editor directly 2015-12-09 16:07:39 +11:00
Nyall Dawson
2377688c6c Add QgsColorWidgetAction for easily inserting QgsColorWidgets in menus 2015-12-09 16:07:22 +11:00
Nathan Woodrow
e9ef51341c Use geometry by default on custom expression functions
Got burnt by my own code. Them feels.
2015-12-09 13:02:58 +10:00
Nyall Dawson
6e140b97fd [FEATURE] Edit legend symbols directly from layer tree
This adds a new "edit symbol" item to the right-click menu for a
renderer child legend item (eg categories for the categorised
renderer). Selecting it opens a symbol editor dialog which allows
for directly editing the classes symbol. It's much faster than
opening the layer properties and going through the style tab.
2015-12-09 07:25:03 +11:00
Nyall Dawson
83e139a550 Add method for retrieving legend nodes by layer ID and legend rule key 2015-12-09 06:01:12 +11:00
Matthias Kuhn
197ee6cb3a Fallback to pure PyQt4 for the moment
Fix #13948

Will probably require some packaging adjustments when reintroducing this.
2015-12-08 16:19:53 +01:00
Matthias Kuhn
86abb26b62 Add sip bindings 2015-12-08 15:49:02 +01:00
Matthias Kuhn
be01b7eec5 [FEATURE] Add N:M relation editing possibilities
This adds the possibility to manage data on a normalized relational
database in N:M relations. On the relation editor in a form, the tools
to add, delete, link and unlink work (also) on the linking table if a
relation is visualized as N:M relation.

Configuration is done through the fields tab where on the relation a
second relation can be chosen (if there is a suitable relation in terms
of a second relation on the linking table).

Limitations
===========

QGIS is not a database management system.

It is based on assumptions about the underlying database system. In
particular it expects

 * A `ON DELETE CASCADE` or similar measure on the second relation
 * Does not take care of setting the primary key when adding features.
   Either users need to be instructed to set them manually or - if it's a
   database derived value - the layers need to be in transaction mode
   (currently only activatable through the API)
2015-12-08 15:49:01 +01:00
Nyall Dawson
8cac36433d [FEATURE] Add support for transparency in SVG color params
...and update all bundled SVGs to suit

Non-bundled SVGs must add:

fill-opacity="param(fill-opacity)"
and
stroke-opacity="param(outline-opacity)"

to enable transparency support
2015-12-08 22:45:51 +11:00
Nyall Dawson
9cc9d424ce Add extra check for deprecations to documentation test
This check tests that if a function has been declared deprecated
with either Q_DECL_DEPRECATED or has a @deprecated Doxygen note
then it MUST have both the Q_DECL_DEPRECATD and @deprecated note.

It's important that both are used, as Q_DECL_DEPRECATED allows
throwing a warning if that method is used in code, while the
@deprecated doxygen note gives an indication to devs/PyQGIS users
of why it's deprecated and what should be used instead.

Ideally we'd also test for SIP /Deprecated/ tags, but I can't
find any reliable way to do this.
2015-12-07 21:55:36 +11:00
Nyall Dawson
de1001b9f7 Fix SIP type handling for QgsColorScheme subclasses 2015-12-07 21:55:36 +11:00
Alexander Bruy
584771e907 fix missed import in the Processing alg 2015-12-07 10:12:21 +02:00
Nyall Dawson
91f7918e21 [FEATURE] Add a show/hide all context menu for layer tree symbol items
Allows toggling on/off all the symbol items for categorized/graduated/
rule based layers via the right click menu on an item. Previously
you'd have to manually toggle each item one-by-one.

Fix #13458
2015-12-07 07:39:20 +11:00
elpaso
e5ca63deed Refactored the python init function selector
Do not rely on the presence of a dot to load
a module. Loading a module can now be achieved
through the code editor in the dialog.

* added an option to load from environment
* added a file selector to specify the file
* changed tooltips accordingly
2015-12-05 09:45:09 +01:00