-
Notifications
You must be signed in to change notification settings - Fork 10
JSON3 Array doesn't work with GeoInterface #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why is it that no other package will accept it? The docs say
For say a LineString we return a JSON3.Array of JSON3.Array, For say a MultiPolygon there are more nested arrays, like |
I should be more specific, most packages hardcode Vector{Vector{Float64}}. |
I thought |
@evetion do you know witch packages use |
I ran into this issue with conversion to |
Ok, thinking about this some more, it's two issues:
julia> v
1-element Vector{JSON3.Array}:
JSON3.Array[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]]
julia> copy.(v)
1-element Vector{Vector{Vector{Float64}}}:
[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]] |
So we really have to materialize at least the geometries from JSON3.jl to real Arrays. Although keeping the That would solve this issue as well, although it would still be good if ArchGDAL accepted |
In the sense that an
GeoInterface.coordinates
will yield a JSON3 Array that no other package will parse as the coordinates they are.The text was updated successfully, but these errors were encountered: