[Qgis-user] Re: polygon direction/orientation

Mike Toews mwtoews at gmail.com
Wed Oct 13 10:20:33 PDT 2010


It is possible to do this from a low-level environment. GEOS and JTS
have a MinimumDiameter function that effectively finds the minimum
axis of elongation and returns it as a linestring. You only need to
take the normal angle of the resulting linestring. There is also a
related MinimumRectangle function that puts the smallest rectangle on
your polygon.

-Mike

On 13 October 2010 10:09, Carson Farmer <carson.farmer at gmail.com> wrote:
> Well I'm still not exactly sure it is you want, but I'm fairly sure there
> isn't a plugin to do this sort of thing. You could certainly do this from
> the Python console, or the other option would be to convert your polygons to
> lines, then use the azimuth tool on those lines?
> Carson
>
> On 13 October 2010 17:29, simogeo <simon.georget at gmail.com> wrote:
>>
>> Hi Carson,
>>
>> I call it azimuth but don't give too much importance to the terminology. I
>> just want to know the angle from North And South axis.
>>
>> http://osgeo-org.1803224.n2.nabble.com/file/n5631658/azi.jpg
>>
>>
>> Keep it simple with a rectangle for now (forget complex shape)
>>
>>
>>
>> --
>> View this message in context:
>> http://osgeo-org.1803224.n2.nabble.com/polygon-direction-orientation-tp5631577p5631658.html
>> Sent from the qgis-user mailing list archive at Nabble.com.
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> --
> Carson J. Q. Farmer
> ISSP Doctoral Fellow
> National Centre for Geocomputation
> National University of Ireland, Maynooth,
> http://www.carsonfarmer.com/
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>



More information about the Qgis-user mailing list