1381 Commits

Author SHA1 Message Date
Julien Cabieces
f03da03d33 fix doc 2019-10-30 09:32:28 +01:00
Julien Cabieces
0bf527f54d Replace snapToMapRelaxed with a boolean 2019-10-30 09:32:28 +01:00
Matthias Kuhn
f96e1922ca [FEATURE] Parallelize snap index build 2019-10-30 09:32:28 +01:00
nirvn
b2e7121493 [FEATURE][symbology] Add density-based point count for the random marker fill 2019-10-30 12:04:13 +07:00
Peter Petrik
dd98331ace [feature] [mesh] fix #31550 Expose new methods in analysis library for exporting contours for mesh layers
The mesh styling dialog now has new combo box for selection of resampling method for datesets defined on faces.
Also the analysis library has new class QgsMeshContours with export function for contour lines and contour polygons.
2019-10-29 23:16:04 +01:00
Matthias Kuhn
49700d01ff
Merge pull request #32461 from m-kuhn/stringToFeatureListDefaultValues
Add default values to QgsJsonUtils::stringToFeatureList
2019-10-29 07:48:23 +01:00
Nyall Dawson
5be319157f Fix memory leak 2019-10-29 07:47:33 +10:00
Matthias Kuhn
72ebbc0688 Add default values to QgsJsonUtils::stringToFeatureList
Because we can assume the user does not care for fields if he does not specify
them and that UTF-8 is the default except when it's not.
2019-10-28 17:22:12 +01:00
Alessandro Pasotti
f69d7f8f83
Merge pull request #32435 from elpaso/connections-db-api-tables-table_uri
Connections db api tables table uri
2019-10-28 15:18:21 +01:00
Juergen E. Fischer
03baeea083 fix python constructor for QgsPoint (does not accept QgsPointXY & QPointF anymore)
fixes #32443
2019-10-28 11:16:44 +01:00
Alessandro Pasotti
ce5405f136 Added since to new API methods 2019-10-28 09:25:40 +01:00
Nyall Dawson
9bc9808e4e Dox++ 2019-10-28 14:34:30 +10:00
Nyall Dawson
a58012545d Bump default point count to 10 2019-10-28 14:34:30 +10:00
Nyall Dawson
d64666559a Spelling 2019-10-28 14:34:30 +10:00
Nyall Dawson
57d977cf8a Add sip cast for random marker fill 2019-10-28 14:34:30 +10:00
Nyall Dawson
351970e1c2 Dox, spelling 2019-10-28 14:34:30 +10:00
Nyall Dawson
2a7f9c32c7 Add missing const 2019-10-28 14:34:30 +10:00
Nyall Dawson
491a4a794d Provide hooks for symbol layers to notify them before and after
rendering operations on a specific feature are performed

This allows symbol layer subclasses to know when a set of rendering
operations all relate to a single feature, e.g. when a number
of polygons are rendered which all belong to the same multi-polygon
geometry attached to a single feature.

Without these hooks, symbol layer subclasses have no stable method
of knowing that these parts all relate to a single feature, or
have no means of knowing when the final part of that feature has
been rendered.
2019-10-28 14:34:30 +10:00
Nyall Dawson
b5e92d41f5 [FEATURE] Random marker fill symbol layer type
This commit adds a new fill symbol layer type "Random marker fill". It
allows polygon features to be rendered using a marker symbol placed
at random locations within the polygon boundary.

Options include:
- number of marker symbols to render for the polygon
- whether markers rendered near the edges of polygons should be clipped
to the polygon boundary or not
- an optional random number seed, to give consistent placement
of markers whenever maps are refreshed (also allows random placement
to play nice with QGIS server and tile-based rendering)

Sponsored by the SLYR project
2019-10-28 14:34:30 +10:00
Nyall Dawson
aa962b5da0 [FEATURE] Add option to set color for rendering nodata pixels in raster layers
Allows raster nodata pixels to be colored in a specific (non-transparent) color.
Designed to match the "Display background value" option from ArcMap.

Sponsored by SLYR

Fixes #26087
2019-10-27 10:07:04 +10:00
Alessandro Pasotti
aa92ef3576 DB connections API: add table() and tests
This method allows to retrieve information
about a single table.
2019-10-26 16:20:03 +02:00
Alessandro Pasotti
a070020cbb Add DB connection tableUri method
This allows to construct a data source URI string to load a table layer
from the DB connections.

!!
RASTER is still TODO
!!
2019-10-26 16:20:03 +02:00
lbartoletti
58a3540d05 [needs-docs] add interpolate Z on segment snapping 2019-10-26 10:55:15 +10:00
Juergen E. Fischer
b81d306047 spelling fixes (closes #32408) 2019-10-26 10:50:30 +10:00
Alessandro Pasotti
381a57433c Drop const and fix duplicated "Source" 2019-10-26 08:13:47 +10:00
Alessandro Pasotti
1bc7ece06a Add styleSheetType to application reportStyleSheet 2019-10-26 08:13:47 +10:00
Even Rouault
c7f29d501f QgsVectorLayer: document oapif provider
Funded by Planet
2019-10-26 06:47:59 +10:00
Alessandro Pasotti
16676ff93a Code layout 2019-10-26 06:46:09 +10:00
Alessandro Pasotti
090a6c72ad Fix range extend infinity 2019-10-26 06:46:09 +10:00
Alessandro Pasotti
65d0f5b67f Add extend to QgsRange 2019-10-26 06:46:09 +10:00
Nyall Dawson
1ba8db41b6 Fix potential overflow in raster renderer 2019-10-26 06:45:11 +10:00
Julien Cabieces
e4da0ac8c9 Revert "Merge pull request #31374 from troopa81/parallelize_snap_caching"
This reverts commit 87b1aa9a5d6efb279693aea68dc2dcb5b51b3e86
2019-10-18 14:50:33 +10:00
Denis Rouzaud
2406837650
replace deprecated in by deprecated since (#32260) 2019-10-15 15:56:54 +02:00
Denis Rouzaud
758d7cff4a run sipify to update deprecation annotations 2019-10-15 13:17:38 +02:00
rldhont
6625c7ba62 [Bugfix] Get remote SVG synchronously - in the server context 2019-10-11 14:08:17 +10:00
Nyall Dawson
6e26963908 Cleanup QgsMapLayerRenderer api
Make associated QgsRenderContext a base class member, since all
renderer subclasses require this
2019-10-09 16:36:18 +10:00
Nyall Dawson
f45540d175 Fix export to geopdf skips raster and mesh layers
Fixes #32148
2019-10-09 16:36:18 +10:00
Nyall Dawson
3112332227 Rename variable for clarity 2019-10-09 15:01:51 +10:00
Nyall Dawson
cb06519d16 [api] Add API to indicate that individual layers may be loaded without any
CRS validation, regardless of the user's settings

This avoids hacks put in place in other parts of QGIS code or in plugins
to temporarily deactivate the CRS validation prompt, providing a supported,
stable method to indicate that when loading a particular layer no CRS
validation is required.
2019-10-09 15:01:51 +10:00
Even Rouault
a491117c88
Merge pull request #32162 from rouault/fix_29212_followup_revived
Application options: defer disabling of drivers after application restart (relates to #29212)
2019-10-08 20:34:39 +02:00
Even Rouault
d7f5bd0ea3
Application options: defer disabling of drivers after application restart (relates to #29212)
This is a follow-up of https://github.com/qgis/QGIS/pull/31772

Driver de-registration is now defered after application restart to avoid
any risk of potential crashes if a dataset using a disabled driver was
already in use.
2019-10-08 20:31:39 +02:00
nirvn
23cc659a05 [projects] Add signals for background color and selection color change 2019-10-07 15:47:30 +07:00
nirvn
6bc83965a8 [projects] Serve selection color through a proper API 2019-10-07 15:47:30 +07:00
nirvn
5863f63ae1 [projects] Serve default canvas background color through a proper API 2019-10-07 15:47:30 +07:00
Nyall Dawson
d5749f8713 Deprecated QgsGeometry::createPolylineFromQPolygonF and
QgsGeometry::createPolygonFromQPolygonF

These were internal details which should never have been exposed
to public API
2019-10-07 07:03:34 +10:00
Nyall Dawson
8f40c8d1c5 Add QgsLineString::fromQPolygonF 2019-10-07 07:03:34 +10:00
Nyall Dawson
eb59842f31 C++ API for generating random points inside geometry
Adds an optimised c++ method for generating random points inside
a polygon geometry, using a tessellation based approach to
avoid the inefficiencies of the brute force filtered-random-points-within-extent
approach.
2019-10-05 12:13:14 +10:00
Nyall Dawson
d0ed374662 Add QgsProject flag to avoid loading print layouts when reading a project file
Speeds up project read time when these aren't needed, and also potentially
avoids issues caused by non-thread-safety in layouts (since some items rely
on classes which can only be used in the main thread e.g. QWebPage)
2019-10-04 05:10:45 +10:00
Denis Rouzaud
97435d38ee
Merge pull request #32095 from 3nids/from_init_python_url_v2
allow to use remote content for init code file path in attribute form
2019-10-03 17:48:12 +02:00
Nyall Dawson
387272d441 QgsProject documentation improvements 2019-10-03 20:12:28 +10:00