[QGIS-Developer] Drawing centerline in polygon as a symbol

Catania, Luke A ERDC-RDE-GRL-VA CIV Luke.A.Catania at erdc.dren.mil
Fri May 3 14:08:56 PDT 2024


I have building with a ridgeline that I am creating in GooJSON format.  I realize I can't combine a polygon footprint and a center line representing the rood ridgeline into one layer as there is no support for multiple geometries.

My first thought for a workaround is just create a zero area polygon for the centerline.  That is LL=UL and LR=UR.  But since I do not really need the ridgeline as a geometry with duplicate attributes, I wonder if I can add a symbol to the polygon layer that represents the ridgeline.  Not sure how to go about this using the geometry of the layer to calculate the center line of the polygon to create the symbol correctly.

Thanks for any assistance,
Luke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20240503/18ae9861/attachment.htm>


More information about the QGIS-Developer mailing list