When using org.locationtech.jts.simplify, there is a parameter called distanceTolerance. What are the units in for this parameter? For example, feet, meters, km, etc. I'm not sure if this is relavent, but I am using this with a geopackage from gadm.org. The documentation defines this as,

Sets the distance tolerance for the simplification.


The simplification uses a maximum-distance difference algorithm similar to the Douglas-Peucker algorithm.

  • 3
    All units are assumed to be CRS units.
    – geozelot
    Commented Feb 25, 2022 at 8:40

1 Answer 1


JTS always works in the units of the dataset you are using.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.