52203 Commits

Author SHA1 Message Date
signedav
8fda2b7df8 use temp copy of points.shp 2018-12-10 17:53:01 +01:00
signedav
73e3eadfc9 fix test and add test cases 2018-12-04 10:37:49 +01:00
signedav
be9f6bb97a tests if gpkg back synchronization provides the same values 2018-12-03 18:10:27 +01:00
signedav
0f653179ff handle fid attribute in attrLookup on synchronization
and use column++ again on iteration through attributes on copyVectorLayer

fixes #20276 especially the not reported issue with synchronization
2018-12-03 15:26:48 +01:00
signedav
d173b70b53 leave last attribute empty instead of first
because though fid appears to be the first field it's added in the end and has the last index.

fixes #20276
2018-11-22 12:52:51 +01:00
Nyall Dawson
59686e73d7 Package missing ESRI token auth method 2018-11-22 18:53:33 +10:00
Martin Dobias
d4ef55dadb
Merge pull request #8509 from wonder-sk/terrain-map-themes
[FEATURE] Optionally use a map theme to render terrain textures
2018-11-22 09:24:27 +01:00
Alessandro Pasotti
fee3935887
Merge pull request #8519 from elpaso/browser-gpkg-vector-rename
[feature][needs-docs] Allow gpkg vector rename from browser
2018-11-21 16:29:50 +01:00
Martin Dobias
afd3525297 Add test for terrain theme + do not use project singleton 2018-11-21 16:29:42 +01:00
Mathieu Pellerin
d257cf0776 Add a project properties dialog test case 2018-11-21 21:46:50 +07:00
Mathieu Pellerin
4e1d6841ae Avoid more needless project dirtying 2018-11-21 21:46:50 +07:00
Alessandro Pasotti
5171e4e64d
Merge pull request #8520 from elpaso/bugfix-20549-invalid-xml-gfi
[server] Fix invalid xml in getfeatureinfo
2018-11-21 13:32:35 +01:00
Alessandro Pasotti
bb44e2b60b
Merge pull request #8512 from elpaso/docker-testing-env-tests
Docker testing env tests
2018-11-21 13:27:02 +01:00
Alessandro Pasotti
fe8d419c4d Support F2 for layer rename action
Also refactored some internal methods to
avoid duplication of code and use parent
class virtual rename() instead of a new
method for gpkg only.
2018-11-21 12:16:34 +01:00
Denis Rouzaud
d1d3a51efb
Merge pull request #8429 from lbartoletti/extendMapTool
[needs-docs][FEATURE] Trim/extend
2018-11-21 06:36:08 +01:00
Simon Wells
f3fbd060ce fix another include directive for spatialindex 2018-11-21 16:13:44 +11:00
Simon Wells
e91cd93cc1 Remove PATH_SUFFIX as it is no longer needed, as it is optional it is not sufficient to be used in place of spatialindex/ 2018-11-21 16:13:44 +11:00
Simon Wells
c341d8da90 avoid conflicting geos spatialindex.h include file
correct includes for spatialindex
2018-11-21 16:13:44 +11:00
Nyall Dawson
cd0a314114 [needs-docs] Add shortcut for paste to scratch layer (Ctrl+Alt+V) 2018-11-21 16:05:28 +11:00
nirvn
9faab8162a [ui] Harmonize save raster layer as dialog's scroll area 2018-11-21 10:34:31 +07:00
nirvn
1237fb6786 [needs-docs][ui] Move 'add saved file to map' option away from data settings 2018-11-21 10:34:31 +07:00
Nyall Dawson
5603546c26 Dox 2018-11-21 08:48:55 +11:00
Nyall Dawson
e21ea25c66 Add method to set QgsFeature geometry directly from QgsAbstractGeometry
Allows

    feat.setGeometry(QgsPoint(1,2))

instead of the more obscure

    feat.setGeometry(QgsGeometry(QgsPoint(1,2)))
2018-11-21 08:48:55 +11:00
Nyall Dawson
17e58738b8 Capitalization 2018-11-21 06:57:13 +10:00
Alessandro Pasotti
0d696ef1e5 [server] Fix invalid xml in getfeatureinfo
Fixes #20549 - error in parsing WMS GetFeatureInfo as XML

Also s/meta/META/ for consistency with all other tags
2018-11-20 18:26:49 +01:00
Alessandro Pasotti
e44d620d29 [feature][needs-docs] Allow gpkg vector rename from browser 2018-11-20 17:41:24 +01:00
Alessandro Pasotti
2d30e0e342
Merge pull request #8517 from elpaso/docker-testing-env-docs
Docker testing env docs
2018-11-20 15:40:02 +01:00
Alessandro Pasotti
9e2d172dfd Typos and small improvements 2018-11-20 14:46:58 +01:00
Alessandro Pasotti
9c6e24fd19 Redirect test output to dev null 2018-11-20 13:01:48 +01:00
Alessandro Pasotti
2b77a659eb Fix path to tester script 2018-11-20 11:32:43 +01:00
Alessandro Pasotti
7e00afc2c7
Merge pull request #8510 from signedav/fix_providerIndex
Don't handle defaultValueClause as not unique value
2018-11-20 11:16:28 +01:00
Alessandro Pasotti
0814b624b8 Move test in its own script 2018-11-20 10:31:05 +01:00
Alessandro Pasotti
ed9709b4fa Copy updated test runner into the docker
Handle -e and do not exit on error
2018-11-20 10:31:05 +01:00
Alessandro Pasotti
e8e66d086b Fix the python test runner and add a test for it 2018-11-20 10:31:05 +01:00
Alessandro Pasotti
47f29df263 Spelling 2018-11-20 10:24:09 +01:00
Alessandro Pasotti
ff06651788 Added circle-ci 2018-11-20 09:40:52 +01:00
Alessandro Pasotti
a786c40662 Documentation for the dockers 2018-11-20 09:21:57 +01:00
David Adler
ba81a2ee13 Fix indentation - issue #20337
Hopefully this is correct.
I'm not having much luck getting prepare-commit.sh or astyle.sh to run on Windows.
2018-11-20 11:03:55 +11:00
David Adler
dd2ed9cd30 Update src/providers/db2/qgsdb2provider.cpp 2018-11-20 11:03:55 +11:00
David Adler
63aa1e1e0e Update src/providers/db2/qgsdb2provider.h 2018-11-20 11:03:55 +11:00
dwadler
d998465db9 run prepare-commit on DB2 fixes for #20337 2018-11-20 11:03:55 +11:00
David Adler
c339dd49fb DB2 fixes for #20337 2018-11-20 11:03:55 +11:00
Nyall Dawson
152b1b09ff [needs-docs] Fix use of duplicate action name
(Properties is already used by project properties)
2018-11-20 05:06:25 +11:00
Nyall Dawson
a8ecc683b7 Avoid QObject::connect null warning 2018-11-20 05:06:25 +11:00
Nyall Dawson
34c217cd46 Fix crash when calculating offset on certain single curves which become multilinestrings when offset 2018-11-20 05:06:06 +11:00
Nyall Dawson
a22422c4bf [FEATURE][API] Add parts iterators to QgsGeometry
This allows easy iteration over all the parts of a geometry,
regardless of the geometry's type. E.g.

geometry = QgsGeometry.fromWkt( 'MultiPoint( 0 0, 1 1, 2 2)' )
for part in geometry.parts():
  print(part.asWkt())

geometry = QgsGeometry.fromWkt( 'LineString( 0 0, 10 10 )' )
for part in geometry.parts():
  print(part.asWkt())

There are two iterators available. QgsGeometry.parts() gives
a non-const iterator, allowing the parts to be modified in place:

geometry = QgsGeometry.fromWkt( 'MultiPoint( 0 0, 1 1, 2 2)' )
for part in geometry.parts():
   part.transform(ct)

For a const iteration, calling .const_parts() gives a const
iterator, which cannot edit the parts but avoids a potentially expensive
QgsGeometry detach and clone

geometry = QgsGeometry.fromWkt( 'MultiPoint( 0 0, 1 1, 2 2)' )
for part in geometry.const_parts():
   print(part.x())
2018-11-20 05:05:37 +11:00
Nyall Dawson
f5a6aef55f Raise IndexError in PyQGIS when calling geometryN on a collection
with an invalid geometry index

And add len operator to QgsGeometryCollection
2018-11-20 05:05:37 +11:00
signedav
32b7d7e5dd check uniqueCheck before overwrite defaultValueClause
and some tests for it
this fixes #20397 and fixes #20431
2018-11-19 16:54:28 +01:00
Martin Dobias
61cb715c4e [FEATURE] Optionally use a map theme to render terrain textures
Often it is useful to have a different map theme for terrain in 3D view
than the map theme used in the main map canvas.
2018-11-19 16:29:53 +01:00
Denis Rouzaud
b089b57681
Merge pull request #8480 from lbartoletti/rectangle3PointsProjected
[FEATURE][needs-docs]Add map tool: rectangle 3 points (projected)
2018-11-19 15:21:46 +01:00