diff --git a/src/geo_interface.jl b/src/geo_interface.jl index 67cc15f..d0f405a 100644 --- a/src/geo_interface.jl +++ b/src/geo_interface.jl @@ -379,3 +379,9 @@ for f in ( @eval $f(geom1::AbstractGeometry, geom2::AbstractGeometry, args...; kw...) = throw(MethodError($f, (geom1, geom2, args...))) end + +# coordtype implementations - guarded against old GeoInterface versions +if :coordtype in names(GeoInterface; all = true) + # LibGEOS always uses Float64 for coordinates + GeoInterface.coordtype(::GeoInterface.AbstractGeometryTrait, ::T) where {T <: AbstractGeometry} = Float64 +end