Skip to content

Commit e0e30a5

Browse files
committed
Fix CI: GeoInterface v1.x compatibility
1 parent 9b247e9 commit e0e30a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/KML.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -726,4 +726,11 @@ for T in vcat(all_concrete_subtypes(KMLElement), all_abstract_subtypes(Object))
726726
end
727727
end
728728

729+
# Add this type-level implementation for GeoInterface v1.x
730+
GeoInterface.isgeometry(::Type{<:Geometry}) = true
731+
732+
# Add the missing ncoord implementations for GeoInterface v1.x
733+
GeoInterface.ncoord(::GeoInterface.LineStringTrait, ls::LineString) = 2
734+
GeoInterface.ncoord(::GeoInterface.LinearRingTrait, lr::LinearRing) = 2
735+
729736
end #module

0 commit comments

Comments
 (0)