1
0
mirror of https://github.com/qgis/QGIS.git synced 2025-04-04 00:06:15 -04:00

34 Commits

Author SHA1 Message Date
Nyall Dawson
f1313af914 Add some more unit tests 2017-09-06 11:25:17 +10:00
Nyall Dawson
700f9b2ef8 Condense qgstestutils.h and qgstest.h into a single file 2017-09-04 10:38:18 +10:00
Nyall Dawson
21a3b8a4f3 Use QGSCOMPARENEAR instead of QVERIFY( qgsDoubleNear(... ) )
QGSCOMPARENEAR gives better debugging output when the
test fails
2017-08-29 12:39:59 +10:00
Nyall Dawson
b5ca4b4ea8 (q)sqrt -> std::sqrt 2017-08-25 03:22:15 +10:00
Matthias Kuhn
a9d7630a69 Rename QgsPointV2 to QgsPoint and QgsPoint to QgsPointXY
Because 3D coordinates should be the default.

References https://github.com/qgis/qgis3.0_api/issues/36
2017-06-02 19:53:37 +02:00
Juergen E. Fischer
b9162dccdf scripts/astyle-all.sh run 2017-03-03 15:37:12 +01:00
Denis Rouzaud
0a63d1f2c2 [spellcheck] properly look into various cases and add more fixes" 2017-01-16 16:39:20 +01:00
Matthias Kuhn
dfd9833467 Let all tests work with a proper QgsApplication instance 2016-12-20 01:20:08 +01:00
Nyall Dawson
379e7a42e6 Add some more QgsVector operators, allow use of QgsVector with QgsPointV2 2016-12-09 08:13:48 +10:00
Nyall Dawson
77a8e18ec1 Add methods to add/subtract QgsVectors 2016-12-09 08:13:48 +10:00
Nyall Dawson
4166a3ea62 Fix most clazy qstring-unneeded-heap-allocations warnings
By flipping string literals to QStringLiteral/QLatin1String

see

https://woboq.com/blog/qstringliteral.html
2016-10-24 15:26:24 +10:00
Nyall Dawson
99980bea0c Fix windows build 2016-04-07 09:14:16 +10:00
Nyall Dawson
2e44c11914 Some QgsPoint improvements
- Modernize QgsVector, improve docs, add some methods missing from
Python bindings
- Add method to QgsPoint to project a point by a specified distance
and bearing
- Add distance methods to complement existing sqrDist squared distance
methods
- Rename QgsVector::normal to normalized (avoid confusion with normal
vectors)
- Add more QgsPoint operators
- Add some more QgsPoint and QgsVector tests
2016-04-06 20:55:26 +10:00
Juergen E. Fischer
12b7831175 remove unused iostream header 2015-07-05 16:51:29 +02:00
Juergen E. Fischer
9b976cfe26 test cleanups and some fixes 2015-07-02 04:22:52 +02:00
Juergen E. Fischer
ed581aee78 indentation update II 2015-06-10 15:50:41 +02:00
Denis Rouzaud
9e3183c63f Revert "sort includes"
This reverts commit 2b7d3d3c73b50ba6dc74abec6dd652ff1b87c0ec.
2015-06-10 14:54:47 +02:00
Denis Rouzaud
2b7d3d3c73 sort includes 2015-06-10 13:59:08 +02:00
Alexander Bruy
803a0b9375 show correct coordinates in status bar when projected CRS used and
canvas units set to degrees (fix )

Tests for latitude wrapping included
2015-05-23 05:07:51 +10:00
Nyall Dawson
7882fe2f25 Add methods for comparison of QgsPoint, QgsPolyline and QgsPolygon
These methods allow for fuzzy comparison of coordinates with a
specified tolerance.
2015-03-19 19:48:57 +11:00
Matthias Kuhn
cae6baea90 Formatting of tests 2014-11-21 11:45:33 +01:00
Matthias Kuhn
78c519546a Add Qt5 support 2014-11-21 11:45:32 +01:00
Nyall Dawson
b5c9df0e61 Add methods for converting QgsPoint to and from QPointF and QPoint
Also add some more basic unit tests for QgsPoint
2014-11-06 17:29:05 +11:00
Matthias Kuhn
1c2bdf1ea3 Switch tests to automoc
Required for Qt5 compatibility
Raises minimum CMake version to 2.8.6
2014-11-04 09:18:26 +01:00
Nyall Dawson
2317f67451 [composer] Use proper prime and double prime symbols for grid annotations
(because good typography and cartography go hand in hand..!)
2014-09-08 19:53:59 +10:00
Nyall Dawson
f68b2586b9 [composer] Improvements to grid annotation string formatting (sponsored
by NIWA, New Zealand):
- Don't show directional suffix for 0 or 180 latitudes or 180 longitudes
- Add padded coordinate modes
- Fix precision errors causing minutes/seconds > 60
- Wraparound longitudes to restrict them to the -180 to 180 degree range
2014-09-03 20:40:30 +10:00
Juergen E. Fischer
db1c3d9f4e test cleanups 2012-05-06 15:19:59 +02:00
Juergen E. Fischer
8e75d4b18f test fixes:
- run xvfb in 96 dpi mode
- indentation update (including tests)
- fix running tests from build directory
2012-04-22 01:40:14 +02:00
Tim Sutton
4906f7749e Fixes so qgspoint unit tests all pass 2011-11-16 23:35:51 +02:00
Tim Sutton
2b8487b942 Further updates to the unit tests - still not all passing yet 2011-11-14 14:52:59 +02:00
wonder
d5a4eca489 Created a macro ADD_QGIS_TEST to make adding new tests easier.
(+ nearly fixed QgsPoint test)


git-svn-id: http://svn.osgeo.org/qgis/trunk@12105 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-11-14 17:11:45 +00:00
timlinux
9d3f9f8715 Added unit test for QgsPoint
git-svn-id: http://svn.osgeo.org/qgis/trunk@11826 c8812cc2-4d05-0410-92ff-de0c093fc19c
2009-10-21 22:43:41 +00:00
timlinux
ad843dfaf1 Removed test stubs - will add them back as we have real tests in place
git-svn-id: http://svn.osgeo.org/qgis/trunk@7189 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-09-12 01:26:44 +00:00
timlinux
c464391d6e Added stubs for all classes in core
git-svn-id: http://svn.osgeo.org/qgis/trunk@5246 c8812cc2-4d05-0410-92ff-de0c093fc19c
2006-04-10 22:09:55 +00:00