88 Commits

Author SHA1 Message Date
Peter Petrik
f33ebc8100 update to MDAL 0.3.3 2019-05-28 06:14:34 +10:00
Nyall Dawson
9cde65457b Ensure correct thread locale QgsNetworkAccessManager is used during
o2 requests

Otherwise the main thread manager is always used, resulting in
lots of warnings and potential crashes
2019-05-12 15:00:25 +10:00
Nyall Dawson
ba8f8e3f07 [o2] A new refresh_token is not a mandatory part of the response
after requesting a refresh

The server will always return a new access_token, but returning
a new refresh_token is optional
2019-05-12 15:00:25 +10:00
Alessandro Pasotti
9a612d4e19
Merge pull request #9832 from elpaso/qjson-nlohmann
Fast (and beautiful) json serializing
2019-05-10 11:33:10 +02:00
Peter Petrik
435b594bbc update to MDAL 0.3.2 2019-05-07 08:52:34 +02:00
Alessandro Pasotti
63711510b6 Dear Qt, I love you but ...
... you are too slow and QJson API is so ugly.

Now using this wonderful json lib:
https://github.com/nlohmann/json

Results in release mode (QJson tests are not shown but
QJson was even slower than string concat).

PASS   : TestQgsJsonUtils::testExportAttributesJson(Use json)
RESULT : TestQgsJsonUtils::testExportAttributesJson():"Use json":
     0.0022 msecs per iteration (total: 75, iterations: 32768)
PASS   : TestQgsJsonUtils::testExportAttributesJson(Use old string concat)
RESULT : TestQgsJsonUtils::testExportAttributesJson():"Use old string concat":
     0.0032 msecs per iteration (total: 54, iterations: 16384)
PASS   : TestQgsJsonUtils::testExportFeatureJson(Use json)
RESULT : TestQgsJsonUtils::testExportFeatureJson():"Use json":
     0.011 msecs per iteration (total: 96, iterations: 8192)
PASS   : TestQgsJsonUtils::testExportFeatureJson(Use old string concat)
RESULT : TestQgsJsonUtils::testExportFeatureJson():"Use old string concat":
     0.015 msecs per iteration (total: 64, iterations: 4096)
PASS   : TestQgsJsonUtils::testExportGeomToJson(Use json)
RESULT : TestQgsJsonUtils::testExportGeomToJson():"Use json":
     0.76 msecs per iteration (total: 98, iterations: 128)
PASS   : TestQgsJsonUtils::testExportGeomToJson(Use old string concat)
RESULT : TestQgsJsonUtils::testExportGeomToJson():"Use old string concat":
     0.85 msecs per iteration (total: 55, iterations: 64)
PASS   : TestQgsJsonUtils::cleanupTestCase()
2019-04-18 17:04:30 +02:00
Peter Petrik
f742044392 update MDAL 0.3.1 2019-04-18 09:52:40 +02:00
Nyall Dawson
cd9fc06f51 Silence cmake CMP0048 warning 2019-03-28 09:46:56 +10:00
Juergen E. Fischer
a7a851727c mdal: fix typo 2019-03-19 20:48:24 +01:00
Peter Petrik
de80192f53 upgrade MDAL to 0.3.0 2019-03-19 08:06:04 +01:00
Juergen E. Fischer
5d9cbe9aca compile QTSignal statically (fixes #21514) 2019-03-09 15:28:18 +01:00
Denis Rouzaud
05756e5386 fix building on Mac
not sure if this is the right way to fix this 
seen here https://github.com/boostorg/process/issues/55#issuecomment-435853519 and mostly here https://github.com/boostorg/process/issues/55#issuecomment-450444271
2019-03-07 14:58:27 +01:00
Juergen E. Fischer
fe5b399294 disable qt-unix-signals on windows (fixes build) 2019-03-06 09:08:46 +01:00
Richard Duivenvoorde
1be124069a libQTSignal not copied to install dir 2019-03-06 02:03:23 +10:00
Nyall Dawson
620db06324 Add external qt-unix-signals library
This library, original taken from https://github.com/sijk/qt-unix-signals
(but a maintained fork exists at https://github.com/nyalldawson/qt-unix-signals),
handles unix signal watching using the Qt libraries.

It allows for detection of signals like SIGINT and SIGTERM,
and allows Qt applications to respond gracefully to these.

Included in external libraries for use in QGIS terminal
applications.
2019-03-05 18:43:02 +10:00
Peter Petrik
b981c8a895 update to MDAL 0.2.0 (friendly release for QGIS 3.6) 2019-02-20 16:51:06 +01:00
Juergen E. Fischer
fd15c3e5b6 dwg import: handle wrong hatch interpretation (refs #20392) 2019-02-19 19:56:40 +01:00
Juergen E. Fischer
e1562a7f13 dwg import: support dxf encoding (fixes #15999) 2019-02-19 19:56:40 +01:00
Juergen E. Fischer
92e7faab66 dwg/dxf import: fix angle and alignment handing of (m)texts 2019-02-19 19:56:40 +01:00
Juergen E. Fischer
6090a932c2 dwg import: less noisy debugging 2019-02-19 19:56:40 +01:00
Juergen E. Fischer
3aa2d9ff9b dwg import: catch spline misinterpretation (fixes #20392) 2019-02-19 19:56:40 +01:00
Juergen E. Fischer
fec20ae0e2 dwg import: less noisy noise reduction 2019-02-19 19:56:40 +01:00
Peter Petrik
967893a637 [MDAL] update to 0.1.5, improve speed 2019-01-24 16:24:46 +01:00
Peter Petrik
928a559aa9 update MDAL to 0.1.4 (RC1 for QGIS 3.6) 2019-01-23 09:51:35 +11:00
Peter Petrik
e163caf754 update to MDAL 0.1.3 (mesh calculator API) 2019-01-14 12:32:36 +01:00
Peter Petrik
8b542c8aa4 Update to MDAL 0.1.2 2018-12-17 12:01:17 +01:00
Peter Petrik
7dc73790e0 MDAL 0.1.1, fix some minor build/memory issues 2018-12-07 15:54:16 +01:00
Peter Petrik
d43f6376eb [MDAL] update MDAL to 0.1.0 (new API) 2018-12-07 15:54:16 +01:00
Nyall Dawson
08abf92922 Explicitly disable debug messages in dwg import
Even preventing their output isn't enough here. There's just
SO many debug msgs throughout this class, that creating and
parsing the debug messages strings (which is done even if
the message level is higher than is output) is enough
to grind the import to a halt on debug enabled builds.
2018-11-10 09:27:06 +10:00
Nyall Dawson
8bf206d221 Make dwg import less debug noisy 2018-11-10 09:27:06 +10:00
Nyall Dawson
87f5c0c0d4 [o2] Avoid a misleading console error output 2018-10-26 07:20:47 +10:00
Alessandro Pasotti
e5ba558617 Fix error return-std-move
std::move should not be used here because
it prevents RVO (copy elision) and it's
considered an anti-pattern.

To fix the original warning the returned
type must match the declared return
type or copy elision will not be possible
(and the warning will be triggered).
2018-10-11 08:33:18 +02:00
Denis Rouzaud
94a7d9db66
fix local variable will be copied despite being returned by name (#8157)
this is an error with clang 7
note: call 'std::move' explicitly to avoid copying
2018-10-10 05:33:54 -08:00
Peter Petrik
618ed2e733 add recognision of ECMWF_ERA to MDAL 2018-10-05 14:22:21 +02:00
Peter Petrik
9acc5c1010 [mesh] update to MDAL 0.0.9 (NetCDF Support) 2018-10-05 14:22:21 +02:00
Larry Shaffer
81f9e6dfec
[opencl] Add FindOpenCLhpp CMake module; vendor cl2.hpp; fixup includes
CL/cl2.hpp, which the OpenCL support is based upon, is not always
included with OpenCL on some platforms, e.g. Mac, or not readily
available as a package. This work adds a CMake module specifically for
finding cl2.hpp, as installed by OpenCL-CLHPP project.

If not found, but standard OpenCL lib and headers are, the vendored
cl2.hpp in external/opencl-clhpp is used, as it needs no compilation.

- Only the cl2.hpp, license and README are vendored from OpenCL-CLHPP.

- Fix up referenced includes in other CMake targets, to ensure the
includes for OpenCL are specifically added (previously, they were
sometimes found in existing include directories of other dependencies).

- Fixup for standard FindOpenCL module not assinging proper framework
headers directory for Mac.
2018-09-30 20:05:12 -06:00
Peter Petrik
74c9925448 update MDAL to 0.0.8 (fix projection issue) 2018-09-24 11:04:50 +02:00
Nyall Dawson
1d8dbda6a1 [win] Fix some warnings 2018-09-17 11:39:45 +10:00
Matthias Kuhn
195539d7d3
Merge pull request #7913 from m-kuhn/filenmode
Fix file mode
2018-09-16 15:21:47 +02:00
Matthias Kuhn
e306aaaaef
Fix file mode 2018-09-16 14:18:39 +02:00
Salvatore Larosa
4ca8b4c29d fix build on osx 2018-09-10 23:12:00 +02:00
Peter Petrik
97c95803c6 update MDAL to 0.0.7 (3di support, projections support, bugfixes) 2018-09-11 06:00:41 +10:00
Juergen E. Fischer
1f918583e8 debian packaging: include Qt53DExtra headers removed on debian/ubuntu 2018-09-05 00:47:15 +02:00
Salvatore Larosa
828061b709 fix build on osx 2018-09-03 22:30:05 +02:00
Peter Petrik
99a6f12ba3 update MDAL to 0.0.6 2018-09-03 19:41:07 +10:00
Juergen E. Fischer
cf728275f1 fix yo-yo warning (followup 5e37e824, 18dbf031, 2ed144ac) 2018-08-09 08:36:55 +02:00
Nyall Dawson
8876270c9f [win] Use native desktop notifications for prettier notifications 2018-08-08 03:51:16 +10:00
Matthias Kuhn
c60efaf039 Remove double semicolon 2018-08-06 11:09:49 +02:00
Matthias Kuhn
ea70bb4265 Add semicolon to clang::fallthrough define 2018-08-06 11:08:12 +02:00
Matthias Kuhn
ebe382870f Add missing semicolon 2018-08-06 10:34:32 +02:00