Project: QGIS

Changelog for version: 3.6.0

Release date: 22 February, 2019


Sponsors for QGIS version 3.6.0


Gold : 9000 EUR

QGIS user group Denmark

QGIS user group Denmark

QGIS user group Sweden

QGIS user group Sweden

QGIS user group Switzerland

QGIS user group Switzerland


Silver : 3000 EUR

AERO ASAHI Corporation

AERO ASAHI Corporation

ARTOGIS a/s

ARTOGIS a/s

GAIA mbH

GAIA mbH

GIAP Spółka z Ograniczona Odpowiedzialnoscia

GIAP Spółka z Ograniczona Odpowiedzialnoscia

LIFA A/S Landinspektører

LIFA A/S Landinspektører

Land Vorarlberg

Land Vorarlberg

Lutra Consulting

Lutra Consulting

Mierune LLC

Mierune LLC

OPENGIS.ch GmbH

OPENGIS.ch GmbH

OSGeo:UK

OSGeo:UK

Office of Public Works, Flood Risk Management and Data Management Section

Office of Public Works, Flood Risk Management and Data Management Section

QGIS user group Germany

QGIS user group Germany

SECON Private Limited

SECON Private Limited

Terraplan

Terraplan

Van Oord Dredging and Marine Contractors bv

Van Oord Dredging and Marine Contractors bv

WIGeoGIS

WIGeoGIS


Bronze : 500 EUR

Ager Technology

Ager Technology

Agresta S. Coop.

Agresta S. Coop.

Alta ehf

Alta ehf

Asociación Geoinnova

Asociación Geoinnova

BGEO Open GIS, SL

BGEO Open GIS, SL

Baumsicht

Baumsicht

Beacon Environmental

Beacon Environmental

CartoData

CartoData

Chartwell Consultants Ltd.

Chartwell Consultants Ltd.

City of Canning

City of Canning

Datenbankgesellschaft mbH

Datenbankgesellschaft mbH

Forest Design SRL

Forest Design SRL

Franziska Knüsel Landschaftsplanung

Franziska Knüsel Landschaftsplanung

GIS Mexico - Soluciones Geográficas de México SC

GIS Mexico - Soluciones Geográficas de México SC

GIS Support Sp. z o.o.

GIS Support Sp. z o.o.

GKG Kassel, (Dr.-Ing. Claas Leiner)

GKG Kassel, (Dr.-Ing. Claas Leiner)

Gaia3D, Inc.

Gaia3D, Inc.

GeoS Geodätische Software Andreas Hellinge

GeoS Geodätische Software Andreas Hellinge

Gispo Oy

Gispo Oy

Gistree, Lda.

Gistree, Lda.

Inforest Research o.c.

Inforest Research o.c.

InfraGIS GmbH

InfraGIS GmbH

Infraplan Engineering Services Pvt. Ltd.

Infraplan Engineering Services Pvt. Ltd.

Ingenieurbüro Kauppert

Ingenieurbüro Kauppert

Integrate Sustainability Pty Ltd

Integrate Sustainability Pty Ltd

Kaplan Open Source Consulting Ltd

Kaplan Open Source Consulting Ltd

LandPlan OS GmbH

LandPlan OS GmbH

Le Groupe SYGIF inc.

Le Groupe SYGIF inc.

MHTC Ltd

MHTC Ltd

MappingGIS

MappingGIS

NaturalGIS

NaturalGIS

OPGK Kraków

OPGK Kraków

Oester Messtechnik GmbH

Oester Messtechnik GmbH

Orbitalnet Inc.

Orbitalnet Inc.

QGIS user group Brazil

QGIS user group Brazil

QTibia Engineering

QTibia Engineering

Region Midtjylland (Central Denmark Region)

Region Midtjylland (Central Denmark Region)

Royal Borough of Windsor and Maidenhead

Royal Borough of Windsor and Maidenhead

SIGMOÉ

SIGMOÉ

SOLTIG (Soluciones en Tecnologías de Información Geográfica)

SOLTIG (Soluciones en Tecnologías de Información Geográfica)

Septima

Septima

Solargis s.r.o.

Solargis s.r.o.

Syddjurs Kommune

Syddjurs Kommune

TYC GIS

TYC GIS

TerreLogiche

TerreLogiche

Trage Wegen vzw

Trage Wegen vzw

Urbsol

Urbsol

Veitch Lister Consulting

Veitch Lister Consulting

Västra Götalandsregionen

Västra Götalandsregionen

WAGNER-IT

WAGNER-IT

WhereGroup GmbH & Co. KG

WhereGroup GmbH & Co. KG

Xʷməθkʷəy̓əm - Musqueam Indian Band

Xʷməθkʷəy̓əm - Musqueam Indian Band

correlate beyond the obvious OG

correlate beyond the obvious OG

ePrime

ePrime

thinkWhere

thinkWhere


Expressions


Feature: New Expression Functions

  • force_rhr: 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.
  • decode_uri: takes a layer parameter and an optional uri part parameter. It will return details about the data source of the layer. The available details depend on the data provider.
    If called with only a layer parameter, a map will be returned with all the available information. If the part is also specified, only the value for the requested part will be extracted from the map.
  • path has been added as an option for the layer_property expression function
  • array_sort: sorts an array of elements
  • nullif
  • sqlite_fetch_and_increment
  • make_rectangle_3points
  • make_square
  • from_json
  • to_json

Feature: Square brackets to easily access map array elements

Allows expressions like:

  • array(1,2,3)[0] -> 1
  • array(1,2,3)[2] -> 3
  • array(1,2,3)[-1] -> 3 (Python style, negative indices count from end of array)
  • array(1,2,3)[-3] -> 1
  • map('a',1,'b',2)['a'] -> 1
  • map('a',1,'b',2)['b'] -> 2

This feature was developed by Nyall Dawson, Mathieu Pellerin


Feature: New map expression variables

  • @map_crs_description: name of the coordinate reference system of the map.
  • @map_crs_acronym: acronym of the coordinate reference system of the map.
  • @map_ellipsoid_acr: acronym of the ellipsoid of the coordinate reference system of the map.
  • @map_crs_proj4: Proj4 definition of the coordinate reference system.
  • @map_crs_wkt: WKT definition of the coordinate reference system.WKT definition of the coordinate reference system.

This feature was developed by Alexis Roy-Lizotte


Map Tools


Feature: Title label decoration

This feature was developed by Mathieu Pellerin


Feature: Top/bottom centering placement for decoration items

Map copyright and title decorations can now be placed centered at the top or bottom of the map view.

This feature was developed by Mathieu Pellerin


Feature: Node editor fixes

.... ?


Feature: Identify tool supports mesh layers


User Interface


Feature: A new grayscale theme, "blend of gray"

...

Additionally, the Night Mapping dark theme has had 1000s of improvements and fixes.

This feature was developed by Mathieu Pellerin


Feature: Multiline selections and editing in code/expression editors

Holding ctrl while selecting in the QGIS expressions and Python script editors allows you to select a multi-line block of text, which can be edited all at once.

This feature was developed by Nyall Dawson (North Road)


Symbology


Feature: Better handling of .XML style libraries

The browser panel now shows QGIS style xml libraries, and these files can also be drag and dropped to a QGIS window. This opens a dialog allowing users to explore the style library, and import styles from the library to their QGIS install.

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Optionally 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.

This feature was funded by QGIS User Group Germany

This feature was developed by Nyall Dawson (North Road)


Feature: Option for simple lines and marker lines to only render exterior ring or interior rings

This new 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.

This feature was funded by QGIS User Group Germany

This feature was developed by Nyall Dawson (North Road)


Feature: Raster image marker

This feature was developed by Mathieu Pellerin


Feature: Raster fill can have images set to remote URLs or embedded images

Just like the SVG and raster image marker, raster fill can now be set to use HTTP(s) URLs or have files directly embedded inside the symbol itself.

This feature was developed by Mathieu Pellerin


Feature: Use represention values for classified renderers

When a field is configured with a value relation, value map or other "representable value" and the field is used as the source for a classification renderer, the represented values will be taken to label the categories.

This feature was developed by Matthias Kuhn


Feature: Option to merge categories in categorized renderer

This change allows users to select multiple existing categories and group them into a single category, which applies to any of the values from the selection.

This allows simpler styling of layers with a large number of categories, where it may be possible to group numerous distinct categories into a smaller, more managable set of categories
which apply to multiple values.

The option is available from the right click context menu in the categories list view, whenever multiple categories are selected.

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: Show Project Colors in color bound data defined buttons

This adds a new "Project Colors" section in data defined buttons which are linked to a color value. The color menu contains all colors defined as part of the current project's Project Color Scheme (which is defined through project properties).

When a project color is selected from the button, the property becomes linked to that color. It will automatically follow any future changes to the color when made through project properties.

This allows users to define common colors for a project once, and then "bind" symbol, label, layout, etc colors to these preset colors. The link is live, so you change it once, and
the change is reflected EVERYWHERE. Sure beats updating a color 100 times when it's use has been scattered throughout a project's symbols, labels, etc...

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Style manager dialog improvements

The Style Manager dialog has seen a number of improvements:

  • A new "list view" mode has been added
  • An "all" tab has been added, which shows all matching symbols (regardless of the symbol type)

This feature was developed by Nyall Dawson (North Road)


Digitising


Feature: Georeferencer enhancements

  • add dX, dY and residual on GCP Points
  • add option to automatically save GCP Points in the raster-modified path

This feature was developed by Faneva Andriamiadantsoa


Feature: New option to avoid minimizing georeferencer when adding points

Users can now choose to avoid the automatic georeferencer window minimisation which occurs when adding new control points from the map canvas. This behaviour can be annoying on multi-monitor setups where it can be desirable to have both windows visible while adding points.

This feature was developed by Nyall Dawson (North Road)


Data Management


Feature: Comment option in db manager

This feature was developed by Corentin.F


Forms and Widgets


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.

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Map Composer


Feature: Grid frame improvements

Users can now set a margin for the grid frames in layout map items. Additionally, new "Zebra (Nautical)" and "Line border (Nautical)" frame styles have been added, which show nautical-style blocks in the grid corners when a margin is set for the grid.

This feature was developed by konst


Feature: Improved handling of text and label export

When exporting a print layout to PDF or SVG formats, users are now given a choice of how text and labels within that layout should be exported. Available options are to convert all text for outlines/curves (the previous default), or to leave text and labels as text objects.

This feature was developed by Nyall Dawson (North Road)


Feature: Map labeling improvements

Several improvements have been made regarding how labels are rendered within layout map items.

  • A new setting allows per-map control of how close labels are permitted to be placed to the map item's edges. Sizes can be set using mm/inches/pixels/etc, and data defined label margins are allowed.
  • A new setting allows per-map control of whether partial labels are visible in the map. This defaults to off, (unlike the canvas setting, which defaults to true for a new project) as layouts
    should always default to the settings which produce the highest quality cartographic outputs.

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Rework of map item extent/scale shortcuts

The buttons for setting layout map items to match the current map view (and vice versa) have been moved up to a new toolbar in map item properties windows.

New actions have also been added to set the map item's scale to match the main canvas scale, and to set the main canvas scale to match the selected layout map's scale. These mirror the existing settings for setting the extent from the canvas and pushing the extent TO the canvas.

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Layout items can "block" map labels

This feature allows other layout items (such as scalebars, north arrows, inset maps, etc) to be marked as "blockers" for the map labels in a map item. This prevents any map labels from
being placed under those items - causing the labeling engine to either try alternative placement for these labels (or discarding them altogether).

This allows for more cartographically pleasing maps -- placing labels under other items can make them hard to read, yet without this new setting it's non-trivial to get QGIS to avoid placing the labels in these obscured areas.

The blocking items are set through a map item's properties, under the label settings panel. The setting is per-map item, so you can have a scalebar block the labels for one map in your layout and not others (if you so desire!)

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Warnings on exports

When exporting print layouts, QGIS now automatically checks the layout for common mistakes and warns users when they are found:

  • Scalebars not linked to a map item
  • Picture items with broken or missing paths, or linked to unreadable image files
  • Map overviews no longer linked to a valid map item

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: Control over stacking position of map overview extents

QGIS allows overview extents to be drawn below map labels (the new default), but in 3.6 choices have been added for drawing them below all map layers, or above/below a specific map layer. This allows users to control exactly where in the map item's layer stack the overview will be placed, e.g. allowing them to draw a overview extent below some feature layers such as roads whilst drawing it above other background layers.

This feature was developed by Nyall Dawson (North Road)


Feature: New expression variables for legend items

New expression variables have been added for use in data defined expressions in layout legend items, including:

  • @legend_title
  • @legend_column_count
  • @legend_split_layers
  • @legend_wrap_string
  • @legend_filter_by_map
  • @legend_filter_out_atlas

If the legend is linked to a map, then expressions used in that legend will also have access to the linked variables, including @map_scale, @map_extent, etc.

Additionally, symbols rendered as part of a legend now use the full available expression context for the legend. This means the symbols will have access to variables like the current atlas feature.

This feature was developed by Alexis Roy-Lizotte


Feature: Expressions inside legend item text

This feature allows for expressions to be embedded directly inside legend item text (e.g. group, subgroup and item text). The expressions are evaluated at render time, with full knowledge of the legend's expression context (so can utilise variables from the layout/layout item/etc)

There's no UI for this yet (that will come in 3.8), but expressions are entered using the standard [% 1 + 2 %] format.

E.g. a legend item text of

My layer (rendered at 1:[% @map_scale %])

will show in the output as

My layer (rendered at 1:1000)

This feature was developed by Nyall Dawson (North Road)


Analysis Tools


Feature: Hardware acceleration for raster calculator

This feature was developed by Alessandro Pasotti


Processing


Feature: New algorithm "Remove duplicates by attribute"

Allows for removal of duplicate features, identified using the values in one (or more) field values from the input features. Optionally any discarded (duplicate) features can be saved to a separate sink.

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: Explode HStore algorithm

This algorithm creates a copy of an input layer and adds a new field for every unique key found in a HStore type field.
For instance, a HStore field is often present in an OSM dataset ("other_tags").

This feature was developed by Etienne Trimaille


Feature: Force right-hand-rule

This new algorithm forces polygon geometries to respect 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.

This feature was funded by QGIS User Group Germany

This feature was developed by Nyall Dawson (North Road)


Feature: Extract Binary Field algorithm

This new algorithm allows users to extract binary fields to files.

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: Split Lines by Maximum Length algorithm

This algorithm takes an input (multi)line (or curve) layer, and splits each feature into multiple parts such that no part is longer then the specified maximum length.

Supports data-defined maximum length property, and edit in place operation.

This feature was developed by Nyall Dawson, Nathan Woodrow


Feature: New parameter type for authentication config

A new parameter type for processing algorithms, QgsProcessingParameterAuthConfig, has been added, allowing selection from available authentication configurations (and creation of new ones).

It allows creation of processing algorithm which can fully take advantage of QGIS' mature authentication handling, avoiding the need to use insecure string parameters for users to input sensitive logon credentials.

QgsProcessingParameterAuthConfig parameters are evaluated using QgsProcessingAlgorithm.parameterAsString(), which returns the selected authentication configuration ID.

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: resampling and format options in the gdaladdo algorithm

This feature was developed by Alex Bruy


Feature: Raster zonal stats algorithm

This algorithm calculates statistics for a raster layer's values, categorized by zones defined in another raster layer.

This feature was developed by Nyall Dawson (North Road)


Feature: Extract Z values and Extract M values algorithms

These algorithms allow users to convert z or m values present in feature geometries to attributes in the layer.

By default the z/m value from the first vertex in the feature is extracted, but optionally statistics can be calculated on ALL the z/m values from the geometry (e.g. calculating
mean/min/max/sum/etc of z values).

This feature was developed by Nyall Dawson (North Road)


Feature: Geodesic line split at antimeridian algorithm

This algorithm splits a line into multiple geodesic segments, whenever the line crosses the antimeridian (±180 degrees longitude). Splitting at the antimeridian helps the visual display of the lines in some projections. The returned geometry will always be a multi-part geometry.

Whenever line segments in the input geometry cross the antimeridian, they will be split into two segments, with the latitude of the breakpoint being determined using a geodesic line connecting the points either side of this segment. The current project ellipsoid setting will be used when calculating this breakpoint.

If the input geometry contains M or Z values, these will be linearly interpolated for the new vertices created at the antimeridian.

Supports in-place edit mode also.

This feature was developed by Nyall Dawson (North Road)


Feature: Geodesic mode for "Join by Lines (Hub lines)" algorithm

This allows optional creation of geodesic lines, which represent the shortest distance between the points based on the ellipsoid.

When geodesic mode is used, it is possible to split the created lines at the antimeridian (±180 degrees longitude), which can improve rendering of the lines. Additionally, the distance between vertices can be specified. A smaller distance results in a denser, more accurate line.

This feature was developed by Nyall Dawson (North Road)


Feature: Raster Surface Volume algorithm

The SAGA raster surface volume has been ported to a native QGIS algorithm. The SAGA version of this algorithm is of limited use in QGIS, because the volume calculated is embedded only in the SAGA terminal output. This prevents it being saved to a file, or reused within a model as an input to a later model step. Accordingly, the algorithm has been ported across to a native QGIS c++ algorithm. The algorithm duplicates the SAGA algorithm 1:1, but outputs the volume (and area) to either a HTML report, or a vector table. Additionally, the outputs are exported as numeric outputs from the algorithm, allowing them to be re-used within models.

This feature was developed by Nyall Dawson (North Road)


Feature: Resurrected model to Python script functionality

The 2.x ability to directly convert a Processing model to an equivalent Python script has been resurrected and updated for the 3.x Processing API.

This feature has been backported to QGIS 3.4.5.

This feature was funded by Solspec

This feature was developed by Nyall Dawson (North Road)


Application and Project Options


Feature: Delete settings from the Advanced tab in options

This change adds a new right click menu to the settings shown in the "Advanced" tab in the settings dialog, which allows users to remove that setting (or group of settings).

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Browser


Feature: Add "export to file" options for raster and vector layers within the browser

Allows for direct export of these files (e.g. to a different format, crs, etc) without having to actually load them into a project first.

This feature was funded by Nyall Dawson (North Road)

This feature was developed by Nyall Dawson (North Road)


Feature: Native file/folder properties

You can now right click on a file or folder within the browser, and select "File Properties" or "Directory Properties" to open the native file/folder properties dialog for that entry. This allows rapid access to operating system file or folder properties, such as file permissions and sharing options.

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Preview layers and attributes

QGIS 3.6 brings back the functionality from the old 2.18 standalone "browser" application to preview layers and their attributes. This functionality has been moved to the inbuilt browser panel, and is available by right-clicking on a layer and selecting "properties" (or by clicking the "enable properties widget" button in the browser toolbar).

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: Explore QGS/QGZ project files in the browser

Previous versions of QGIS would show QGS/QGZ project files in the browser, allowing them to be opened as the new active project. In QGIS 3.6 this functionality has been extended, and project files can now be explored directly WITHIN the browser. Projects are now expandable items, and expanding them shows the full project structure of groups and layers. Any layer can then be dragged and dropped to the current project.

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Directly Create Geopackage and Shapefiles

Right clicking a directory in the browser panel now shows a "New" menu, containing items for creating a new Geopackage, Shapefile, or subdirectory under the selected directory.

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Open Terminal at Path

A new context menu entry has been added for browser panel directory items to open a new terminal window at that directory.

On Windows, this new terminal inherits the QGIS environment, so GDAL commands and Python scripts which use PyQGIS commands work without any further environment setup required.

Terminal hackers rejoice!

This feature was developed by Nyall Dawson (North Road)


General


Feature: Improved "missing layer" handling on project load

This feature was developed by Alessandro Pasotti


Feature: Optional setting for disabling version checks

A new setting, "allowVersionCheck" has been added to the QGIS configuration ini file. If set to true (the default), users may control whether the version check is enabled or disabled through the QGIS settings dialog. When this setting is set to false, no version checking will be performed AND users will NOT have an option to enable this check in the settings dialog.

This setting is intended for use in enterprise installs where QGIS version management is handled centrally.

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: Add a toggle action to vector layer legend items

This feature was developed by Alessandro Pasotti


Data Providers


Feature: Open service info for ArcGIS Feature Server layers

ArcGIS Feature Server layers have a new right click menu option in the browser panel, allowing users to directly open the service information web page for the selected layer.

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: Binary blob support for OGR providers

Instead of converting binary fields to truncated strings, these values are now retrievable as their original binary contents. This allows for plugins and scripts to utilise binary fields, such as extracting their contents.

Additionally, new binary fields can be created for compatible data sources.

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: ArcGIS Feature Server picture marker and picture fill support

When loading a Feature Server layer with picture marker or picture fill symbology, QGIS will automatically convert the ESRI picture marker and fill symbols and use them as the default style for the layer.

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson, Mathieu Pellerin


Feature: ArcGIS Feature Server labeling support

When a Feature Server layer has labeling defined by the server, these labeling settings will be automatically used by default when loading the layer into QGIS.

This feature was developed by Mathieu Pellerin


Feature: Boolean and binary field support for memory layers

Memory ("Temporary scratch") layers can now use binary and boolean (true/false) field types.

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: JSON Support for GeoPackage

This feature was developed by opengis.ch


Feature: Postgres provider: save primary key selection

When a view loaded from Data Source Managers's PostgreSQL tab you can select the key columns of the view (by default the first column is used, which can be wrong). This commit stores that selection in the settings, so that it doesn't have to be reselected on subsequent loads. This stored selection is also used when adding the loading from the browser.

This feature was developed by Jürgen Fischer


QGIS Server


Feature: Possibility to set ATLAS_PK in GetPrint request to print atlas sheet(s)

This feature was developed by Marco Hugentobler


Feature: WMTS tile matrices configuration

In QGIS Server 3.4, the WMTS API was added in which the tile matrices are calculated except for EPSG:3857 and EPSG:4326.

This change adds the capability to select the tile matrices to use with the project and to configure the top-left corner and the last level of the tile matrix. In the case of EPSG:3857 and EPSG:4326, the user can only choose the last level of the tile matrices.

This feature was funded by Ifremer

This feature was developed by 3liz


Programmability


Feature: 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.

This feature was developed by Nyall Dawson (North Road)


Feature: Iterate over parts of a QgsGeometry

This new PyQGIS API allows easy iteration over all the parts of a geometry, regardless of the geometry's type. E.g.

geometry = QgsGeometry.fromWkt( 'MultiPoint( 0 0, 1 1, 2 2)' )
for part in geometry.parts():
  print(part.asWkt())

geometry = QgsGeometry.fromWkt( 'LineString( 0 0, 10 10 )' )
for part in geometry.parts():
  print(part.asWkt())

There are two iterators available. QgsGeometry.parts() gives a non-const iterator, allowing the parts to be modified in place:

geometry = QgsGeometry.fromWkt( 'MultiPoint( 0 0, 1 1, 2 2)' )
for part in geometry.parts():
   part.transform(ct)

For a const iteration, calling .const_parts() gives a const iterator, which cannot edit the parts but avoids a potentially expensive QgsGeometry detach and clone

geometry = QgsGeometry.fromWkt( 'MultiPoint( 0 0, 1 1, 2 2)' )
for part in geometry.const_parts():
   print(part.x())

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Improved QgsLineString PyQGIS API

Some nice API additions have been made to the QgsLineString API:

  • len(QgsCurve) returns number of points in curve
  • raise IndexErrors when calling pointN, xAt, yAt, zAt, mAt, setXAt, setYAt, setMAt, setZAt with invalid vertex indices
  • Add [] getter for retrieving specific vertices, eg. ls[0] returns QgsPoint(...)
  • Add [] setter for setting specific (existing) vertices, e.g. ls[1] = QgsPoint(1,2)
  • Add del support for removing vertices, e.g. del ls[1] removes the second vertex

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: PyQGIS Geometry Collection API improvements

The PyQGIS API for working with geometry collections has been improved:

  • Calling removeGeometry with an invalid index will now raise an IndexError
  • Calling collection[0] will return the first geometry in the collection, collection[1] the second, etc. And negative indices return from the end of the collection, so collection[-1] returns the last geometry in the collection.
  • Geometries can be deleted by calling del collection[1] (deletes the second geometry from the collection). Also supports negative indices to count from the end of the collection.

Additionally, you can now easily iterate over the geometries in the collection, allowing this type of code:

gc = QgsGeometryCollection()
gc.fromWkt('GeometryCollection( Point(1 2), Point(11 12), LineString(33 34, 44 45))')
for part in gc:
  print(part.asWkt())

This feature was funded by North Road

This feature was developed by Nyall Dawson (North Road)


Feature: Easier Processing algorithm creation via @alg decorator

Allows the following to define processing scripts without the need for implementing a custom class:

from qgis.processing import alg

@alg(name="test2", label="test 2", group="test", groupid="test")
@alg.input(type=alg.STRING, name="IN1", label="In string")
@alg.input(type=str, name="IN2", label="In string 1", optional=True)
@alg.input(type=str, name="IN3", label="In string 2")
@alg.input(type=alg.SINK, name="SINK", label="Sink it!")
@alg.output(type=str, name="OUT", label="WAT")
@alg.output(type=alg.MAPLAYER, name="OUT2", label="WAT")
@alg.output(type=alg.VECTOR_LAYER, name="VECTOR_LAYER", label="WAT")
def testalg(instance, parms, context, feedback, inputs):
"""
This is a test function that does stuff
"""
feedback.pushInfo("We got these inputs!!")
feedback.pushInfo(inputs['IN1'])
feedback.pushInfo(inputs['IN2'])
feedback.pushInfo(inputs['IN3'])
return {
"OUT2": "wat"
}

This feature was developed by Nathan Woodrow


Feature: Blocking (non-async) network requests

New PyQGIS API has been added for performing SAFE blocking requests. It is thread safe and has full support for QGIS proxy and authentication settings.

reply = QgsNetworkAccessManager.blockingGet(...)
reply = QgsNetworkAccessManager.blockingPut(...)

This API should be used whenever a blocking network request is required. Unlike implementations which rely on QApplication::processEvents() or creation of a QEventLoop, this class is completely thread safe and can be used on either the main thread or background threads without issue.

Redirects are automatically handled by the class.

This feature was developed by Nyall Dawson (North Road)


Feature: Custom validity checks on layout exports

See https://north-road.com/2019/01/14/on-custom-layout-checks-in-qgis-3-6-and-how-they-can-do-your-work-for-you/

This feature was funded by SMEC/SJ

This feature was developed by Nyall Dawson (North Road)


Feature: API for calculating Geodesic lines

New PyQGIS API for calculation of geodesic lines (shortest distance on an ellipsoid) has been added to QgsDistanceArea, which utilises the mature geographiclib library for geodesic calculations.

  • QgsDistanceArea.geodesicLine : calculates the geodesic line between two points
  • QgsDistanceArea.latitudeGeodesicCrossesAntimeridian calculates the latitude at which the geodesic line joining two points crosses the antimeridian
  • QgsDistanceArea.splitGeometryAtAntimeridian : splits a (multi)linestring at the antimeridian, using geodesic lines to calculate the exact point at which the split occurs on the antimeridian

This feature was developed by Nyall Dawson (North Road)


3D Features


Feature: Terrain shading

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

Optionally, terrains can be shaded using a preset map theme.

This feature was developed by Martin Dobias (Lutra Consulting)


Feature: Configuration of lights in 3D map scenes

This feature adds a section to define point lights in 3D scenes. Up to 8 lights are supported (limitation by implementation of materials). For each light one can set the position, intensity, color and attenuation.

This feature was developed by Martin Dobias (Lutra Consulting)


Feature: Rule-based 3D renderer

This feature was developed by Martin Dobias (Lutra Consulting)


Comments
blog comments powered by Disqus