Wednesday 26 August 2015

How to determine the longest side of a polygon in QGIS?


Is there a possibility to determine the longest side of a polygon with QGIS? As I need to do that for hundreds of polygons I would prefer an automized method (like a plugin).



So far my idea was:



  • transforming a polygon into a line

  • cut it on the vertices

  • measure the length

  • here I became stuck, how to become the longest line without checking the whole bunch of lines one by one?


looking forward to your answer




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...