Re: [postgis-users] Computing the lenght of a building's edges looking on a direction

2015-06-18 Thread Paolo Crosato
Thank you very much! I'll try with this approach. Regards, Paolo Il 17/06/2015 18:24, Rémi Cura ha scritto: Hm, quite easy normally (method proposed above won't work). First break your polygon into segment, for instance with

[postgis-users] Computing the lenght of a building's edges looking on a direction

2015-06-17 Thread Paolo Crosato
Hi, I have a set of 2d polygons representing buildings. For each one, I have to find the lenght of the edges that look towards north. Here http://imgur.com/HgpO2yH there is a small picture with a test case, I have to compute the lenght of the red edges. Has anybody any suggestion on how to

Re: [postgis-users] Computing the lenght of a building's edges looking on a direction

2015-06-17 Thread Rémi Cura
Hm, quite easy normally (method proposed above won't work). First break your polygon into segment, for instance with https://github.com/Remi-C/_utilities/blob/master/postgis/rc_DumpSegments.sql Then, for each segment, compute the angle between first and last point, using ST_Azimuth, and