15610 Commits

Author SHA1 Message Date
Nyall Dawson
eface49a6a Try to hide member from sip 2019-08-07 21:53:16 +10:00
Nyall Dawson
dca0f3f4fa Add API to allow rendered feature handlers to indicate which attributes
they require

And ensure these are fetched in the iterator used for rendering features
2019-08-07 21:53:16 +10:00
Nyall Dawson
c71cd4b5fc Initial work on rendered feature handler interface
Adds an interface for classes which provider custom
handlers for features rendered as part of a map render job.

QgsRenderedFeatureHandlerInterface objects are registered
in the QgsMapSettings objects used to construct map render
jobs. During the rendering operation, the handleRenderedFeature()
method will be called once for every rendered feature, allowing
the handler to perform some custom task based on the provided
information.

They can be used for custom tasks which operate on a set of
rendered features, such as creating spatial indexes of the
location and rendered symbology bounding box of all features
rendered on a map.
2019-08-07 21:53:16 +10:00
Julien Cabieces
2cc6775354 Use context.project() instead of QgsProject.instance() and
QgsProcessingUtils generateTempFileName method
2019-08-07 21:17:05 +10:00
Julien Cabieces
36fe8e64e3 Get supported extension to avoid unavailable driver 2019-08-07 21:17:05 +10:00
Julien Cabieces
4232e67c3d fixes #24041 : Write intermediate memory layer to disk in Execute SQL
algorithm so they can be referenced by the virtual layer provider
2019-08-07 21:17:05 +10:00
Nyall Dawson
0419f182d8 Use a more appropriate, global snap to grid algorithm when simplifying
geometries for layout exports

This avoids all chance of slivers or overlaps between previously
adjacent features.
2019-08-07 15:57:26 +10:00
Nyall Dawson
d8d23b56ea [FEATURE][layouts] Add option to simplify PDF or SVG exports
This new setting, "Simplify geometries to reduce output file size",
is exposed in the SVG or PDF export settings dialogs shown when
exporting a layout/atlas/report to PDF or SVG.

If checked (the new default), geometries will be simplified while exporting
layouts in order to remove any redundant vertices which are not
discernably different at the export DPI. (e.g. if export DPI is 300 dpi,
vertices less then 1/600 inch different from each other will be removed).

This avoids exporting ALL geometry vertices during PDF/SVG export,
which can result in a ridiculously complex and large export file size.
Aside from the file size issues, it also causes problems when trying
to load these outputs into other applications, e.g. Inkscape, which
chokes on the huge number of vertices and grinds to a crawl.

Sponsored by the GeoPDF export group
2019-08-07 15:57:26 +10:00
Nyall Dawson
daf3491b5e [layouts] Add vector simplification method to QgsLayoutRendereContext
Allows specification of simplify method to use when rendering layouts
2019-08-07 15:57:26 +10:00
Nyall Dawson
615e245b18 Add method to specify global vector simplification overrides on a
QgsMapSettings object

If specified (they default to off), these simplification settings
will override any layer-specific simplification settings, and
provide a way for specifying a global simplication to apply
to vector layers while exporting maps.
2019-08-07 15:57:26 +10:00
Nyall Dawson
286b967917 Consistent dox 2019-08-07 10:40:30 +10:00
Nyall Dawson
99594147b1 [processing] Fix raster layers are not shown as an option for map layer
parameters in batch mode

Fixes #30739
2019-08-07 09:58:46 +10:00
lbartoletti
03f48bdbd8 Rewriting documentation 2019-08-07 07:30:19 +10:00
lbartoletti
2354065e90 use Enum for Result of addTopologicalPoints 2019-08-07 07:30:19 +10:00
lbartoletti
aaa6f65537 topologicalEditing: Fix Z for add feature 2019-08-07 07:30:19 +10:00
Nyall Dawson
6a4ec5b704 [processing][needs-docs] Add missing input and output types to decorator syntax 2019-08-07 07:26:54 +10:00
Nyall Dawson
35fc3799cd Dox++ 2019-08-07 06:26:04 +10:00
Nyall Dawson
b4c4c99250 Improve QgsRasterLayer dox 2019-08-07 06:26:04 +10: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
Denis Rouzaud
e4faaf4988
add __repr__ for QgsMapLayer (#31108) 2019-08-06 13:36:14 +02:00
Nyall Dawson
e3fbe28148 Fix incorrect /Factory/ annotation 2019-08-06 21:31:59 +10:00
nirvn
ec75aa0300 [FEATURE][text renderer] Support vertical text orientation 2019-08-06 13:24:15 +07:00
Nyall Dawson
126ccb9736 Apply same logic regarding joined fields as is used in field calculator
to QgsFieldProxyModel set to hiding read only fields

I.e. show editable joined fields, but only if they are set to a non-hidden
editor widget
2019-08-06 13:47:41 +10:00
Nyall Dawson
078ab8b04e
Merge pull request #30462 from DelazJ/patch-11
Add precision to travel cost parameter in service area algorithms
2019-08-06 07:17:46 +10:00
Matthias Kuhn
549abbfb86
Merge pull request #31047 from m-kuhn/support_loading_curved_pg_types
[db_manager] support loading mixed curved and straight type tables
2019-08-05 08:39:44 +02:00
Dimitris Salmas
0a27b7b131
bug fix
Bug fix for ERROR: Output distance in meters for lat/lon is only possible with 'metric=geodesic'
2019-08-02 17:08:53 +03:00
Matthias Kuhn
bd61fa55e7 Do not specify srid in dbmanager. It goes crazy
If srid is specified in an uri, it disables type detection.

Fix #30787
2019-08-02 13:12:18 +02:00
Matthias Kuhn
619562ec3d More dox 2019-08-02 13:12:18 +02:00
Matthias Kuhn
60f4bc56e8 Add QgsWkbTypes::curveType method 2019-08-02 09:33:47 +02:00
Nyall Dawson
ba55fb3e0a Use real symbol buttons in categorized and graduated renderer widgets,
instead of fake ones

Gives these buttons the full power of the usual QgsSymbolButton,
including copy/paste symbols, color/opacity changes, etc. Plus,
some nice additional interface consistency!
2019-08-01 16:03:47 +10:00
Harrissou Sant-anna
292efc2bf8 Add minimal description to Processing algorithms
enabling the right-hand help panel
2019-08-01 09:19:08 +10:00
Harrissou Sant-anna
ad011ac0a2
Apply suggestions from code review
Typo fix

Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
2019-08-01 00:58:18 +02:00
Harrissou Sant-anna
7cad1e3a0a
Revert bar plot removal 2019-07-31 20:54:12 +02:00
Nyall Dawson
193f520ad9 Deprecate existing QgsCustomDropHandler::handleMimeData method,
and add handleMimeDataV2 method which returns a bool

This allows custom drop handlers to indicate that they've fully
handled dropped mime data, and that no further processing should
be done on the mime data
2019-08-01 04:29:34 +10:00
Harrissou Sant-anna
bae77bf8c3 Add help panel to service area algorithms dialog
with information of travel cost units
2019-07-31 18:23:52 +02:00
Nyall Dawson
55efeaeb2f [FEATURE] Add copy/paste symbol action to right click menu in categorized/graduated/rule based renderers
Allows symbols to be easily copied and pasted between these nodes
2019-07-31 20:49:43 +10:00
Nyall Dawson
47f83b582f [FEATURE] Add "copy symbol" and "paste symbol" actions to layer right click, style menu
Allows for individual symbols to be copied and pasted between layers or rule/categorized/graduated
nodes
2019-07-31 20:49:43 +10:00
Nyall Dawson
a0f6ee7541 Sipify 2019-07-31 11:03:06 +10:00
Nyall Dawson
b9482dda6b Dox++, unit tests 2019-07-31 05:08:37 +10:00
Sandro Mani
62f5f5e8e3 Add QgsLayerTreeView::setLayerVisible 2019-07-31 05:08:37 +10:00
Nyall Dawson
03e2c4dae7 Add since 2019-07-31 05:08:12 +10:00
Sandro Mani
91d5c2d55c Add QgsUnitTypes::areaToDistanceUnit 2019-07-31 05:08:12 +10:00
Nyall Dawson
5af2e52fff Allow custom drop handlers to indicate that they will accept a mime type
in advance

Allows non-standard mime types to be dropped onto the QGIS window,
which will be handled by custom drop handlers
2019-07-31 05:06:50 +10:00
Sandro Mani
3cf94e98fc Inizialize QgsGpsInformation with sane values, add QgsGpsInformation::isValid and QgsGpsInformation::fixStatus 2019-07-31 02:51:46 +10:00
nirvn
0ffd1174db Address review 2019-07-30 18:06:26 +07:00
nirvn
ec99bd6240 [FEATURE][callouts] Add anchor point position settings for polygon features 2019-07-30 18:06:26 +07:00
lbartoletti
794a8efc81 Fixes empty WKT. Fixes #20753, Fixes #19190, Fixes #20754 (#9645)
* Fixes empty WKT. Fixes #20753, Fixes #19190, Fixes #20754
2019-07-30 09:34:53 +02:00
Nyall Dawson
2aec816b16 [needs-docs] Add option to show superseded (but not deprecated)
coordinate operations when selecting operations

This is the closest equivalent for the existing "hide deprecated"
checkbox which is available in proj < 6 builds.

Requires Proj >= 6.2
2019-07-30 07:24:53 +10:00
nirvn
8b5ba4a0cf Fix rebase gone wrong and address review 2019-07-29 15:14:34 +07:00
nirvn
3a37c83da7 [FEATURE][layout] Add horizontal placement option for scale bar labels 2019-07-29 15:14:34 +07:00