Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Render as a surface" option to 2D point cloud renderers (Request in QGIS) #9024

Open
qgis-bot opened this issue Apr 16, 2024 · 0 comments · May be fixed by #9050
Open

Add "Render as a surface" option to 2D point cloud renderers (Request in QGIS) #9024

qgis-bot opened this issue Apr 16, 2024 · 0 comments · May be fixed by #9050
Labels
3.36 QGIS 3.36 new features Size 3 It will take me between 2 hours to half a day
Milestone

Comments

@qgis-bot
Copy link
Collaborator

Request for documentation

From pull request qgis/QGIS#55332
Author: @wonder-sk
QGIS version: 3.36

Add "Render as a surface" option to 2D point cloud renderers

PR Description:

When enabled, we will do Delaunay triangulation of the points in the current map view, and then render triangles instead of points. For each point we keep its color for interpolation in the triangle.

Global map shading is also supported with the new option, when enabled, we also keep elevation of each point, and then rasterize triangles with interpolated elevations to the provided elevation map.

When "Render as a surface" is enabled, drawing order is ignored, because points do not obscure other points anymore - all input points participate in the triangulation.

There is also an option to filter large triangles (given by the maximum length of edge of a triangle), which is useful when one wants to see the actual holes in the data. Compared to the implementation for 3D rendering, the 2D rendering only provides filtering based on horizontal length of triangles. Filtering based on triangle size on the vertical axis seems irrelevant because the 2D view is always from the top.

Funded by: National Resources Canada

GUI

There's a new group in 2D styling tab - similar to the one that already exists in the 3D styling tab:

pc-2d-surface-gui

Screenshots

As expected, triangulation covers holes between points when zoomed in, but subjectively also gives nicer rendering when zoomed out.

Trencin castle

Disabled Enabled
pc-2d-surface-trencin-full-1 pc-2d-surface-trencin-full-2
pc-2d-surface-trencin-zoom-1 pc-2d-surface-trencin-zoom-2

Global map shading when render as a surface is enabled:

With map shading With map shading, only ground, filtering large triangles
pc-2d-surface-trencin-full-2-shading pc-2d-surface-trencin-full-2-ground-shading-filter

Helsinki train station (RGB)

Disabled Enabled
pc-2d-surface-helsinki-1 pc-2d-surface-helsinki-2
pc-2d-surface-helsinki-full-1 pc-2d-surface-helsinki-full-2

Commits tagged with [need-docs] or [FEATURE]

@github-actions github-actions bot added the 3.36 QGIS 3.36 new features label Apr 16, 2024
@github-actions github-actions bot added this to the QGIS 3.40 milestone Apr 16, 2024
@selmaVH1 selmaVH1 added the Size 3 It will take me between 2 hours to half a day label Apr 18, 2024
@selmaVH1 selmaVH1 added this to In progress in Selma Work Planning Apr 18, 2024
@selmaVH1 selmaVH1 moved this from In progress to Review in progress in Selma Work Planning Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.36 QGIS 3.36 new features Size 3 It will take me between 2 hours to half a day
Projects
Selma Work Planning
Review in progress
Development

Successfully merging a pull request may close this issue.

2 participants