Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jts-dev] SingleSidedBuffer does not always use the precision of the precisionmodel

Hello,

we are using JTS 1.16.1. We work with a fixed precision of 7 decimal places. In this case the SingleSidedBuffer returns a wrong result for the following Linestring LINESTRING (439463.2339876 5837174.6271566, 439463.2349202 5837174.6277162, 439463.2349202 5837174.6277161) and a bufferdistance of 10 metres. POINT (439463.2349202 5837174.6277162) of the Linestring is missing in the result.
The cause for the wrong result is the parameter CURVE_VERTEX_SNAP_DISTANCE_FACTOR in the class OffsetSegmentGenerator, which has a precision of 6 decimal places. Is there a way to configure this parameter? Why do you use this parameter and not the precision of the given precisionmodel?

Kind regards
Susanne Köhn

Back to the top