Package org.locationtech.jtsexample.geom
Class PrecisionModelExample
java.lang.Object
org.locationtech.jtsexample.geom.PrecisionModelExample
An example showing the results of using different precision models
in computations involving geometric constructions.
A simple intersection computation is carried out in three different
precision models (Floating, FloatingSingle and Fixed with 0 decimal places).
The input is the same in all cases (since it is precise in all three models),
The output shows the effects of rounding in the single-precision and fixed-precision
models.
- Version:
- 1.7
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
difference
(String wktA, String wktB, PrecisionModel pm) void
example1()
void
example2()
void
intersection
(String wktA, String wktB, PrecisionModel pm) static void
void
run()
-
Constructor Details
-
PrecisionModelExample
public PrecisionModelExample()
-
-
Method Details
-
main
-
run
- Throws:
ParseException
-
example1
- Throws:
ParseException
-
example2
- Throws:
ParseException
-
intersection
- Throws:
ParseException
-
difference
- Throws:
ParseException
-