3

I have a shapefile of polygons, and wish to calculate the maximum length (parallel to flow) and width (perpendicular to flow) - both straight lines. I calculated the mean aspect (i.e. flow direction) using DEM pixels for each polygon. The image below shows what I'm attempting (mw = width, ml = length).

Example

Any ideas on where to start? I've found the 'Bearing Distance to Line' tool, which could potentially help to draw polylines for each polygon but am unsure regarding this and the rest.

Darren J
  • 271
  • 1
  • 10
  • 1
    In your picture, the maximum length isn't a straight line, yet the maximum width is. Is your intention to find the maximum length in a straight line, or following the flow direction? – Adam Jan 09 '17 at 00:15
  • @Adam Sorry, poor choice of image. I have calculated a mean aspect (straight line) and the maximum length needs to be a straight line parallel to this. Cheers – Darren J Jan 09 '17 at 08:18

1 Answers1

2

Have a look at this answer to Calculating maximum distance within polygon in x-direction (east-west direction) in PostGIS?

While the question pertains to PostGIS, the answer provided by whuber describes how to achieve your objective, and includes some R code as an example.

You could try implementing these procedures in ArcGIS Desktop using ArcPy.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Adam
  • 1,383
  • 8
  • 15