[Qgis-user] Auto-adjust profile elevation range in Atlas

Nyall Dawson nyall.dawson at gmail.com
Tue Jul 23 15:56:52 PDT 2024


On Tue, 23 Jul 2024 at 20:29, Roland Spielhofer via QGIS-User
<qgis-user at lists.osgeo.org> wrote:
>
> Hi,
> I have a corridor point cloud and a number of cross profiles (linestrings) in my QGIS project.
> I would like to make an Atlas that shows a cross section of the pointcloud along every profile.
> So far, so good.
> What I am struggling with is that the elevation range seems to be fixed in all atlas elements so that I see the point cloud on some atlas items where the elevation range matches the point cloud while some items are blank as the point cloud is too high/too low for the elevation range of the elevation profile item.
>
> Is there a way to auto-adjust the z-range per atlas item so that the full z-range of the profile is always shown? The elevation profile panel in the main window does exactly this as default behaviour.

There's no direct option for "auto scale" as of QGIS 3.38. There's
definitely potential here for implementing that in a future QGIS
version!

One potential solution you could use in current releases would be to
take advantage of the data-defined control over the minimum/maximum
elevation in the layout item, so that each page in the atlas can have
a different elevation range. You could either set this to a field and
prepopulate each feature with manually entered min/max elevation
values, or potentially use some fancy QGIS expression magic to
dynamically pick a range based on other existing atlas feature
fields/geometry...!

Nyall


>
> Regards,
> Roland
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


More information about the QGIS-User mailing list