Skip to content

Commit 7080beb

Browse files
committed
fix
1 parent 2daf2b2 commit 7080beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/geointerface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ GI.convert(::Type{<:MultiPolygon}, ::GI.MultiPolygonTrait, geom) =
6464

6565
GI.ncoord(::GI.GeometryCollectionTrait, g::GeometryCollection) = GI.ncoord(first(g))
6666
GI.ngeom(::GI.GeometryCollectionTrait, g::GeometryCollection) = length(g)
67-
GI.getgeom(::GI.GeometryCollectionTrait, g::GeometryCollection, i::Int) =
67+
GI.getgeom(::GI.GeometryCollectionTrait, g::GeometryCollection, i::Int) = geometry(g[i])
6868
function GI.convert(::Type{<:GeometryCollection}, ::GI.GeometryCollectionTrait, geom)
6969
geometries = [GI.convert(Val{:GeoJSON}(), g) for g in GI.getgeoms(geom)]
7070
GeometryCollection(; geometries)

0 commit comments

Comments
 (0)