1465 Commits

Author SHA1 Message Date
Juergen E. Fischer
b28c4847c7 dxf export:
* add missing marker types (fixes #13062)
* add missing support for data-defined marker names (fixes #13063)
2015-07-02 21:50:22 +02:00
Nyall Dawson
e4d0d27cd2 Followup 87c05f1 2015-06-27 12:05:55 +10:00
Nyall Dawson
feb3bee858 Add a bunch of optimised fuzzy string matching algorithms.
A new QgsStringUtils class has been added containing some
common fuzzy matching algorithms, including Levenshtein edit
distance and Soundex. These can be used for finding "similar"
strings in a table.

Expression functions for these algorithms have also been
added to a new "Fuzzy Matching" group.
2015-06-27 11:51:56 +10:00
Jürgen Fischer
6e3a1fa057 Merge pull request #2118 from jef-n/postgres-like-concat
expressions: let concat handle NULL like empty string (like in postgres; fixes #1927)
2015-06-26 01:14:20 +02:00
Marco Hugentobler
39f8bd9eb9 Add factory annotation 2015-06-25 11:34:36 +02:00
Marco Hugentobler
7b31f8a02f Remove python bindings for QgsGeos, move createGeometryEngine() from edit utils to QgsGeometry class 2015-06-25 10:45:53 +02:00
vmora
32a72cd9aa allow user to control size for NULL values
added a field in the assistant to specify the symbol size when
expression evaluates to NULL
2015-06-24 20:24:23 +10:00
carolinux
37cd9e7a0d Added doxygen docs 2015-06-24 01:15:42 +02:00
carolinux
45681e6e0a Added setBand capability to qgssinglebandpseudocolorrenderer API 2015-06-23 17:19:58 +02:00
Juergen E. Fischer
7031cfb995 dxf export: deprecate writeSolid (replaced with writePolygon) and add some doxymentation 2015-06-23 15:34:33 +02:00
Marco Hugentobler
0bbc11b3f8 Derive MultiLineString from MultiCurve and MultiPolygon from MultiSurface 2015-06-23 13:41:14 +02:00
Nyall Dawson
c590e1ecee Hide unimplemented GeometryV2 clip methods 2015-06-22 22:20:27 +10:00
Nyall Dawson
f037b11f8e [georef] Allow report to flow onto multiple pages to show all
GCPs (fix #4602)
2015-06-22 21:53:44 +10:00
Nyall Dawson
0912314f0c Fix crappy documentation (which I wrote) which came back to bite
me and wasted part of my life I'll never get back...
2015-06-22 21:53:44 +10:00
Nyall Dawson
6e73c53a1b Implement stubbed QgsGeometry methods 2015-06-22 21:34:49 +10:00
Nyall Dawson
e53debe215 Update doxygen comments for QgsGeometry, reflecting that QgsGeometry
is a generic geometry container from >= 2.10.
2015-06-22 21:29:51 +10:00
Nyall Dawson
436350a4e3 Make QgsVectorLayer::setDataSource maintain renderer where possible 2015-06-22 19:26:05 +10:00
Juergen E. Fischer
b3c2bd7f21 dxf export:
* fix support for data-defined properties in SVG export
* remove drawRects and let it fallback to drawPath and drawPolygon
* close arcs
2015-06-20 01:12:13 +02:00
Martin Dobias
0c5352fad6 Remove invalid/crashing QgsComposerHtml constructor (fixes #12009) 2015-06-18 16:30:50 +08:00
Martin Dobias
40acaa051a Deprecate QgsRasterLayer::setDrawingStyle() (fixes #12635) 2015-06-18 12:47:45 +08:00
Matthias Kuhn
8342739b37 Expressions: preserve brackets for right-associative operators
Fixes #11475
2015-06-16 19:46:26 +02:00
Denis Rouzaud
a518e9f639 [fix #11475] expressions: add left and right associavity for dump of binary operators
complete test for left associativity
2015-06-16 19:07:45 +02:00
Nyall Dawson
cf2fa39691 [effects] Initially populate effects with a default list of effects
Default list shows a number of common effects like drop shadows,
but they are disabled. This allows users to easily enable them
just by checking them in the list. End result is a more user
friendly and familiar effects interface.

Advanced users can still reorder, add/remove effects as before.
2015-06-16 21:30:53 +10:00
Nyall Dawson
7a3a857d79 Add QgsFontUtils methods for saving/loading font from XML (fix #12644)
Fixes loss of font styles when restoring projects. Credit to @nirvn
for the initial implementation.
2015-06-15 19:40:28 +10:00
Matthias Kuhn
8fbee12106 Fix "return reference to temporary" 2015-06-15 10:26:05 +02:00
Nyall Dawson
53218948b1 Add QgsGeometry::isEmpty to test if underlying geometry exists 2015-06-13 13:43:17 +10:00
Nyall Dawson
80cfbbf37e Add method to set QgsAbstractGeometry for QgsGeometry, add tests
for implicit sharing of QgsGeometry
2015-06-12 22:50:47 +10:00
Nyall Dawson
604f7e5011 Add methods to test whether graduated ranges overlap or have gaps 2015-06-12 20:19:43 +10:00
Juergen E. Fischer
ec0e971c30 add missing sip bindings 2015-06-11 19:19:00 +02:00
Nyall Dawson
559d7bb943 [rastercalc] Rework raster calculator to use QGIS raster classes
...rather than reading input layers directly through GDAL.
Benefits include more robust handling of nodata/data type conversions,
less code duplication, also being able to take advantage of features
in QGIS raster code like handling gain/offset in rasters. (fix #12450)

Also, add a choice of output projection to the raster calculator.
Previously the output CRS would be taken from the first raster, with
no guarantees that the output extent matched the output CRS. This
resulted in empty/misplaced rasters. (fix #3649)
2015-06-10 21:45:37 +10:00
Nyall Dawson
920f2ebe56 Fix bug causing raster blocks to be cleared when reprojecting
If a QgsRasterBlock had no nodata value set, then reprojecting
the raster using QgsRasterProjector would result in the entire
block being set to nodata.
2015-06-09 21:57:08 +10:00
Marco Hugentobler
624d142ec4 Fix bugs related to adding and removing geometry parts 2015-06-07 11:07:50 +02:00
Juergen E. Fischer
3387d6f632 expression: let concat handle NULL like empty string (like in postgres) 2015-06-06 11:29:44 +02:00
Matthias Kuhn
385529ef7b PalLabelling: Reproject geometries before evaluating mininum size
Followup 2b096e09
2015-06-03 23:59:42 +02:00
Matthias Kuhn
2b096e09e2 Fix suppress labelling of short lines
And deduplicate code
Followup cfe397e
2015-06-03 18:53:36 +02:00
Matthias Kuhn
5d38bd158c Python ConvertToSubclass and Doxymentation for drag and drop designer API 2015-06-01 20:33:02 +02:00
Matthias Kuhn
55db2abc5c Fix sip bindings for QgsTransaction 2015-06-01 16:06:15 +02:00
Juergen E. Fischer
df0b842fdb geometry sip sync 2015-06-01 15:17:56 +02:00
Nyall Dawson
41ad9abb40 Fix geometry errors:
- Add some missing docs
- Add some missing detach calls
- Hide unimplemented clip method to avoid confusion for 2.10 api
- Fix broken distance method
- Fix broken split method
2015-06-01 21:44:57 +10:00
Juergen E. Fischer
2ab8a0bed9 include user.py in translations 2015-05-31 00:42:51 +02:00
Nyall Dawson
51bd0b2bc5 Followup 2dc5d95, add unit tests 2015-05-31 07:58:05 +10:00
Juergen E. Fischer
aeb0e71e32 fix sip bindings 2015-05-29 20:35:42 +02:00
Marco Hugentobler
0e55b3bf0f Fix loading of curved multitypes 2015-05-29 18:00:24 +02:00
Marco Hugentobler
82d18e7e61 Update python binding for QgsGeometry 2015-05-29 11:40:20 +02:00
Juergen E. Fischer
dd53fda846 indentation update 2015-05-29 08:57:54 +02:00
Nyall Dawson
e7219050a1 Avoid unnecessary detach of QgsFeature when renderering non-curved
geometries
2015-05-29 06:46:42 +10:00
Matthias Kuhn
8eca38ca5f Attribute table performance when deleting features
This fixes performance issues with the attribute table visible when deleting a
large number of features.

The attribute table tries to behave smart in the following way:

 * It tries to remove only the deleted rows as long as they are in one or a few
   single blocks
 * If there are more than 100 rows to delete and it starts to delete blocks
   of a size smaller than 10 it assumes that the selection to delete is widely
   distributed and that a reload of the whole model is less expensive than a
   differential update.

Fix #10167
2015-05-27 22:28:23 +02:00
Nyall Dawson
ec01d7698e More Coverity memory leak fixes 2015-05-27 23:03:00 +10:00
Nathan Woodrow
f2144918d2 Less verbose template function message.
args='auto' and group='custom' as default
2015-05-27 22:39:12 +10:00
Nathan Woodrow
e6403da7b2 Remove adding $ to front of custom functions
Fixes calling no argument functions
2015-05-27 21:27:24 +10:00