-
Notifications
You must be signed in to change notification settings - Fork 0
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
PR #22 is breaking... should a major release be issued? #31
Comments
@evetion can we bring back that constructor? |
Yeah, I will make a PR. Although it seems like a weird API, did anyone use it as such? |
I cant remember intentionally doing that. Did it call convert or somrthing? |
@alex-s-gardner Do you actually call julia> a = EPSG(4326)
julia> typeof(a) <: GeoFormatTypes.EPSG
true
julia> a isa GeoFormatTypes.EPSG
true
Yeah, it recognized EPSG requires an Int and EPSG can convert to that directly. Doesn't seem to work out of the box for NTuples though. |
Oh right its still actually an Thats not actually breaking, type parameter equality is not promised. This is the reason to use |
OK, I used both of these in FastGeoProjections but if they are not considered breaking then we're all good. |
How does one assert function input to be a subtype of? source_epsg :: EPSG I would have thought something like but neither work and searching has proven fruitless |
Exactly like you want: function do_thing(source_epsg::EPSG) Although I do sometimes try to write You can derive this logically: Documentation is here. |
#22 is breaking.
using GeoFormatTypes v0.4.1
using GeoFormatTypes v0.4.2
The text was updated successfully, but these errors were encountered: