using ArchGDAL
using GeoJSON
using GeoInterface
g = GeoJSON.read("""
{
"type": "Polygon",
"coordinates": [
[
[100.0, 0.0],
[101.0, 0.0],
[101.0, 1.0],
[100.0, 1.0],
[100.0, 0.0]
]
]
}""")
GeoInterface.convert(ArchGDAL.IGeometry, g)
MethodError: no method matching createpolygon(::Vector{JSON3.Array})
Closest candidates are:
createpolygon() at ~/.julia/packages/ArchGDAL/pPZyn/src/ogr/geometry.jl:1713
createpolygon(::Val) at ~/.julia/packages/ArchGDAL/pPZyn/src/ogr/geometry.jl:1715
createpolygon(::Vector{<:Real}, ::Vector{<:Real}) at ~/.julia/packages/ArchGDAL/pPZyn/src/ogr/geometry.jl:1756
...
MethodError: no method matching createpolygon(::Vector{JSON3.Array}) Closest candidates are: createpolygon() at ~/.julia/packages/ArchGDAL/pPZyn/src/ogr/geometry.jl:1713 createpolygon(::Val) at ~/.julia/packages/ArchGDAL/pPZyn/src/ogr/geometry.jl:1715 createpolygon(::Vector{<:Real}, ::Vector{<:Real}) at ~/.julia/packages/ArchGDAL/pPZyn/src/ogr/geometry.jl:1756 ...