<div>I found this on the esri website. hope it helps...</div>
<div> </div>
<div>Calculate for each poly the length and bearing of it's longest heddge <br><br>This script is designed to work on polygons having very geometric shapes (like agricultural fields). <br><br>Bearing values : from 0 to 179.99° <br>
<br>0° for N or S; <br>45° for N-E or S-W; <br>90° for E or W; <br>135° for S-E or N-W; <br><br>Example of application : determination of the orientation of the sawing lines in agricultural parcels. We tested it on a sample of a little 100 parcels and we had a correspondence of 84% between observed sawing lines orientations and predicted orientations. This information may be useful in radar imagery analysis. <br>
<br>For our other tools : see our web GIS-TOOLS site at : <br><a href="http://www.mila.ucl.ac.be/logistique/sig/sig-tools/">http://www.mila.ucl.ac.be/logistique/sig/sig-tools/</a><br><br></div>
<div class="gmail_quote">On Wed, Oct 13, 2010 at 12:20 PM, Mike Toews <span dir="ltr"><<a href="mailto:mwtoews@gmail.com">mwtoews@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">It is possible to do this from a low-level environment. GEOS and JTS<br>have a MinimumDiameter function that effectively finds the minimum<br>
axis of elongation and returns it as a linestring. You only need to<br>take the normal angle of the resulting linestring. There is also a<br>related MinimumRectangle function that puts the smallest rectangle on<br>your polygon.<br>
<font color="#888888"><br>-Mike<br></font>
<div>
<div></div>
<div class="h5"><br>On 13 October 2010 10:09, Carson Farmer <<a href="mailto:carson.farmer@gmail.com">carson.farmer@gmail.com</a>> wrote:<br>> Well I'm still not exactly sure it is you want, but I'm fairly sure there<br>
> isn't a plugin to do this sort of thing. You could certainly do this from<br>> the Python console, or the other option would be to convert your polygons to<br>> lines, then use the azimuth tool on those lines?<br>
> Carson<br>><br>> On 13 October 2010 17:29, simogeo <<a href="mailto:simon.georget@gmail.com">simon.georget@gmail.com</a>> wrote:<br>>><br>>> Hi Carson,<br>>><br>>> I call it azimuth but don't give too much importance to the terminology. I<br>
>> just want to know the angle from North And South axis.<br>>><br>>> <a href="http://osgeo-org.1803224.n2.nabble.com/file/n5631658/azi.jpg" target="_blank">http://osgeo-org.1803224.n2.nabble.com/file/n5631658/azi.jpg</a><br>
>><br>>><br>>> Keep it simple with a rectangle for now (forget complex shape)<br>>><br>>><br>>><br>>> --<br>>> View this message in context:<br>>> <a href="http://osgeo-org.1803224.n2.nabble.com/polygon-direction-orientation-tp5631577p5631658.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/polygon-direction-orientation-tp5631577p5631658.html</a><br>
>> Sent from the qgis-user mailing list archive at Nabble.com.<br>>> _______________________________________________<br>>> Qgis-user mailing list<br>>> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>><br>><br>><br>> --<br>> Carson J. Q. Farmer<br>> ISSP Doctoral Fellow<br>
> National Centre for Geocomputation<br>> National University of Ireland, Maynooth,<br>> <a href="http://www.carsonfarmer.com/" target="_blank">http://www.carsonfarmer.com/</a><br>><br>> _______________________________________________<br>
> Qgis-user mailing list<br>> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>><br>_______________________________________________<br>Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
<br></div></div></blockquote></div><br>