niclasmattsson / GlobalEnergyGIS

Generates input data for energy models on renewable energy in arbitrary world regions using public datasets. Written in Julia 1.x.
MIT License
64 stars 24 forks source link

Cannot create region maps (`transform` not defined) #6

Open euronion opened 4 years ago

euronion commented 4 years ago

When running createmaps(<region>) I run into the following warning and error. No map is created to the GlobalEnergyGIS/output/ directory:

julia> createmaps("Europe8")
WARNING: both DataFrames and GeoMakie export "transform"; uses of it in module GlobalEnergyGIS must be qualified
Mapping colors to regions (avoid same color in adjacent regions)...

Projecting coordinates (Mollweide)...

Finding interregional transmission lines...

Onshore map...
...constructing map...
[ Info: Makie/AbstractPlotting is caching fonts, this may take a while. Needed only on first run!
...drawing transmission lines...
ERROR: UndefVarError: transform not defined
Stacktrace:
 [1] createmap(::String, ::Array{Int16,2}, ::Array{Symbol,1}, ::Array{Float64,1}, ::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}, ::Array{ColorTypes.RGB{Float64},1}, ::Proj4.Projection, ::Proj4.Projection, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Bool,2}, ::Array{Bool,2}; lines::Bool, labels::Bool, resolutionscale::Int64, textscale::Int64, legend::Bool) at /home/<home>/.julia/packages/GlobalEnergyGIS/gFPzK/src/mapping.jl:35
 [2] createmaps(::String; scenarioyear::String, lines::Bool, labels::Bool, resolutionscale::Int64, textscale::Int64, randseed::Int64) at /home/<home>/.julia/packages/GlobalEnergyGIS/gFPzK/src/mapping.jl:95
 [3] createmaps(::String) at /home/<home>/.julia/packages/GlobalEnergyGIS/gFPzK/src/mapping.jl:67
 [4] top-level scope at REPL[17]:1