6552 Commits

Author SHA1 Message Date
lbartoletti
abcf2aa4cf init trim/extend feature 2018-11-13 09:03:26 +01:00
Nyall Dawson
92f34a94d6 Unit tests for binary editor widget 2018-11-13 07:14:19 +10:00
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
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
6d5188bdb2 Fix build on Travis 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
cdaf99de53 Don't try to show CRS in map layer model for aspatial tables 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
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
Juergen E. Fischer
669f6bb4b7 OGC parameter names are case-insensitive 2018-11-10 00:53:30 +01:00
Nyall Dawson
d6aa46cfe7 Add some notes to test, additional test with empty line 2018-11-10 07:24:02 +10:00
Nyall Dawson
ba17b130f8 Move forceRHR to QgsGeometry, avoid duplicate code 2018-11-09 19:06:48 +10:00
Nyall Dawson
63c9bcb5d2 Update reference lines 2018-11-09 19:06:48 +10:00
Nyall Dawson
7641605eb9 Fix warning 2018-11-09 19:06:48 +10:00
Nyall Dawson
30214538c2 [FEATURE] Add option to simple line and marker line to only
render exterior ring or interior rings

This option is shown whenever a simple line symbol or
marker line symbol is used as part of a fill symbol for
rendering polygons.

The default behavior is to render both interior and exterior
rings, but this new setting allows users to set the symbol
layer to render only for the exterior ring OR only
for interior rings.

This allows for symbolisation which wasn't directly possible
before, such as a marker line with markers for interior
rings angled toward the interior of the polygon.

Sponsored by the German QGIS User Group

Fixes #12652
2018-11-09 19:06:48 +10:00
Nyall Dawson
73d0ced5df [FEATURE] Add option to force right-hand-rule during polygon symbol rendering
This new option, available under the "Advanced" button for fill symbols,
allows forcing rendered polygons to follow the standard "right hand
rule" for ring orientation (where exterior ring is clockwise, and
interior rings are all counter-clockwise).

The orientation fix is applied while rendering only, and the original
feature geometry is unchanged.

This allows for creation of fill symbols with consistent appearance,
regardless of the dataset being rendered and the ring orientation
of individual features.

Refs #12652
2018-11-09 19:06:48 +10:00
Nyall Dawson
ae2255469b Fix accidently skipped test 2018-11-09 19:06:48 +10:00
Nyall Dawson
e5946c50e7 Ensure that QgsGeometry::offsetCurve does not reverse curve orientation 2018-11-09 19:06:48 +10:00
Nyall Dawson
1b79b9a140 [FEATURE] force_rhr expression function
Forces polygons to follow the right hand rule, in which the area that
is bounded by a polygon is to the right of the boundary. In particular,
the exterior ring is oriented in a clockwise direction and the
interior rings in a counter-clockwise direction.
2018-11-09 19:06:48 +10:00
Nyall Dawson
27e1ef5c1c Add method to QgsCurvePolygon to force RHR, ensuring standard ring orientation 2018-11-09 19:06:48 +10:00
Nyall Dawson
c22364d45e Add method to determine orientation of closed curves 2018-11-09 19:06:48 +10:00
Nyall Dawson
df81e554f8 Fix crash in geometry checker
Fixes #20408
2018-11-09 12:57:42 +10:00
Alessandro Pasotti
eab40d0e4c
Merge pull request #8435 from elpaso/handle-bad-layers5
bad layers dialog new button labels and icon
2018-11-08 12:15:21 +01:00
Martin Dobias
ad1bba2ac9
Merge pull request #8438 from wonder-sk/fix-block-outside-raster-extent
Fix raster block output when block extent is outside of valid area
2018-11-08 11:56:10 +01:00
Alessandro Pasotti
ba4981a1f4 Move change data source under filter 2018-11-08 11:30:06 +01:00
Martin Dobias
872c9a10a3 Add unit test 2018-11-08 10:09:57 +01:00
Alessandro Pasotti
c74ce886dc Disable "Change data source..." action if layer is editable 2018-11-08 09:22:33 +01:00
Nyall Dawson
4b32e7cc78 [afs] Implemented decodeUri for AFS provider
Allows retrieval of the web URL for an AFS layer
2018-11-07 15:30:17 +10:00
Alessandro Pasotti
9af0719ff2 Bad layers: added tests for subset string and groups 2018-11-06 14:58:04 +01:00
Alessandro Pasotti
7db1d4e8b4 Added test project with the bad layers (not used by tests)
but still useful for manual tests
2018-11-06 10:28:49 +01:00
Alessandro Pasotti
ba3ccca2dd Add rule-based and categorized styles to the bad layers test 2018-11-06 10:27:07 +01:00
Alessandro Pasotti
c8b26771cf
Merge pull request #8359 from elpaso/handle-bad-layers2
[needs-docs][feature] Deferred handling of bad layers
2018-11-06 08:43:18 +01:00
Nyall Dawson
dc72f06e53 Bump minimum Qt version to 5.9 2018-11-06 08:45:37 +10:00
Matthias Kuhn
e9deafcf37
Merge pull request #8409 from DelazJ/renameFiles
Rename some rendererV2 ui files
2018-11-05 14:24:10 +01:00
Nyall Dawson
82baff87d4 Add a __repr__ method to QgsMimeDataUtils::Uri 2018-11-05 22:02:32 +10:00
Martin Dobias
93e737e4bf [vertex tool] Fix topo editing when moving vertices/edges (fixes #20158)
- when some "extra" vertices are selected when moving a vertex, their coincident
  vertices will be also moved (#20158)
- when moving an edge, coincident vertices to its endpoints will be also moved
- new tests to cover the above scenarios
- made the code hopefully easier to read
2018-11-05 12:31:51 +01:00
Alessandro Pasotti
f02345bd8b Remove unnecessary project from test data 2018-11-05 10:27:02 +01:00
Alessandro Pasotti
eb02004b60 Store original style as QDomDocument instead of an XML string 2018-11-05 10:27:02 +01:00
Alessandro Pasotti
a4182c1e04 Remove unnecessary project from test data 2018-11-05 10:26:39 +01:00
Alessandro Pasotti
7a259c6ea5 Better handling of invalid relations ...
- do not add them to the manager dialog
- do not add relations to not existent layers (but keep relations to invalid layers)
2018-11-05 10:26:39 +01:00
Alessandro Pasotti
bc424d09c1 Store original style as QDomDocument instead of an XML string 2018-11-05 10:26:39 +01:00
Alessandro Pasotti
d46d765d58 Restore handle bad layers dialog original behavior 2018-11-05 10:26:39 +01:00
Alessandro Pasotti
8493636f18 Data source select dialog now accepts a model 2018-11-05 10:26:39 +01:00
Alessandro Pasotti
086be3832c Rendering test for bad layers and setDataSource 2018-11-05 10:24:35 +01:00
Alessandro Pasotti
64c23dec34 Spelling 2018-11-05 10:24:35 +01:00
Alessandro Pasotti
17433181aa Fix raster style restore when setDataSource 2018-11-05 10:24:35 +01:00
Alessandro Pasotti
4481127b9a Fix raster set data source (with test) 2018-11-05 10:24:35 +01:00