-
Notifications
You must be signed in to change notification settings - Fork 19
stop using Base.convert #66
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -606,10 +606,10 @@ coordinates(obj) = coordinates(trait(obj), obj) | |
| """ | ||
| convert(type::CustomGeom, geom) | ||
| Convert `geom` into the `CustomGeom` type if both geom as the CustomGeom package | ||
| have implemented GeoInterface. | ||
| Create a `CustomGeom` from any `geom` that implements the GeoInterface. | ||
| """ | ||
| convert(T, geom) = convert(T, geomtrait(geom), geom) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this was changed to
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Noone suggested that you may misunderstand this PR. If we invalidate anything with But we are all on board with using the package |
||
| convert(::Type{T}, x::T) where {T} = x # no-op | ||
|
|
||
| """ | ||
| astext(geom) -> WKT | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method is weird, but not actually a performance problem because the Julia compiler will never insert invocations to a three-argument
Base.convertmethod