116 Commits

Author SHA1 Message Date
Vincent Cloarec
27a70eab7c
[FEATURE] mesh simplification (#34532)
[FEATURE] fix #31575 mesh layer speed rendering improvements (LOD)

As mesh layer could have millions of triangles, rendering could be very slow, especially when all the triangles are displayed in the view whereas triangles are too small to be viewed.

For those situations QGIS has an option to simplify the mesh. Simplification leads to one or more simplified mesh that represents levels of detail (LOD). When rendering the mesh, the appropriate level of detail is chosen to have an adequate rendering depending on the view.
2020-02-25 08:05:49 +01:00
Peter Petrik
572ff9b724 update to MDAL 0.5.1: fcritical fix for SWW/Telemac files 2020-02-20 12:27:43 +01:00
Peter Petrik
e0615d4948 MDAL 0.5.0 2020-02-05 14:08:37 +01:00
nirvn
f072e09add Fix Qt53DExtrasConfig.cmake syntax which triggers error on ubuntu 20.04 (cmake 3.13) 2020-02-04 05:39:14 +10:00
Nyall Dawson
acd458446e Fix leak in qt-unix-signals 2020-01-21 18:05:18 +10:00
Peter Petrik
19deb05edc update MDAL to 0.4.95 : add proper reference time for TUFLOWFV format 2020-01-17 13:46:39 +01:00
Martin Dobias
a5c9b39955
Merge pull request #33480 from wonder-sk/3d-layers-load-in-background
[3d] Load 3D vector layer data in background + tiling
2020-01-17 00:00:33 +01:00
Peter Petrik
a2a80976c2 update MDAL to 0.4.94 2020-01-15 12:25:03 +01:00
Martin Dobias
ff82f63ded Roll back a regression from updated poly2tri library
It looks like it was introduced when trying to make compiler happy:
e0ba327ed8

Also added a test to make sure this crasher does not come back

See https://github.com/jhasse/poly2tri/issues/11 for upstream issue
2020-01-09 17:01:08 +01:00
Nyall Dawson
494b52b231 [gps] Sync some changes from a fork of nmealib, and add support for
handling HCHDG and HCHDT heading packets
2020-01-07 12:29:19 +13:00
Nyall Dawson
da5cd52162 [pal] Bring back refined upstream version of superliminal rtree index
Turns out this index is MUCH (magnitudes) faster for use in pal. So
grab an updated version of the upstream library and place in external libs,
and use this for indices in pal.

(we should probably investigate whether this is faster for snapping and
other index use too!)
2019-12-15 10:18:47 +10:00
Peter Petrik
6e2ef1544f push MDAL 0.4.93 RC1 for 3.12 release with fixed bug in reading of reference time 2019-12-14 05:31:53 +10:00
Peter Petrik
4988468e26 update to MDAL 0.4.92, second beta release for QGIS 3.12. it speeds up and optimize memory usage by allowing QGIS to check if driver/dataset uses active flag or not 2019-12-12 08:37:55 +01:00
Nyall Dawson
a9d02dab8b Update poly2tri external library (minor changes only) 2019-12-06 04:51:48 +10:00
Nyall Dawson
a6c563c6cb Update kdbush external module 2019-12-06 04:51:48 +10:00
Nyall Dawson
382098e188 [gps] Don't treat n/a values as '0'
Avoids reporting things like an unavailable heading as a real "0" heading
2019-12-06 04:50:53 +10:00
Nyall Dawson
6b5f983ad6 [gps] Add support for GPHDT heading from true north messages 2019-12-06 04:50:53 +10:00
Nyall Dawson
07915f7af7 [gps] Support GNGSV messages 2019-12-06 04:50:53 +10:00
Nyall Dawson
2234d92be6 [gps] Support GNGSA messages 2019-12-06 04:50:53 +10:00
Nyall Dawson
299c61292b [gps] Support GNGGA nmea messages 2019-12-06 04:50:53 +10:00
Peter Petrik
8aa0c28070 update MDAL to 0.4.91 (alpha release of 0.5.0 for QGIS 3.12) - stacked meshes 3d 2019-12-05 07:08:50 +01:00
Peter Petrik
679e75e13c update MDAL 0.4.0 2019-10-25 17:59:53 +02:00
Juergen E. Fischer
94fa3c44e0 dwg/dxf import:
* fix orientation of TEXT entities
* also clean TEXT strings
* support non-origin-based blocks
* support extrusion
2019-10-25 14:22:53 +02:00
Nyall Dawson
9af5a531b1 [o2] If an o2 auth refresh reply contains an error message, then
the refresh was NOT successful and we need to unlink the auth so
that a new login will be prompted

Fixes connections to ESRI portal fail after refresh token expires
on the server
2019-09-12 04:12:59 +10:00
Juergen E. Fischer
650f79617c fix windows build (includes update to inja.hpp 57ac9b93725cb) 2019-08-07 18:03:56 +02:00
Alessandro Pasotti
92ac7a2e93
[server] Server api and WFS3 (#10016)
Implementation of OGC API and WFS3 core draft specification
2019-08-06 16:38:21 +02:00
Alessandro Pasotti
063d29b256
Add NMEA GST Message for GPSInformation.Accuracies (#30274)
* Update sentence.h

* Update sentence.h

* Update sentence.h

* Update sentence.c

* Update parse.h

* Update parse.h

* Update sentence.h

* Update parse.c

* Update qgsnmeaconnection.cpp

* Update qgsnmeaconnection.cpp

* Update qgsnmeaconnection.cpp

* Update info.h

* Update qgsnmeaconnection.h

* Update qgsnmeaconnection.h

* Update parse.c

* Update parse.c

* Update parse.c

- Corrected Buffer Sizecomparison to 6
- defined Variable for buffer_size

* Astyle

* Fix docstrings
2019-06-25 09:41:29 +02:00
Nyall Dawson
49731f21ec Add note about new nmea upstream 2019-06-24 19:29:02 +10:00
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