You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to follow the example here, but I get errors:
GMT.mk_codes_values expects a Vector{String}, however paises[!, 2] is a Vector{String3}. Perhaps one solution would be to make GMT.mk_codes_values expect a Vector{AbstractString}? Converting it to a Vector{String} makes that call work.
The call to plot() a bit below fails:
ERROR: MethodError: no method matching palette_init(::Ptr{Nothing}, ::Vector{GMTdataset{Float64, 2}})
The function `palette_init` exists, but no method is defined for this combination of argument types.
Closest candidates are:
palette_init(::Ptr{Nothing}, ::GMTcpt)
@ GMT ~/.julia/packages/GMT/3I1CI/src/gmt_main.jl:1245
Further down, the call countries = gmtread("/vsicurl/https://github.com/datasets/geo-countries/raw/master/data/countries.geojson") fails, because the master branch on that repository was renamed to main (this is an easy fix, just substitute master with main in the URL and it works).
The text was updated successfully, but these errors were encountered:
I have fixed the bug in latest GMT.jl version but stump in a follow up problem. The truth is that I don't remember how that example has ever worked. The problem is that the number of levels (pod density) is different from the number of countries, which is normal since countries can have many polygons (think on islands). I must have had a solution to this in a previous version but can't find it. It seems that I must reinvent one.
I try to follow the example here, but I get errors:
GMT.mk_codes_values
expects aVector{String}
, howeverpaises[!, 2]
is aVector{String3}
. Perhaps one solution would be to makeGMT.mk_codes_values
expect aVector{AbstractString}
? Converting it to aVector{String}
makes that call work.plot()
a bit below fails:countries = gmtread("/vsicurl/https://github.com/datasets/geo-countries/raw/master/data/countries.geojson")
fails, because themaster
branch on that repository was renamed tomain
(this is an easy fix, just substitutemaster
withmain
in the URL and it works).The text was updated successfully, but these errors were encountered: