Skip to content

Orthodromic Distance fails if points are close together (within some Epsilon) #540

@rwgdrummer

Description

@rwgdrummer

An assertion, active only in integration tests for GeWave, within the GeoTools code checks between ellipsoid distance and spherical distance (both orthodromic distance computations).
d1 = od
d2 = ed
if (abs(d1-d2) < 1E-14) fail.
When the points are close together, the difference in the distance is above 1E-14. 'Close'. in this case is, defined as 0.05 meter. In this case, just use the elliptical distance. This will not occur at the poles, as GeoTool's code uses Ellipsoid in this case (no comparison).
The assertion should be ignored for GeoWaves's purposes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions