1731 Commits

Author SHA1 Message Date
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
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
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
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
Nyall Dawson
edb16d0014 [FEATURE] Feature limit support for feature requests
Limits the maximum number of features returned by the iterator.
Some providers (postgres, spatialite, MS SQL) pass the limit on
to the provider to result in faster queries.
2015-12-05 10:24:42 +11:00
Nyall Dawson
9eee121115 Apply filters to feature request for categorized renderer
Makes rendering much faster when only certain categories are checked,
as only the matching records for the displayed features are fetched
from the provider.
2015-12-04 07:29:06 +11:00
Michael Douchin
706e651484 Postgresql provider - Use postgis 2.2 ST_RemoveRepeatedPoints for simplification 2015-12-01 14:31:53 +01:00
Matthias Kuhn
71fc4576c9 Doxymentation fix 2015-12-01 12:51:57 +01:00
Matthias Kuhn
e76949b2a0 More sip bindings 2015-12-01 11:45:44 +01:00
Matthias Kuhn
4d679511fb Add API to QgsMapLayerRegistry to rely less on ids 2015-12-01 11:45:44 +01:00
Matthias Kuhn
bb9eb79021 More missing sip bindings
Ouch
2015-12-01 10:27:46 +01:00
Nyall Dawson
48e4d1c977 Add a method for getting a quoted string value for use as a literal
in expressions
2015-12-01 19:33:27 +11:00
Matthias Kuhn
95d227176b Add missing sip bindings 2015-12-01 09:20:00 +01:00
Nyall Dawson
d388a4f1a4 [geometry] Add method to drop z/m values from a geometry 2015-12-01 16:33:44 +11:00
Nyall Dawson
a3d780cb4e [geometry] Add method to drop z/m from wkb types 2015-12-01 16:33:13 +11:00
Matthias Kuhn
68a01c9ab1 Add QgsVectorLayer::deleteFeatures() method 2015-11-30 21:33:35 +01:00
Matthias Kuhn
bffb3a5d7f python bindings for ebc9e029 2015-11-30 14:42:50 +01:00
Matthias Kuhn
6992f2450e Add QGIS3 API change comment 2015-11-30 13:52:11 +01:00
Juergen E. Fischer
0519423b0f fix pyuic wrapper where qt4 & 5 are available 2015-11-29 17:04:56 +01:00
Nyall Dawson
7eb1133bc5 Make QgsLineStringV2::fromWkbPoints private 2015-11-27 16:32:47 +11:00
Nyall Dawson
1f33011960 Add more tests to QgsLineStringV2, fix vertexAngle calculation 2015-11-27 16:32:09 +11:00
Nyall Dawson
74ca290bd3 QgsLineStringV2 fixes
- fix incorrect centroid calculation (was always returning 0,0)
- fix closestSegment when numPoints < 2
- fix broken leftOf calculation for closestSegment
- area calculation when numPoints < 2

Plus add more unit tests
2015-11-26 16:56:30 +11:00
Nyall Dawson
f45f688f61 [labeling] Avoid placing labels over ANY part of point symbols 2015-11-25 17:00:20 +11:00
Nyall Dawson
ffebfd9bb7 [FEATURE] Allow overide of geometry type in vector save as dialog
Also allows forcing output file to be multi type, or include z
dimension.

This makes it possible to do things like save a geometryless
table WITH a geometry type, so that geometries can then be
manually added to rows. Previously this was only possible to do in
QGIS by resorting to dummy joins or other hacks.
2015-11-24 06:30:15 +11:00
Nyall Dawson
55ead85382 Allow setting label obstacle geom in QgsPalLabeling::registerFeature
Sponsored by City of Uster
2015-11-21 22:52:22 +11:00
Juergen E. Fischer
22f0f25364 fix builds with older compilers 2015-11-20 23:12:53 +01:00
Matthias Kuhn
d795e508cc Merge pull request #469 from olivierdalang/SanitizeEntryNames
Warning about invalid entry names
2015-11-20 18:03:44 +01:00
Juergen E. Fischer
79640ef805 restore QgsVectorLayer::setReadOnly (followup 4cd1e38) 2015-11-20 15:45:02 +01:00
Nyall Dawson
4203a7c1f4 Add method to determine approximate rendered symbol bounds for markers
Sponsored by City of Uster
2015-11-20 19:55:02 +11:00
Nyall Dawson
323f265c94 Misc cleanups following c9f0d83 2015-11-20 10:38:34 +11:00
Matthias Kuhn
5b5960970e Some sip changes and doxymentation 2015-11-19 15:32:28 +01:00
Matthias Kuhn
4cd1e38631 fieldEditable -> readOnly 2015-11-19 15:32:28 +01:00
Matthias Kuhn
a50f2d051f Refactor edit form configuration out of QgsVectorLayer 2015-11-19 15:32:28 +01:00
Nyall Dawson
f3a5dcc98b Fix build 2015-11-19 20:37:47 +11:00
mhugent
422abbde5e Merge pull request #2056 from sbrunner/qgis-server-security
[Feature] Add an interface in QGIS Server for access control plugins
2015-11-19 10:23:04 +01:00