Hi Listers,
I can't for the life of me work out the syntax/commands to use in the FieldCalculator->FunctionEditor for extracting vertices.

I have a Polygon layer with Multipolygon rectangles at various rotations.
I need to extract the 4 corner points so that I can calculate (and save in a virtual layer) lines that I can later use with "Processing->Split with lines".

I will google for opening a new virtual layer and saving lines to it, but if that is quick and easy then some help there would also be welcome.

Please can someone point me to a sample functions covering these requirements, or just fill in the gaps below.
No, I'm not asking for someone to just write it for me.

Thanks in advance,
Zoltan
[Having a brain-dead day :-(  ]


   from qgis.core import *
   from qgis.gui import *

   @qgsfunction(args='auto', group='Custom', referenced_columns=[])
   def zCutBox(feature, parent):
        vertices =

        blah blah
        return vertices[0][0]


--

=============================================
Zoltan Szecsei GPrGISc 0031
Geograph (Pty) Ltd.
GIS and Photogrammetric Services

Cape Town, South Africa.

Mobile: +27-83-6004028 (Signal, not WhatsApp)
www.geograph.co.za
=============================================
_______________________________________________
Qgis-user mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to