Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Orientation.isCCW exception #878

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Apr 26, 2023

Change behaviour of Orientation.isCCW and GEOSCoordSeq_isCCW to avoid throwing an exception when the input sequence is short (< 4 vertices). This aligns with JTS semantics, and simplifies logic in internal routines. In particular, normalize now works on invalid (short) rings without additional checks.

@dr-jts dr-jts added the Enhancement New feature or feature improvement. label Apr 26, 2023
@dr-jts dr-jts merged commit 6e6afa8 into libgeos:main Apr 26, 2023
27 checks passed
@dr-jts dr-jts deleted the remove-issccw-exception branch April 26, 2023 18:52
@dbaston
Copy link
Member

dbaston commented Apr 30, 2023

Should probably be noted in NEWS as a change in behavior.

@dr-jts
Copy link
Contributor Author

dr-jts commented Apr 30, 2023

Should probably be noted in NEWS as a change in behavior.

Yes, definitely. Thanks for the reminder.

BuonOmo added a commit to rgeo/rgeo that referenced this pull request Aug 23, 2023
The 3.12 include changes in the API responses.
Mainly, WBX Writers now default to three
dimensions instead of two. We follow the
changes, making no breaking change in the
API, but some changes in the responses
given by `#ccw?` and `#simplify_preserve_topology`.

See changes in libgeos:

- libgeos/geos#784
- libgeos/geos#878
- libgeos/geos#908
- libgeos/geos#915

Fixes #360
BuonOmo added a commit to rgeo/rgeo that referenced this pull request Aug 23, 2023
The 3.12 include changes in the API responses.
Mainly, WBX Writers now default to three
dimensions instead of two. We follow the
changes, making no breaking change in the
API, but some changes in the responses
given by `#ccw?` and `#simplify_preserve_topology`.

See changes in libgeos:

- libgeos/geos#784
- libgeos/geos#878
- libgeos/geos#908
- libgeos/geos#915

Fixes #360
BuonOmo added a commit to rgeo/rgeo that referenced this pull request Aug 23, 2023
The 3.12 include changes in the API responses.
Mainly, WBX Writers now default to three
dimensions instead of two. We follow the
changes, making no breaking change in the
API, but some changes in the responses
given by `#ccw?` and `#simplify_preserve_topology`.

See changes in libgeos:

- libgeos/geos#784
- libgeos/geos#878
- libgeos/geos#908
- libgeos/geos#915

Fixes #360
BuonOmo added a commit to rgeo/rgeo that referenced this pull request Aug 24, 2023
The 3.12 include changes in the API responses.
Mainly, WBX Writers now default to three
dimensions instead of two. We follow the
changes, making no breaking change in the
API, but some changes in the responses
given by `#ccw?` and `#simplify_preserve_topology`.

See changes in libgeos:

- libgeos/geos#784
- libgeos/geos#878
- libgeos/geos#908
- libgeos/geos#915

Fixes #360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or feature improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants