Open
Description
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
Labels
No labels