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 2daf2b2 commit 7080bebCopy full SHA for 7080beb
src/geointerface.jl
@@ -64,7 +64,7 @@ GI.convert(::Type{<:MultiPolygon}, ::GI.MultiPolygonTrait, geom) =
64
65
GI.ncoord(::GI.GeometryCollectionTrait, g::GeometryCollection) = GI.ncoord(first(g))
66
GI.ngeom(::GI.GeometryCollectionTrait, g::GeometryCollection) = length(g)
67
-GI.getgeom(::GI.GeometryCollectionTrait, g::GeometryCollection, i::Int) =
+GI.getgeom(::GI.GeometryCollectionTrait, g::GeometryCollection, i::Int) = geometry(g[i])
68
function GI.convert(::Type{<:GeometryCollection}, ::GI.GeometryCollectionTrait, geom)
69
geometries = [GI.convert(Val{:GeoJSON}(), g) for g in GI.getgeoms(geom)]
70
GeometryCollection(; geometries)
0 commit comments