6263 Commits

Author SHA1 Message Date
Nyall Dawson
5e84033193 Sipify 2019-11-01 14:03:01 +10:00
Alessandro Pasotti
faeaab1a57 Sipify 2019-10-31 17:33:49 +01:00
Alessandro Pasotti
f20660c0dd field displayNameWithAlias
This adds another method to display field names with alias, this is to be used when
working close to the data structure (sql builder, expressions etc.) when the information
in the alias is sometimes fundamental to indentify what the field contains.

displayNameWithAlias is now used (insted of field name) in:

    expressions dialog
    query builder

The format is:

alias (field_name)
and, in case there is no alias:
field_name
2019-10-31 17:30:02 +01:00
Matthias Kuhn
9a9ab392f2
Merge pull request #32524 from m-kuhn/dxfEmptyExtentError
[dxf export] Bail out if extent could not be determined
2019-10-31 15:34:44 +01:00
Blottiere Paul
0a2b92ab22 Update sip 2019-10-31 14:15:14 +01:00
Blottiere Paul
e3371fd9be Update sip 2019-10-31 14:15:14 +01:00
Alex
54c175b55f optional fids counting 2019-10-31 08:36:34 -04:00
Hugo Mercier
e86c2afb4e
Merge pull request #31648 from troopa81/fix_snaptocurrentlayer
Parallelize snap caching
2019-10-31 09:31:20 +01:00
MUrban
3f33701da1 [feature] [mesh] fix #29326 Adding SIP_SKIP for datasetPlaybackInterval 2019-10-31 09:09:47 +01:00
MUrban
32cfedd074 [feature] [mesh] fix #29326 Adding playback function for mesh datasets 2019-10-31 09:09:47 +01:00
Matthias Kuhn
ec244b3338 Since 3.10.1 2019-10-31 08:42:15 +01:00
Nyall Dawson
994f45470a Dox++ 2019-10-31 14:59:39 +10:00
Nyall Dawson
f602ed3751 Add API to allow setting the default view extent for a new project
Allows a QgsProject created using QGIS api only (i.e., not via the desktop
application) to specify the default extent which should be visible when
that project is opened.

Straight from the dox:

Sets the default view extent, which should be used as the initial map extent
when this project is opened.

\warning When a project is opened in the QGIS desktop application and saved, individual
map canvases will store their own previous view extent as custom project properties. Reloading
this saved version of the project will trigger the canvases to restore their individual last view
extents. Accordingly, in the QGIS desktop application, this setting only forms a default, initial
view used when the project is opened for the very first time.
2019-10-31 14:59:39 +10:00
Nyall Dawson
65490ab13e Move QgsProject map scales settings to a new class, QgsProjectViewSettings
attached to QgsProject

And deprecate old getters/setters

The goal here is to create a place for project view related settings (e.g.
map scales, default extent, possibly future things like a fixed project
maximum area of interest, etc). Currently these are all handled in an
ad-hoc way, e.g. sometimes in project custom keys, sometimes inside
xml saved and restored by map canvases. But both these approaches break
important use case for plugins, e.g. creating a project from scratch
which will zoom to a desired extent on load. That's totally impossible
in the current API, unless you resort to extremely fragile manual
xml crafting...
2019-10-31 14:59:39 +10:00
Nyall Dawson
8c8d76387c Doxy 2019-10-31 12:19:59 +10:00
Nyall Dawson
13e9dd727f Deprecate old QgsRasterResampler interface, and add a new interface
which doesn't require pre-allocation of a temporary QImage

The existing interface is very inefficient for the bilinear resampler,
because it requires allocation of a temporary QImage just to pass
the desired height and width to the resampler...
2019-10-31 12:19:59 +10:00
Matthias Kuhn
1886d70dca Typo 2019-10-30 19:10:19 +01:00
Matthias Kuhn
312c869268 Use class enum 2019-10-30 16:23:36 +01:00
Matthias Kuhn
473473d8c3 [dxf export] Bail out if extent could not be determined
E.g. because no layers are given
2019-10-30 16:04:07 +01:00
Alessandro Pasotti
73beaca45a Address PR comments 2019-10-30 14:41:34 +01:00
Alessandro Pasotti
64949dc227 Check vector layer widget broken dependencies 2019-10-30 14:41:34 +01:00
Alessandro Pasotti
07bb6b77e1 Server OAPIF datetime filter support
with full test coverage for single values and ranges,
supports time, datetime and string fields.
2019-10-30 11:53:14 +01:00
Alessandro Pasotti
6112da45f6 Server OAPIF datetime support 2019-10-30 11:53:13 +01:00
Julien Cabieces
d246d9f593 Don't call processEvents and clear added/deleted list 2019-10-30 10:46:26 +01:00
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