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

Refactor GeoInterface implementation. #161

Merged
merged 4 commits into from
Oct 15, 2023
Merged

Refactor GeoInterface implementation. #161

merged 4 commits into from
Oct 15, 2023

Conversation

evetion
Copy link
Member

@evetion evetion commented Mar 12, 2023

Should partially fix #160.

Made ngeom to be stable, was a Union{Int64, Int32} before. coordinates(multipolygon) can now be correctly inferred.

It's a bit ugly to define thing(AbstractPoint, NonPoint), but it's required for the ambiguity checks. Might be good to understand why this is required.

Similarly, redefining coordinates here for both all geometries and multigeometries makes it inferrable. Julia really doesn't seem to like type inference through recursion.

@evetion evetion requested a review from rafaqz March 12, 2023 17:49
src/geo_interface.jl Outdated Show resolved Hide resolved
src/geo_interface.jl Outdated Show resolved Hide resolved
src/geos_types.jl Show resolved Hide resolved
@rafaqz
Copy link
Member

rafaqz commented Oct 4, 2023

Would be good to merge this...

@evetion
Copy link
Member Author

evetion commented Oct 4, 2023

Thanks for the bump. Will try to address your comments later this week.

@evetion
Copy link
Member Author

evetion commented Oct 15, 2023

@rafaqz This should be good to go now.

@rafaqz rafaqz merged commit 6c0d002 into master Oct 15, 2023
@visr visr deleted the fix/type-instability branch October 15, 2023 13:23
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.

Type Instability
2 participants