8000 `ENVELOPE` method on linestring does not return `POLYGON` · Issue #369 · rgeo/rgeo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
ENVELOPE method on linestring does not return POLYGON #369
Open
@yogeshsyn23

Description

@yogeshsyn23

Steps to reproduce

 factory = RGeo::Cartesian.factory
 linestring = factory.line_string([factory.point(0, 48), factory.point(0, 82)])
 envelope = linestring.envelope

 p envelope
 #<RGeo::Cartesian::LineImpl:0x2b78c "LINESTRING (0.0 48.0, 0.0 82.0)"> 

Expected behavior

Should return POLYGON.

Actual behavior

Returning LineImpl when the 2 points are on a vertical or a horizontal line

System configuration

Ruby version:
ruby 3.2.2 (2023-03-30 revision e51014f9c0) [arm64-darwin22]

OS:
MacOS Ventura Version 13.3.1

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

      0