Skip to content

Commit b22b8ae

Browse files
authored
use isdefined instead
1 parent b4ad832 commit b22b8ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/GeometryBasicsGeoInterfaceExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ function _collect_with_type(::Type{PT}, geom) where {PT <: Point{2}}
160160
end
161161

162162
# coordtype implementation - GeometryBasics encodes coordinate type in eltype
163-
if :coordtype in names(GeoInterface; all = true)
163+
if isdefined(GeoInterface, :coordtype)
164164
# For types with coordinate type T as a type parameter
165165
GeoInterface.coordtype(::GeoInterface.AbstractGeometryTrait, geom::Point{Dim,T}) where {Dim,T} = T
166166
GeoInterface.coordtype(::GeoInterface.AbstractGeometryTrait, geom::AbstractGeometry{Dim,T}) where {Dim,T} = T

0 commit comments

Comments
 (0)