The WKTWriter outputs coordinates rounded to the precision model. Only the maximum number of decimal places necessary to represent the ordinates to the required precision will be output.
The SFS WKT spec does not define a special tag for LinearRings. Under the spec, rings are output as LINESTRINGs. In order to allow precisely specifying constructed geometries, JTS also supports a non-standard LINEARRING tag which is used to output LinearRings.
Double.NaN)Double.NaN)Double.NaN)If none/null is assigned, the precision model of the Geometry.getFactory()
is used.
Note: The precision model is applied to all ordinate values, not just x and y.
Geometry to its Well-known Text representation.
Geometry to process
Geometry to its Well-known Text representation.
Geometry to process
write, but with newlines and spaces to make the well-known text more readable.
Geometry to process
write, but with newlines and spaces to make the well-known text more readable.
Geometry to process