Csaba Ringhofer has uploaded this change for review. ( 
https://gerrit.cloudera.org/25610


Change subject: IMPALA-14593: Use counter-clockwise winding for polygon 
exterior rings
......................................................................

IMPALA-14593: Use counter-clockwise winding for polygon exterior rings

Switch polygon2d, the boost::geometry polygon type used by the WKB
geometry code, from clockwise to counter-clockwise exterior rings, with
holes clockwise. This is the more common convention, the right-hand rule
of OGC and GeoJSON.

Reading WKB is not affected by the winding of the input: the polygon
readers call bg::correct(), which reorients the rings to the polygon2d
convention. WriteWkbBox() emits its rectangle in CCW order so that the
written polygon stays valid under the new convention.

Split from https://gerrit.cloudera.org/#/c/24540/

Change-Id: I98a864717ff62509001131ca73f5402b8737b4df
Assisted-by: Claude Opus 5.5 (Claude Code)
---
M be/src/exprs/geo/boost-common.h
M be/src/exprs/geo/wkb-serialization-test.cc
M be/src/exprs/geo/wkb-serialization.cc
3 files changed, 6 insertions(+), 5 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/10/25610/1
--
To view, visit https://gerrit.cloudera.org/25610
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I98a864717ff62509001131ca73f5402b8737b4df
Gerrit-Change-Number: 25610
Gerrit-PatchSet: 1
Gerrit-Owner: Csaba Ringhofer <[email protected]>

Reply via email to