Closed evetion closed 3 years ago
I'm not able to reproduce the error in https://github.com/yeesian/ArchGDAL.jl/issues/212#issue-934796989, but it resulted in an error for me nonetheless:
| | |_| | | | (_| | | Version 1.6.0 (2021-03-24)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
julia> using ArchGDAL; const AG=ArchGDAL
ArchGDAL
julia> AG.createlayer(
name="test",
geom=AG.GDAL.wkbPoint,
) do layer
AG.addfielddefn!(layer, "test", convert(AG.OGRFieldType, String))
end
ERROR: TypeError: in keyword argument geom, expected ArchGDAL.OGRwkbGeometryType, got a value of type GDAL.OGRwkbGeometryType
Stacktrace:
[1] createlayer(::var"#3#4"; kwargs::Base.Iterators.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:name, :geom), Tuple{String, GDAL.OGRwkbGeometryType}}})
@ ArchGDAL ~/.julia/packages/ArchGDAL/IuyJL/src/context.jl:265
[2] top-level scope
@ REPL[2]:1
Here's the environment:
(@v1.6) pkg> st
Status `~/.julia/environments/v1.6/Project.toml`
[4c88cf16] Aqua v0.5.0
[c9ce4bd3] ArchGDAL v0.7.0
[6e4b80f9] BenchmarkTools v0.5.0
[12aac903] BinaryBuilder v0.3.3
[fa961155] CEnum v0.4.1
[3da002f7] ColorTypes v0.11.0
[a93c6f00] DataFrames v1.0.1
[3c3547ce] DiskArrays v0.2.7
[e30172f5] Documenter v0.26.3
[add2ef01] GDAL v1.2.1
[cf35fbd7] GeoInterface v0.5.5
[a09fc81d] ImageCore v0.9.0
[d8c32880] ImageInTerminal v0.4.6
[98e50ef6] JuliaFormatter v0.13.10
[32113eaa] PkgBenchmark v0.2.10
[91a5bcdd] Plots v1.13.2
[295af30f] Revise v3.1.15
[aa65fe97] SnoopCompile v2.6.0
[e2b509da] SnoopCompileCore v2.5.2
[bd369af6] Tables v1.4.2
[d3a6a179] TerminalExtensions v0.4.0
Am now able to reproduce when I replace AG.GDAL.wkbPoint
with AG.wkbPoint
in https://github.com/yeesian/ArchGDAL.jl/issues/212#issue-934796989.
In upgrading GeoDataFrames to ArchGDAL 0.7 (https://github.com/evetion/GeoDataFrames.jl/pull/21) I hit a segmentation fault. I can reproduce it to the following code on macOS when using Julia 1.6. 1.7 seems to work, but most of the platforms fail the CI in the PR.
results in