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 WKTWriter default output dimension to 4 and trim to 'on' #915

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

mwtoews
Copy link
Contributor

@mwtoews mwtoews commented May 24, 2023

This potentially breaking change with the WKTWriter is to use output dimension 4 and trim 'on'.

For example, POINT Z (1.1 2.2 3.3) output using defaults are:

  • Current: POINT (1.1000000000000001 2.2000000000000002)
  • Proposed: POINT Z (1.1 2.2 3.3)

Other details:

  • From the C++ API, both toText() and toString() will also use the new defaults; add tests/unit/geom/Geometry/toTextTest.cpp for this coverage
  • Deprecated GEOSGeomToWKT (and GEOSGeomToWKT_r) should keep the previous defaults showing untrimmed 2D outputs, which is checked with tests/unit/capi/GEOSGeomToWKTTest.cpp

@mwtoews mwtoews force-pushed the change-wktwriter-defaults branch from e64f366 to 5f6c5fc Compare May 31, 2023 03:06
@pramsey pramsey merged commit e4639e4 into libgeos:main Jun 7, 2023
27 checks passed
@pramsey
Copy link
Member

pramsey commented Jun 7, 2023

I've brought this in, hopefully downstream sees not too much test churn.

@mwtoews mwtoews deleted the change-wktwriter-defaults branch June 26, 2023 21:52
@BuonOmo
Copy link
Contributor

BuonOmo commented Aug 23, 2023

@pramsey shouldn't these kind of changes be part of majors? Asking because this is breaking the RGeo ruby gem based on GEOS, and being maintainer I'd like to know when to expect these kind of breaking changes!

@pramsey
Copy link
Member

pramsey commented Aug 23, 2023

I would tend to think not? We have behaviour changes every release, but what I've internalize as "breaking" change has been C API change. Once you cannot plunk a GEOS binary on top of another one. Things like "what outputs are produced" are in flux (behaviour of concave hull, etc) and there's really no way to work on the library without that happening. I sympathize with your point of view, but I don't know if I quite agree.

@BuonOmo
Copy link
Contributor

BuonOmo commented Aug 23, 2023

Hm okay this make sense for sure. I'll subscribe to the gh releases then. In case there is some kind of information given before releasing, my email is buonomo dot ulysse at gmail dot com!

@pramsey
Copy link
Member

pramsey commented Aug 23, 2023

The ideal place to keep your finger on the pulse of GEOS is the mailing list, https://lists.osgeo.org/listinfo/geos-devel (yes, we are very old). There you will see pre-release announcements, etc, and other downstream packagers for things like Python, R, Swift, etc.

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
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.

None yet

3 participants