[QGIS-Developer] 3D Polygons in PYQGIS

Jean Garcia jean.garcia at vcomm-eng.com
Wed May 29 06:48:30 PDT 2024


Sorry for the confusion my request might have created.
I am quite new to QGIS and have had to do a lot of online research with not much success. (mostly vaguely searching through QGIS Documentation)

The project I am working on is to generate a layer based on given parameters, one of said parameters being the slope of each layer's Z Values.
	(one said layer being stated as a slope of 20 to 1 for a horizontal distance of 4,000 ft)
With said slope I wish to make the 2D layers I have already generated appear in a 3D view.

I did some research into the drape tool, and while I do believe it could work my issue is how would I create the raster layer with the Z values?
Since the Z values would depend entirely on the different parameters, it would not be set Z values. 
	(What even is the function to create the raster layer?)

My current thinking is to calculate the Z values based on the slope and starting height of each layer.
How do you think I should go around doing so?

Thanks,
Jean A. Garcia

-----Original Message-----
From: Nyall Dawson <nyall.dawson at gmail.com> 
Sent: Sunday, May 26, 2024 6:22 PM
To: Jean Garcia <jean.garcia at vcomm-eng.com>
Cc: qgis-developer at lists.osgeo.org
Subject: Re: [QGIS-Developer] 3D Polygons in PYQGIS

On Fri, 24 May 2024 at 06:09, Jean Garcia via QGIS-Developer <qgis-developer at lists.osgeo.org> wrote:
>
> Good Afternoon,
>
>
>
> I am currently working on a project that generates a 3D image of a layer. Is it still not possible to generate a 3D polygon through PYQGIS?

What exactly are you trying to do? There's many ways this request could be interpreted.

(Maybe the "drape" tool from the processing toolbox does what you need?)

Nyall

>
> I have all the slope values, etc. I have also already made the polygon layers which I want to convert to 3D.
>
> Been looking around and haven't found any solutions that have been able to help me so this is my last resort before I give up.
>
> FYI. I am on version 3.28. This being the case if it is allowed in newer versions I would still wish to know.
>
>
>
> Many Thanks.
>
>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the QGIS-Developer mailing list