alex-s-gardner / FastGeoProjections.jl

A julia repository aimed a providing efficient geographic projections for production scale workflows
MIT License
6 stars 0 forks source link

Fix show when Proj is used #21

Open alex-s-gardner opened 1 year ago

alex-s-gardner commented 1 year ago
FastGeoProjections.Transformation("EPSG:3857", "EPSG:32609")
Error showing value of type Transformation:
ERROR: type #14#20 has no field source_epsg
Stacktrace:
  [1] getproperty(x::Function, f::Symbol)
    @ Base ./Base.jl:37
  [2] show(io::IOContext{Base.TTY}, trans::Transformation)
    @ FastGeoProjections ~/.julia/packages/FastGeoProjections/vdPhA/src/coord.jl:62
  [3] show(io::IOContext{Base.TTY}, #unused#::MIME{Symbol("text/plain")}, x::Transformation)
    @ Base.Multimedia ./multimedia.jl:47
  [4] (::REPL.var"#55#56"{REPL.REPLDisplay{REPL.LineEditREPL}, MIME{Symbol("text/plain")}, Base.RefValue{Any}})(io::Any)
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:276
  [5] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:557
  [6] display(d::REPL.REPLDisplay, mime::MIME{Symbol("text/plain")}, x::Any)
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:262
  [7] display(d::REPL.REPLDisplay, x::Any)
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:281
  [8] display(x::Any)
    @ Base.Multimedia ./multimedia.jl:340
  [9] #invokelatest#2
    @ ./essentials.jl:816 [inlined]
 [10] invokelatest
    @ ./essentials.jl:813 [inlined]
 [11] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:305
 [12] (::REPL.var"#57#58"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:287
 [13] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:557
 [14] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:285
 [15] (::REPL.var"#do_respond#80"{Bool, Bool, REPL.var"#93#103"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:899
 [16] (::VSCodeServer.var"#101#104"{REPL.var"#do_respond#80"{Bool, Bool, REPL.var"#93#103"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt}})(mi::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ VSCodeServer ~/.vscode-server/extensions/julialang.language-julia-1.51.2/scripts/packages/VSCodeServer/src/repl.jl:122
 [17] #invokelatest#2
    @ ./essentials.jl:816 [inlined]
 [18] invokelatest
    @ ./essentials.jl:813 [inlined]
 [19] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/LineEdit.jl:2647
 [20] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL /net/devon/mnt/devon2-r1/devon0/gardnera/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:1300
 [21] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL ./task.jl:514