52229 Commits

Author SHA1 Message Date
Nyall Dawson
429320d10d [FEATURE] Binary (blob) field support for memory layers
Allows storage of binary blob fields in memory layers
2018-11-13 07:14:19 +10:00
Nyall Dawson
d96ce7a1d7 [FEATURE] New form widget for binary (blob) fields
This widget is available for binary fields only (and is the default
widget used for binary fields). It offers a label showing
whether the blob field is empty or not, and if non-empty shows
the content size (in bytes/kb/etc).

A drop down menu button allows users to save the current binary
contents of the field out to a disk based file, clear the contents
of a blob field, or embed binary contents by picking a file
from their system.
2018-11-13 07:14:19 +10:00
Nyall Dawson
608d03c53d Add support for binary fields to QgsVectorFileWriter 2018-11-13 07:14:19 +10:00
Nyall Dawson
f3f1214df9 Unit test for creation of blob field in existing table 2018-11-13 07:14:19 +10:00
Nyall Dawson
17ced9186a Tweak behavior of new shapefile/gpkg browser actions 2018-11-13 07:14:19 +10:00
Nyall Dawson
d0622743ff Fix string 2018-11-13 07:14:19 +10:00
Nyall Dawson
36379307c4 [FEATURE][ogr] Allow creation of binary (blob) fields for compatible filetypes 2018-11-13 07:14:19 +10:00
Nyall Dawson
51587209ac Add comment on detach use 2018-11-13 07:14:19 +10:00
Nyall Dawson
a234bf7f4d Fix size of field icons (should be 16x16), minimize 2018-11-13 07:14:19 +10:00
Nyall Dawson
6d5188bdb2 Fix build on Travis 2018-11-13 07:14:19 +10:00
Nyall Dawson
be69dd8e52 Fix build 2018-11-13 07:14:19 +10:00
Nyall Dawson
a192dab9de Unit tests for extract binary algorithm 2018-11-13 07:14:19 +10:00
Nyall Dawson
62bdc28de8 Unit tests for updating OGR binary column 2018-11-13 07:14:19 +10:00
Nyall Dawson
de497a3b51 Icon for binary fields 2018-11-13 07:14:19 +10:00
Nyall Dawson
cdaf99de53 Don't try to show CRS in map layer model for aspatial tables 2018-11-13 07:14:19 +10:00
Nyall Dawson
e80c31e809 [FEATURE][processing] New algorithm for extracting binary blobs from fields
Allows users to extract binary fields to files. The filename is set via
a data defined expression, so can be taken from a column value or
a more complex expression.
2018-11-13 07:14:19 +10:00
Nyall Dawson
5c27b7da50 [FEATURE] Binary blob support for OGR provider
Instead of converting binary fields to truncated strings, we instead
store their contents as QByteArray values, allowing the original binary
content to be retrieved.

This allows for plugins and scripts to utilise binary fields,
such as extracting their contents.
2018-11-13 07:14:19 +10:00
Nyall Dawson
8ae1880d38 Rename method for consistency, fix dox 2018-11-13 07:13:36 +10:00
Nyall Dawson
0eefd3e728 Update some dependencies 2018-11-13 07:13:36 +10:00
Nyall Dawson
5ed35d6dfa Only analysis lib depends on EXIV2, not core/etc 2018-11-13 07:13:36 +10:00
Nyall Dawson
8703fb219b [FEATURE][API] New class QgsExifTools
Contains utilities for retrieving the geotag from images and
for setting an image's geotag.

Working with geotags (before this class!) is super-annoying
and fiddly and relies on either parsing command line tools
or depending on non-standard Python libraries which are
not available everywhere, and often very difficult for users
on certain platforms to get installed and working correctly.

With this class we have stable methods for geotag getting/setting
which are universally available and can be used safely
by plugins and scripts.
2018-11-13 07:13:36 +10:00
Nyall Dawson
62495c0699 Link exiv2 into analysis library 2018-11-13 07:13:36 +10:00
Sandro Mani
e0c79c4574 Add EXIV2 cmake variables
Forward port from kadas-albireo
2018-11-13 07:13:36 +10:00
Juergen E. Fischer
d0d10f8fce debian packaging: add python-gdal dependency 2018-11-12 20:13:37 +01:00
Martin Dobias
1275708a49
Merge pull request #8458 from wonder-sk/terrain-shading
[3d] Terrain shading
2018-11-12 18:13:43 +01:00
lbartoletti
5eecbf2d4c Add translation ; add button 'load file' 2018-11-12 17:48:14 +01:00
Alessandro Pasotti
d479b4dcbc Emit valueChanged when a widget value changes as a consequence of another widget changed
Fix #20455
2018-11-12 16:41:15 +01:00
lbartoletti
53532faf5c Paul's review: code enhancement 2018-11-12 16:04:12 +01:00
Martin Dobias
bcf8b0de9e Change \sa to \see in qgs3dmapsettings.h 2018-11-12 08:38:58 +01:00
Nyall Dawson
9b04a29116 Support WSL shells in astyle script 2018-11-12 09:30:42 +10:00
Martin Dobias
d3e81f6d18 [FEATURE] Add support for shading of terrain
This adds new options for user to choose how the terrain should be rendered:
- shading disabled - color of terrain is determined only from map texture
- shading enabled - color of terrain is determined using Phong's shading model,
  taking into account map texture, terrain normal vector, scene light(s) and
  terrain material's ambient+specular colors and shininess

(configuration of lights is not there yet - now we always have a single point
light with white color at the middle of the scene at 1km above the zero elevation)
2018-11-11 16:10:58 +01:00
Juergen E. Fischer
471ed51051 scripts/scandeps.pl run to update INSTALL 2018-11-11 12:39:00 +01:00
Martin Dobias
cf24e654b8 Calculate normals of terrain tile vertices 2018-11-11 12:18:00 +01:00
Luigi Pirelli
530cd5c12c
Merge pull request #8378 from havatv/patch-1
Reintroduce GDAL extract projection and update extractprojection.py to QGIS 3
2018-11-11 11:49:03 +01:00
Juergen E. Fischer
b39e5a0937 processing: add windows support to exportRasterLayersIntoDirectory (fixes #20146) 2018-11-11 03:15:21 +01:00
Juergen E. Fischer
3a4a3af1d6 osgeo4w:
* only use GRASS major version in executable names
* autodetect GRASS folder
2018-11-10 21:35:09 +01:00
Landry Breuil
046a20e40e [Packaging] install icons / appdata / desktop file on BSDs too 2018-11-11 06:33:10 +10:00
Juergen E. Fischer
84814c9124 make snapping type translatable in model (fixes #20437) 2018-11-10 14:15:59 +01:00
Nyall Dawson
005a7fa43f Add missing context object in lambda connect 2018-11-10 15:21:12 +10:00
Nyall Dawson
15141d928e Capitalization 2018-11-10 15:20:56 +10:00
Nyall Dawson
149726cfa5 [dbmanager] Fix exception when browsing project layers 2018-11-10 12:30:52 +10:00
Juergen E. Fischer
669f6bb4b7 OGC parameter names are case-insensitive 2018-11-10 00:53:30 +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
df9307b9aa Further protection in windows event message handling
Refs #20386
2018-11-10 07:30:17 +10:00
Nyall Dawson
d6aa46cfe7 Add some notes to test, additional test with empty line 2018-11-10 07:24:02 +10:00
Nyall Dawson
ff5a8bc0ae Revert "[pal] Use QgsGeometry::makeValid instead of buffer(0) to repair geometries"
This reverts commit e05a5a930241ec3c9c5df7880650da60382b956c.

The makeValid call is much slower than the previous "buffer( 0 )" approach

Fixes #20260
2018-11-10 05:13:47 +10:00
Denis Rouzaud
30cf2d37bc
Merge pull request #8404 from 3nids/locator_core
Move parts of QgsLocatorFilter to core
2018-11-09 12:18:27 +00:00
Matthias Kuhn
9e78b826f9
Merge pull request #8451 from daniviga/rpm-opencl
Add support for OpenCL in RPM
2018-11-09 12:18:59 +01:00
Denis Rouzaud
fe6f99a6e0 check filter 2018-11-09 10:01:38 +00:00