[postgis-users] Are there script examples for determine where vertices run clockwise or anti-clockwise?
Marcin Mionskowski
mionskowskimarcin at gmail.com
Wed Feb 16 11:43:23 PST 2022
Assuming simple polygons, composed from exterior ring only (i.e. no
multipolygons), I think that you are looking for a function
{ST_IsPolygonCW|ST_IsPolygonCCW}.
Greetings,
Marcin
śr., 16 lut 2022 o 19:55 Imre Samu <pella.samu at gmail.com> napisał(a):
> > how vertices run? clockwise or anti-clockwise?
>
> maybe the:
> https://postgis.net/docs/ST_Angle.html *"Computes the clockwise angle
> between two vectors."*
> or https://postgis.net/docs/ST_Azimuth.html
>
> regards,
> Imre
>
>
> Shaozhong SHI <shishaozhong at gmail.com> ezt írta (időpont: 2022. febr.
> 16., Sze, 17:06):
>
>> Can we use PostGIS to find out how vertices run? clockwise or
>> anti-clockwise?
>>
>> Regards,
>>
>> David
>> _______________________________________________
>> postgis-users mailing list
>> postgis-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/postgis-users
>>
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20220216/6a53ff08/attachment.html>
More information about the postgis-users
mailing list