Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OffsetCurve produces MultiLineString with 2 contiguous lines #1036

Open
dr-jts opened this issue Jan 28, 2024 · 0 comments
Open

OffsetCurve produces MultiLineString with 2 contiguous lines #1036

dr-jts opened this issue Jan 28, 2024 · 0 comments
Labels

Comments

@dr-jts
Copy link
Contributor

dr-jts commented Jan 28, 2024

In GEOS an offset curve of this geometry produces a MultiLineString with two contiguous lines. In JTS this correctly produces a LineString, with the same coordinates.

bin/geosop -a "LINESTRING (0.39 -0.02, 0.4650008997915482 -0.02, 0.4667128891457749 -0.0202500016082272, 0.4683515425280024 -0.0210000000000019, 0.4699159706879993 -0.0222499999999996, 0.4714061701120011 -0.0240000000000018, 0.4929087886040002 -0.0535958153351002, 0.4968358395870001 -0.0507426457862002, 0.4774061701119963 -0.0239999999999952, 0.476353470688 -0.0222500000000011, 0.4761015425280001 -0.0210000000000007, 0.4766503813740676 -0.0202500058185111, 0.4779990890331232 -0.02, 0.6189999999999996 -0.02, 0.619 -0.0700000000000002, 0.634 -0.0700000000000002, 0.6339999999999998 -0.02, 0.65 -0.02)" offsetCurve N-.002
image

Originally reported as PostGIS 3279.

@dr-jts dr-jts added the Bug label Jan 28, 2024
@dr-jts dr-jts changed the title OffsetCurve produces contiguous MultiLineString OffsetCurve produces MultiLineString with 2 contiguous lines Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant