We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5977c7b commit 03012ddCopy full SHA for 03012dd
src/utils/UnitSpherical/point.jl
@@ -55,6 +55,7 @@ UnitSphericalPoint(p::UnitSphericalPoint) = p
55
## handle the GeoInterface case, this is the catch-all method
56
UnitSphericalPoint(v) = UnitSphericalPoint(GI.trait(v), v)
57
UnitSphericalPoint(::GI.PointTrait, v) = UnitSphereFromGeographic()(v) # since it works on any GI compatible point
58
+UnitSphericalPoint(::GI.PointTrait, v::UnitSphericalPoint) = v
59
## finally, handle the case where a vector is passed in
60
## we may want it to go to the geographic pipeline _or_ direct materialization
61
Base.@propagate_inbounds function UnitSphericalPoint(v::AbstractVector{T}) where T
0 commit comments