4456 Commits

Author SHA1 Message Date
Martin Dobias
7e34beec8c New API for traversal of geometry's vertices using iterator pattern
Introducing:
1. STL-style iterator: QgsAbstractGeometry::vertex_iterator
2. Java-style iterator: QgsVertexIterator (built on top of STL-style)

The iterators are modeled after Qt's STL-style and Java-style iterators,
the idea is to replace nextVertex() method and later introduce iterators
for other bits (e.g. part_iterator, ring_iterator).
2017-10-14 13:23:14 +02:00
Nyall Dawson
24a9c522e3 Move qgsAsConst to qgis::as_const
So it's more inline with the std::as_const implementation which
it fills in for, and allows us to 'polyfill' other c++>11
features into the qgis:: namespace.
2017-10-13 19:47:37 +10:00
Martin Dobias
ca0aa72bf1 [needs-docs] Remove OpenStreetMap integration in analysis lib + app
- unmaintained and barely working anymore
- clunky GUI
- not supporting .pbf
- there are other python plugins doing the same thing better
- nobody is using it anymore

https://lists.osgeo.org/pipermail/qgis-developer/2017-October/050103.html
2017-10-13 09:39:47 +02:00
Nyall Dawson
9a3b547d33 Merge pull request #5330 from nyalldawson/layout_next
[layouts] Port group handling
2017-10-13 13:02:44 +10:00
Nyall Dawson
0028486a96 Merge pull request #5185 from nyalldawson/materialize
QgsFeatureSource::materialize experiment
2017-10-12 13:58:44 +10:00
Etienne Trimaille
098611c3f6 add helper to build a QgsRectangle from a WKT string 2017-10-12 06:32:02 +10:00
Martin Dobias
006352f128 More tessellation fixes and more unit tests 2017-10-11 12:33:47 +02:00
Martin Dobias
8412a87c00 Improvements to tessellator unit test + death to qIsNaN() 2017-10-11 10:07:41 +02:00
Martin Dobias
2c246908d7 Fixes to make tessellation of polygons without Z work again
+ initial work on unit testing of tessellator
2017-10-11 01:17:08 +02:00
Martin Dobias
863197f095 Code layout fixes after rebase 2017-10-10 12:22:17 +02:00
Martin Dobias
89b884a382 Fixes to initial unwanted segment when tracing with offset + unit tests! 2017-10-10 10:50:27 +02:00
Martin Dobias
b140b29718 [FEATURE] Tracing with optional offset
Tracing button in the snapping toolbar gets extra menu where it is possible to set
offset that will be applied to the traced line. Offset value can be either positive
(right side) or negative (left side).
2017-10-10 10:50:27 +02:00
Blottiere Paul
217c0e799a Merge pull request #5145 from pblottiere/bugfix_ogc_getcapa_schemalocation
[server][bugfix] Fix OGC test getcapabilities:validate-using-schemaLocation
2017-10-10 09:20:26 +01:00
Blottiere Paul
43bb3119e1 Add test 2017-10-10 08:02:33 +01:00
Blottiere Paul
a9a2c200e3 Search schemaExtension.xsd in share directory 2017-10-10 08:02:33 +01:00
Blottiere Paul
fc876fe547 Add some tests 2017-10-10 07:05:28 +01:00
Nyall Dawson
fdc0f75066 Fix redoing group visibility creates multiple new undo commands 2017-10-10 09:37:29 +10:00
Nyall Dawson
30eab10619 Fix handling of overlapping item commands 2017-10-10 09:06:02 +10:00
Nyall Dawson
f58947d9b6 Fix valgrind noise 2017-10-09 20:28:39 +10:00
Nyall Dawson
02acbb4184 Fix undo/redo for groups 2017-10-09 19:23:46 +10:00
Nyall Dawson
e17b32c6e2 Fix moving/resizing grouped items 2017-10-09 19:23:46 +10:00
Nyall Dawson
7c81a1516d Grouped items are not selectable 2017-10-09 19:23:46 +10:00
Nyall Dawson
5aa9a1556f Start porting group handling from composer 2017-10-09 19:23:46 +10:00
Blottiere Paul
ac66ced1c3 Merge pull request #5086 from pblottiere/pr_auxiliary_storage
[Feature] Auxiliary Storage
2017-10-09 08:58:21 +01:00
Denis Rouzaud
8a8e2e3a14 fix sipify test 2017-10-09 09:51:40 +02:00
Blottiere Paul
3d7ac65764 Add tests 2017-10-09 05:13:59 +01:00
Ismail Sunni
1be2f3ee66 Add methods to remove variables from global/project scope 2017-10-09 12:03:37 +10:00
Nyall Dawson
9aa6142bab Merge pull request #5291 from nyalldawson/layout_next
[layouts] Port most interaction actions from composer
2017-10-09 10:12:17 +10:00
Matthias Kuhn
8915936296 Close file after write 2017-10-07 15:23:56 +02:00
Matthias Kuhn
379b5ed7de Remove executable flag from test files 2017-10-07 15:23:56 +02:00
Matthias Kuhn
83f9e81e95 [travis] Less noise for DB initialisation 2017-10-07 14:21:13 +02:00
Marco Bernasocchi
1c63522819 Added QgsFields::names method to get a list of all the names of fields 2017-10-06 22:52:26 +02:00
Nyall Dawson
0c858d27d6 Port display name handling from composer 2017-10-06 18:43:10 +10:00
Nyall Dawson
c8eaeb8f93 Port hide pages action from composer 2017-10-06 17:48:25 +10:00
Nyall Dawson
aa7beaad6a Port keyboard nudge of items from composer 2017-10-06 17:48:25 +10:00
Nyall Dawson
66b4bdf01d Fix invalid merge of non equal item commands 2017-10-06 17:48:25 +10:00
Nyall Dawson
a66f2cb684 Nicer API for adding/removing items
Automatically create the corresponding undo commands, so that
plugins and scripts which add/delete items will be added to
the undo stack without any work required.
2017-10-06 17:48:25 +10:00
Nyall Dawson
f3bfcc3182 Save/restore frame properties, add unit tests for undo/redo 2017-10-06 17:48:25 +10:00
Nyall Dawson
616aec1566 Save/restore a few more layout item properties 2017-10-06 17:48:25 +10:00
Nyall Dawson
c022bc825e [FEATURE][layouts] Add 'resize to square' action
Resizes all selected items so that they are square
2017-10-06 17:48:25 +10:00
Nyall Dawson
e3616f08c4 [FEATURE][layout] Add actions to auto resize items in a selection
Options are resize to narrowest, widest, shortest and tallest.
2017-10-06 17:48:25 +10:00
Nyall Dawson
5141c05ba7 [FEATURE][layout] Add item distribution actions
Adds actions for distributing selections of items by their
left/center/right/top/bottom edges.

Useful for quickly evenly distributing items in the layout

Needs new icons
2017-10-06 17:48:25 +10:00
Nyall Dawson
c5fcc9da69 Unit tests for alignment 2017-10-06 17:48:25 +10:00
Nyall Dawson
c6da276783 Add more unit tests 2017-10-06 17:48:25 +10:00
Nyall Dawson
822d6f76a3 Move actions which apply to selected items only to QgsLayoutView
Selections are a gui concept, so these actions belong to the
gui class instead of cluterring QgsLayout
2017-10-06 17:48:25 +10:00
Nyall Dawson
fdba8f199a Add tests for changing item z order 2017-10-06 17:48:25 +10:00
Nyall Dawson
e74a632002 Unfinished restore of stacking actions 2017-10-06 17:48:25 +10:00
Nyall Dawson
4cba2b90ef Port select next above/below actions 2017-10-06 17:48:25 +10:00
Nyall Dawson
dbb31253e9 Resurrect locking/unlocking item actions 2017-10-06 17:48:25 +10:00
Nyall Dawson
62a5679230 Port item model from composer to layouts 2017-10-06 17:48:25 +10:00