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

Fix LinearRing Type on Polygon Class #714

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Jeongyong-park
Copy link

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository.
  • I have provided test coverage for my change (where applicable)

Description

It was LinearRing Type not LineString Type in Polygon Class of JTS

@CLAassistant
Copy link

CLAassistant commented Sep 25, 2023

CLA assistant check
All committers have signed the CLA.

@Jeongyong-park
Copy link
Author

@dotnet-policy-service agree

@airbreather
Copy link
Member

It was LinearRing Type not LineString Type in Polygon Class of JTS

Well, it was LineString until locationtech/jts#290.

This would be a breaking change, one which I would not be inclined to take because callers can always use:

  • Shell instead of ExteriorRing
  • Holes instead of InteriorRings
  • Holes[n] instead of GetInteriorRingN(n)

@airbreather
Copy link
Member

airbreather commented Sep 25, 2023

I expected the validation builds to reject this on the basis of the breaking change. It looks like a later version of the .NET SDK will enforce this rule, but it was implemented too recently to make it into the .NET 8.0 SDK (as of RC1):

Edit: looks like it will be in .NET 8.0 SDK after all, starting with RC2, per:

@Jeongyong-park
Copy link
Author

It was LinearRing Type not LineString Type in Polygon Class of JTS

Well, it was LineString until locationtech/jts#290.

This would be a breaking change, one which I would not be inclined to take because callers can always use:

  • Shell instead of ExteriorRing
  • Holes instead of InteriorRings
  • Holes[n] instead of GetInteriorRingN(n)

Ok, It was LineString but now LinearRing Type. isn't it?

스크린샷 2023-09-27 104945 스크린샷 2023-09-27 104623

@FObermaier
Copy link
Member

FObermaier commented Sep 27, 2023

As @airbreather already said, if you need LinearRing now use Shell and Holes[idx] property.
This change has been omitted intentionally to avoid a breaking change.

I'd postpone this to the point where we consider doing a new major release. On that occasion we should remove Shell and Holes property, too.

@FObermaier FObermaier added this to the 3.0 Candidate milestone Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants