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

Add GEOS wrapper for GEOSCoverageSimplifyVW_r #623

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

peterstace
Copy link
Owner

Description

See doc comment in geos/entrypoints.go for what the function does.

Check List

Have you:

  • Added unit tests? Yes.

  • Add cmprefimpl tests? (if appropriate?) N/A.

  • Updated release notes? (if appropriate?) Yes.

Related Issue

  • N/A

See doc comment in `geos/entrypoints.go` for what the function does.
@peterstace peterstace self-assigned this Jun 7, 2024
@@ -1,5 +1,5 @@
.PHONY: all
all: unit lint pgscan cmppg cmpgeos
all: unit lint geos pgscan cmppg cmpgeos
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was accidentally missed in a previous change, so slipping it in here.

},
)
got, err := geos.CoverageSimplifyVW(input.AsGeometry(), 0.001, false)
if err != nil && strings.Contains(err.Error(), "unsupported") {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've used string comparison for a sentinel error, which is not ideal.

I plan to fix this using the same treatment as in #616 (there are a few instances in this package that could benefit from it, so I'll do them all at once).

Copy link
Owner Author

@peterstace peterstace Jun 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peterstace
Copy link
Owner Author

Thanks Albert!

@peterstace peterstace merged commit f5eca62 into master Jun 13, 2024
1 check passed
@peterstace peterstace deleted the coverage_simplify branch June 13, 2024 18:52
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

2 participants