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 WKTReader typename parsing #786

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

dr-jts
Copy link
Contributor

@dr-jts dr-jts commented Oct 19, 2021

Fixes WKTReader geometry typename parsing to detect and error on extraneous characters between the typename and dimension modifiers suffix.

Fixes a bug in WKBReaderTest which was hidden by the lax parsing.

Also fixes the unnecessary try-catch reported in #785.

Signed-off-by: Martin Davis [email protected]

@dr-jts dr-jts self-assigned this Oct 19, 2021
@dr-jts dr-jts merged commit 6dfa2e0 into locationtech:master Oct 19, 2021
@dr-jts dr-jts deleted the fix-wktreader-typename branch October 19, 2021 18:47
@jodygarnett jodygarnett added this to the 1.19.0 milestone Jun 21, 2022
teleivo added a commit to dhis2/dhis2-core that referenced this pull request Jul 29, 2022
as locationtech/jts parser has either gotten stricter or not reported
such parser errors before locationtech/jts#786
teleivo added a commit to dhis2/dhis2-core that referenced this pull request Jul 29, 2022
as locationtech/jts parser has either gotten stricter or not reported
such parser errors before locationtech/jts#786
teleivo added a commit to dhis2/dhis2-core that referenced this pull request Jul 29, 2022
as locationtech/jts parser has either gotten stricter or not reported
such parser errors before locationtech/jts#786
teleivo added a commit to dhis2/dhis2-core that referenced this pull request Jul 30, 2022
* chore(deps): bump jts.version from 1.18.2 to 1.19.0 in /dhis-2

Bumps `jts.version` from 1.18.2 to 1.19.0.

Updates `jts-core` from 1.18.2 to 1.19.0

Updates `jts-io-common` from 1.18.2 to 1.19.0

---
updated-dependencies:
- dependency-name: org.locationtech.jts:jts-core
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.locationtech.jts.io:jts-io-common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: error parsing event geometry during CSV import

* fix: parsing geometry with leading single quotes

as locationtech/jts parser has either gotten stricter or not reported
such parser errors before locationtech/jts#786

* fix: sonarqube suggestion

Alternatives in regular expressions should be grouped when used with anchors

* Revert "fix: sonarqube suggestion"

This reverts commit 6f3c72c.

as Sonarqube is now saying that I should remove these unecessary groups

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: teleivo <[email protected]>
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.

2 participants