-
Notifications
You must be signed in to change notification settings - Fork 13
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
some editing of #33 #49
Conversation
This fits the header description better, and is the same filename as used for Tables.jl
This makes it more clear what the unused argument is supposed to be.
One thing I want to make sure, in the test implementation there was a
That should be a Base.convert right? That is what I did here. |
Probably not. I struggled with this myself, but we cannot define it here without overriding |
Yeah that's a little tricky. Can we internally do: Base.convert(::Type, ::AbstractGeometryTrait, geom) = error("some comvert error asking for a method to be defined") And just get packages to define:
(or make another macro like with plots) |
export the traits
@rafaqz @visr Base.convert(::Type{X}, ::LineStringTrait, geom::X) = geom # fast fallthrough without conversion Otherwise the convert will handle the geom as if it's another geometry altogether, getting coordinates, making copies, etc. |
I see now only Does that mean that these can be removed? GeoInterface.jl/src/interface.jl Line 564 in e34d37e
|
Nothing major, but I'm making some edits as I go over the current status of the #33 branch (which looks quite good overall!).