Skip to content

show throws error #182

@alex-s-gardner

Description

@alex-s-gardner
using LibGEOS
using GeoInterface

poly1 = readgeom("POLYGON((38.84131442029829 1.087773454530093, 38.82828975332892 1.1534829078297562, 38.833114884730286 1.2302443840661303, 38.857643498575655 1.3048208653701125, 38.90093297399075 1.3743462374022573, 38.961319720712375 1.4361482534990728, 39.036483109929314 1.487851286475756, 39.12353465474607 1.5274677234922893, 39.21912901311439 1.5534744737103159, 39.31959254745212 1.564871623150798, 39.42106450047527 1.5612209558561294, 39.519645361935275 1.5426628396065138, 39.61154672461102 1.5099108168985897, 39.69323687067375 1.4642241124461057, 39.760337858535955 1.4083897785027137, 39.759945439578324 1.4090107335064432, 39.7607788164885 1.4081772811813624, 39.761137176442 1.4077246787640094, 39.761576493622634 1.4073591299917694, 39.81393934007304 1.341501827225532, 39.814491623499215 1.3403398747538025, 39.81815391594606 1.3357145944656077, 39.82423076540375 1.3220172154191197, 39.824836051752484 1.3222151557015527, 39.82816938508582 1.3163814883409, 39.83636786717536 1.2967499379235348, 39.841362990963425 1.2878524492045385, 39.842196324296765 1.2861856990830314, 39.843096669343 1.2842782437992493, 39.84349872784249 1.2843702792200637, 39.84516539450916 1.280203440651211, 39.84503420894745 1.2801734109430831, 39.84869046063021 1.272427366279949, 39.852023793963546 1.2649270311773144, 39.871476293294506 1.2056293087112304, 39.876428332332345 1.1921564876447208, 39.877165464091185 1.1860048885956036, 39.88185486545126 1.1711968267098076, 39.888208390560635 1.1099999987606257, 39.888208390560635 1.104166665433788, 39.87825116164332 1.0276917231024651, 39.848762125614584 0.9541573521182327, 39.80087452959138 0.8863890449263405, 39.73642866703319 0.8269906225497637, 39.65790115629648 0.7782442461521369, 39.568309765580125 0.7420227777319104, 39.47109744178593 0.7197178521013263, 39.36999999999999 0.7121864245412132, 39.26890255821406 0.7197178521013263, 39.171690234419856 0.7420227777319104, 39.082098843703506 0.7782442461521368, 39.0035713329668 0.8269906225497637, 38.939125470408605 0.8863890449263405, 38.891237874385396 0.9541573521182327, 38.87926566788394 0.984011262487962, 38.87235765515061 0.996850444416753, 38.86834514338819 1.0109215360318642, 38.86290430343064 1.021411526245643, 38.85950701135237 1.0349578115063978, 38.85105647234457 1.0579474759346226, 38.845020198132 1.0724864251484967, 38.84335353146532 1.0774862655867834, 38.84274383572908 1.0805621390768665, 38.84190515699134 1.0828437872690762, 38.84131442029829 1.087773454530093))")

poly2 = GeoInterface.convert(GeoInterface, poly1)

throws this error:

ERROR: UndefVarError: `g` not defined in `GeoInterface.Wrappers`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] show(io::IOContext{Base.TTY}, ::MIME{Symbol("text/plain")}, geom::GeoInterface.Wrappers.Polygon{false, false, Polygon, Nothing, Nothing}; show_mz::Bool, screen_ncols::Int64)
    @ GeoInterface.Wrappers ~/Documents/GitHub/GeoInterface.jl/src/wrappers.jl:237
  [2] show(io::IOContext{Base.TTY}, ::MIME{Symbol("text/plain")}, geom::GeoInterface.Wrappers.Polygon{false, false, Polygon, Nothing, Nothing})
    @ GeoInterface.Wrappers ~/Documents/GitHub/GeoInterface.jl/src/wrappers.jl:175
  [3] (::OhMyREPL.var"#15#16"{REPL.REPLDisplay{REPL.LineEditREPL}, MIME{Symbol("text/plain")}, Base.RefValue{Any}})(io::IOContext{Base.TTY})
    @ OhMyREPL ~/.julia/packages/OhMyREPL/gPPKm/src/output_prompt_overwrite.jl:23
  [4] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
    @ REPL ~/.julia/juliaup/julia-1.11.2+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/REPL.jl:661
  [5] display
    @ ~/.julia/packages/OhMyREPL/gPPKm/src/output_prompt_overwrite.jl:6 [inlined]
  [6] display(d::REPL.REPLDisplay, x::Any)
    @ REPL ~/.julia/juliaup/julia-1.11.2+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/REPL/src/REPL.jl:372
  [7] display(x::Any)
    @ Base.Multimedia ./multimedia.jl:340
  [8] #invokelatest#2
    @ ./essentials.jl:1055 [inlined]
  [9] invokelatest
    @ ./essentials.jl:1052 [inlined]
 [10] (::VSCodeServer.var"#69#74"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.cursor/extensions/julialang.language-julia-1.127.2/scripts/packages/VSCodeServer/src/eval.jl:237
 [11] withpath(f::VSCodeServer.var"#69#74"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
    @ VSCodeServer ~/.cursor/extensions/julialang.language-julia-1.127.2/scripts/packages/VSCodeServer/src/repl.jl:276
 [12] (::VSCodeServer.var"#68#73"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.cursor/extensions/julialang.language-julia-1.127.2/scripts/packages/VSCodeServer/src/eval.jl:179
 [13] hideprompt(f::VSCodeServer.var"#68#73"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
    @ VSCodeServer ~/.cursor/extensions/julialang.language-julia-1.127.2/scripts/packages/VSCodeServer/src/repl.jl:38
 [14] #67
    @ ~/.cursor/extensions/julialang.language-julia-1.127.2/scripts/packages/VSCodeServer/src/eval.jl:150 [inlined]
 [15] with_logstate(f::VSCodeServer.var"#67#72"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, logstate::Base.CoreLogging.LogState)
    @ Base.CoreLogging ./logging/logging.jl:522
 [16] with_logger
    @ ./logging/logging.jl:632 [inlined]
 [17] (::VSCodeServer.var"#66#71"{VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer ~/.cursor/extensions/julialang.language-julia-1.127.2/scripts/packages/VSCodeServer/src/eval.jl:263
 [18] #invokelatest#2
    @ ./essentials.jl:1055 [inlined]
 [19] invokelatest(::Any)
    @ Base ./essentials.jl:1052
 [20] (::VSCodeServer.var"#64#65")()
    @ VSCodeServer ~/.cursor/extensions/julialang.language-julia-1.127.2/scripts/packages/VSCodeServer/src/eval.jl:34

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions