976 Commits

Author SHA1 Message Date
vmora
eb769f7ff3 demonstrate bug in qgsexpression 2014-02-08 21:10:50 +01:00
Martin Dobias
10c15089d1 Fix #8584 (WFS requests with FILTER fails against Geoserver) 2014-02-08 01:09:31 +07:00
Martin Dobias
caf33b657f Fix #8174 (overlaps when using 'avoid intersections' functionality) + test
I am not entirely confident if it will work perfectly with older versions of GEOS (< 3.3)
because of the lack of unary union (that is emulated by series of unions of two geometries)
2014-02-07 12:03:18 +07:00
Nyall Dawson
ffcbdabe4e [composer] Refresh control images following frame join stle change 2014-02-06 22:46:43 +11:00
Juergen E. Fischer
70c594984f fix QgsGeometry::moveVertex on polygon (fixes #9442) 2014-01-30 19:17:38 +01:00
Nyall Dawson
415b467dd6 Fix failing PyQgsBlendModes test 2014-01-30 22:24:19 +11:00
Nyall Dawson
058cba2037 [composer] Add some anomoly images for scale bar tests 2014-01-30 22:24:19 +11:00
Juergen E. Fischer
bc757ffe50 * fix QgsGeometry::moveVertex for multipolygons()
* add test for QgsGeometry::addPart()
* remove expectedFailure decoration from PyQgsGeometry.testSimplifyIssue4189
* modify move and translate tests by 1,1 to 1,2
2014-01-29 21:36:50 +01:00
Juergen E. Fischer
105ecfa83d make sure the symbology-ng db can be copied in qgis_stylev2test 2014-01-25 23:32:41 +01:00
Juergen E. Fischer
781e34a5bc fix QgsGeometry::asMultiPoint() (followup 6bbd17c2; fixes #9423) 2014-01-25 10:28:17 +01:00
Juergen E. Fischer
6f15e59ff9 fix deleteVertex for POLYGON and MULTILINESTRING 2014-01-24 09:53:18 +01:00
Juergen E. Fischer
6bbd17c217 QgsGeometry refactoring:
* rework wkb parsing using Qgs(Const)WkbPtr
 * replaces pointer dereferencing with memcpy
 * should work on platform that don't allow unaligned accesses
* "fix" adjacentVertices() for invalid inputs
* improved support for MULTIPOINT
* fixes insertion of first vertex into linestrings
* fixes inserting into multipolygons
2014-01-23 21:48:36 +01:00
Juergen E. Fischer
cb5c4e9982 add QgsDistanceArea tests and enhance QgsGeometry tests a bit
(in preparation for a QgsGeometry wkb update)
2014-01-23 21:37:03 +01:00
Alvaro Huarte
1e781ff838 #8725-R: fix old API in other test cpp files 2014-01-15 11:00:01 +01:00
Alvaro Huarte
062c1e411a #8725-R: fix old API in testqgsblendmodes.cpp 2014-01-15 11:00:01 +01:00
Nyall Dawson
6bb9dfec00 [FEATURE][composer] Allow for more than one atlas controlled map in compositions (or none), by moving some atlas properties to map items (fix #9248) (fix #6484) 2014-01-14 22:52:01 +11:00
Martin Dobias
90b10f79cf Fix unit tests
- QgsFeature owns QgsFields (otherwise the assigned QgsFields may get deleted)
- updated QgsRenderChecker to use map settings + map renderer job
- fixed DPI issue in map renderer to map settings conversion
- fixed vector layer cache (failing file operations)

There are still few tests that keep failing compared to master branch,
but the reason for failure are tiny pixel diffs and we should probably just
update the expected images.
2013-12-11 16:21:35 +07:00
Martin Dobias
151bad59cd Update to qgis_bench: use renderer job, allow parallel mode, print other time 2013-12-10 17:31:17 +07:00
Martin Dobias
e4a1651c49 Bring back render caching 2013-12-09 22:18:39 +07:00
Martin Dobias
0d2fbbe2cb Sync works now between QgsMapRenderer and QgsMapCanvas 2013-12-06 19:08:43 +07:00
Martin Dobias
2bece090f5 Update Python bindings to match changes in core/gui libraries. 2013-12-05 18:27:45 +07:00
Martin Dobias
5386324e15 Made QgsSpatialIndex implicitly shared class.
As a bonus, spatial index is a bit faster (10%) as we do not use random eviction buffer
anymore (which makes sense only when using disk storage manager).

Added basic tests for spatial index
2013-12-03 17:33:52 +07:00
Martin Dobias
879f051601 Reporting of rendering errors, safer isActive() for custom painter job 2013-11-26 19:10:16 +07:00
Martin Dobias
9a4f326ae3 Implementation of parallel rendering job (work in progress)
More changes:
- few improvements to map renderer job API
- added basic unit test for map renderer job
- map canvas uses P key to switch parallel/sequential rendering
2013-11-25 20:45:37 +07:00
Martin Dobias
5b6393f22f Revived labeling and diagrams for vector layers 2013-11-20 18:48:24 +07:00
Martin Dobias
2fcf556c3c Do the rendering of map layers within special classes
This is an important change: new class (QgsMapLayerRenderer) is introduced
and it keeps all information from layer which is necessary for rendering.
Thanks to that, any changes to map layer will have no impact on rendering that
may be currently underway: if the user changes renderer, rendering will
not crash because it is using a different instance.

Work in progress: only vector layers, no labeling, no diagrams, iterator
still uses some bits from QgsVectorLayer.

Another change: QgsFeatureRendererV2, QgsSymbolV2 do not get access
to QgsVectorLayer - only to fields they need. Point displacement renderer
did more extensive use of QgsVectorLayer - currently it is not functional.
2013-11-20 16:01:12 +07:00
Martin Dobias
cfc2a48539 Restore advanced layer effects, labeling in composer.
Also fixes DpiY setting in composer + workaround for QPicture DPI issues
2013-11-14 15:15:11 +07:00
Martin Dobias
630272d280 Conversion of composer to use map renderer job 2013-11-13 10:08:27 +07:00
Martin Dobias
2d12aca357 More changes to use QgsMapSettings instead of QgsMapRenderer 2013-11-11 18:03:35 +07:00
Juergen E. Fischer
ec0f0bea28 indentation update and a few fixed typos 2013-10-24 15:26:39 +02:00
Alexander Bruy
8d947e2c86 fix scalecombobox test 2013-10-19 15:13:48 +03:00
Larry Shaffer
0218f078f2 [tests] Fix OSM unit test on Mac 2013-10-16 14:42:00 -06:00
Matthias Kuhn
44b7767134 Create hash method for QgsPoint (Fix #8775) 2013-10-12 12:26:10 +02:00
Matthias Kuhn
b3b54d1fe2 Fix header 2013-10-07 17:50:58 +02:00
Matthias Kuhn
a91864ec8b Add relation unit test 2013-10-07 16:17:43 +02:00
Matthias Kuhn
331f71acba [attrtable] Selection model and request filter
* With a selection model, the way the attribute table handles selections
  can be customized. E.g. synchronized to layer selection or used to pick
  features.
* With request filters, the visible features on an attribute table can be
  limited. This will effectively reduce the subset of features the attribute
  table works on. Additional filters by means of a proxy model can of course
  further reduce the visible subset subsequently.
2013-10-07 16:17:42 +02:00
Chris Crook
4072e39227 Merge pull request #917 from matthias-kuhn/csv_test_fix
Fix CSV test to support python NULL value
2013-10-04 11:45:35 -07:00
Hugo Mercier
bf076a0c1f Emit a signal when layer symbology changes 2013-10-04 09:59:18 +02:00
Matthias Kuhn
934e4855ec Fix CSV test to support python NULL value 2013-10-02 14:52:20 +02:00
Larry Shaffer
cfa34641b0 Merge pull request #905 from yellow-sky/show_partial_labels
Show partials labels
2013-09-28 20:35:06 -07:00
yellow-sky
3e382dac77 Unit tests for ShowingPartialsLabels reorganized 2013-09-26 19:43:08 +04:00
Juergen E. Fischer
a17787b36a fix PyQgsAtlasComposition and PyQgsComposerLabel test 2013-09-25 22:59:02 +02:00
Larry Shaffer
87163c6098 Add unit test for PYQGIS_STARTUP environment variable
- Make PyQgsAppStartup test more general and PEP8 compliant
2013-09-24 15:42:05 -06:00
yellow-sky
83c8478f8f Added unit-tests for ShowingPartialsLabels 2013-09-20 14:53:18 +04:00
Matthias Kuhn
df7f39c7e5 Add featureiterator tests 2013-09-18 18:57:52 +01:00
Juergen E. Fischer
51297d5990 indentation update (note to self: always run scripts/prepare-commit.sh before committing) 2013-09-17 12:41:43 +02:00
nyalldawson
58d0483c46 [FEATURE] Setting for corner radius for composer rectangle shapes, allows creation of rounded rectangles in composers
Add tests for composer shapes
2013-09-17 08:17:51 +02:00
Larry Shaffer
8fb9816c67 [tests] Make app startup test work on Mac
- Handle bundled app path on Mac
- Move test writes to temporary, instead of source, directory
- Add Mac code for options.ini parent directory
- Add Mac options.ini file for plugin path test
- Clean up imports
2013-09-15 16:18:52 -06:00
Tim Sutton
64c947b2f0 Merge pull request #749 from Oslandia/issue8045b
Unit tests for command line arguments
2013-09-15 02:47:07 -07:00
Juergen E. Fischer
93cdd0ca40 indentation update 2013-09-08 20:26:43 +02:00