[Qgis-user] FW: [QGIS-Developer] 3D Polygons in PYQGIS
Jean Garcia
jean.garcia at vcomm-eng.com
Tue Jun 4 06:43:32 PDT 2024
Good Morning!
I had submitted a question about the usage of 3D functions through PYQGIS (Conversation forwarded below*).
I attempted the usage of the recommended drape function through PYQGIS and have not had much success.
(Mainly, how would I create the raster layer from a constant slope?)
I assume many of my issues has come from me not knowing much about PYQGIS as I am relatively new to the environment.
This being the case how would I create a 3D layer in which the z values are determined by a constant slope?
(How would I even determine the start/end of said slope?)
Any feedback on my current progress is greatly appreciated!
Many Thanks,
Jean Garcia
-----Original Message-----
From: QGIS-Developer <qgis-developer-bounces at lists.osgeo.org> On Behalf Of Jean Garcia via QGIS-Developer
Sent: Wednesday, May 29, 2024 9:49 AM
To: Nyall Dawson <nyall.dawson at gmail.com>
Cc: qgis-developer at lists.osgeo.org
Subject: Re: [QGIS-Developer] 3D Polygons in PYQGIS
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
_______________________________________________
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-User
mailing list