Skip to content

Conversation

@dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Dec 4, 2025

This enhances WKTReader to parse the symbol "Inf" in an ordinate as an IEEE-754 positive infinite value.

The primary goal for this is to allow creating test data for rings and polygons with invalid coordinates. NaN values cannont be used for this, since they are rejected as forming non-closed rings.

Examples

  • POINT (Inf Inf)
  • POLYGON ((Inf Inf, 1 0, 2 2, 0 1, Inf Inf))

@dr-jts dr-jts merged commit d97fd5f into locationtech:master Dec 4, 2025
2 checks passed
@dr-jts dr-jts deleted the add-wktreader-inf-ordinate branch December 4, 2025 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant