Skip to content

show bug with LibGEOS.Polygon #176

@milankl

Description

@milankl
using GeometryBasics, GeoInterface, GeometryOps, LibGEOS

v = [Point2(0.0, 0.0), Point2(0.0, 1.0), Point2(1.0, 1.0), Point2(1.0, 0.0), Point2(0.0, 0.0)]
p = GeoInterface.Polygon([GeoInterface.LinearRing(v)])
GeometryOps.intersection(GeometryOps.GEOS(), p, p)

hits

Error showing value of type GeoInterface.Wrappers.Polygon{false, false, LibGEOS.Polygon, Nothing, Nothing}:
ERROR: UndefVarError: `g` not defined in `GeoInterface.Wrappers`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
  [1] show(io::IOContext{…}, ::MIME{…}, geom::GeoInterface.Wrappers.Polygon{…}; show_mz::Bool, screen_ncols::Int64)
    @ GeoInterface.Wrappers ~/.julia/packages/GeoInterface/rJdrx/src/wrappers.jl:237
  [2] show(io::IOContext{…}, ::MIME{…}, geom::GeoInterface.Wrappers.Polygon{…})
    @ GeoInterface.Wrappers ~/.julia/packages/GeoInterface/rJdrx/src/wrappers.jl:175

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions