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

Change WKBWriter default output dimension to 4 #908

Merged
merged 1 commit into from
May 23, 2023

Conversation

mwtoews
Copy link
Contributor

@mwtoews mwtoews commented May 14, 2023

This potentially breaking change with the WKBWriter is to use output dimension 4.

For example, POINT Z (1.1 2.2 3.3) via writeHEX using defaults:

  • Current: 01010000009A9999999999F13F9A99999999990140 or POINT (1.1 2.2)
  • Proposed: 01010000809A9999999999F13F9A999999999901406666666666660A40 same as input WKT

Also add a few additional tests related to setOutputDimension that didn't seem to be covered.

@pramsey
Copy link
Member

pramsey commented May 14, 2023

Seems reasonable to me, although maybe a little less user facing than the WKT writer change. As long as people are only ever getting the dimensionality they put in, seems like a net reduction in user surprise, which is +1 :)

@mwtoews mwtoews force-pushed the change-wkbwriter-defaults branch from 896a695 to 4360451 Compare May 18, 2023 04:08
@mwtoews mwtoews merged commit 66b552a into libgeos:main May 23, 2023
@mwtoews mwtoews deleted the change-wkbwriter-defaults branch May 23, 2023 20:35
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
@mwtoews mwtoews added this to the 3.12.0 milestone Mar 5, 2024
ejn pushed a commit to dvzgeo/php-geos that referenced this pull request Mar 14, 2024
2, 3, or 4 dimensions. Default since GEOS 3.12 is 4.
see: libgeos/geos#908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants