VisiOmatic web client

Class

TPV

Extends

new TPV(header, optionsopt) → {TPV}

Distorted gnomonic (tangential) projection.

Parameters

  • header object

    JSON representation of the image header.

  • options projParam <optional>

    Projection options: see Zenithal.

Returns

  • TPV

    Instance of a TPV projection.

Source

Methods

privatestatic

_dRedToRed(dred) → {leaflet.Point}

Convert distorted reduced coordinates to reduced coordinates using a TPV polynomial.

Parameters

  • dred leaflet.Point

    Distorted reduced coordinates.

Returns

  • leaflet.Point

    Reduced coordinates.

Source

privatestatic

_pixToRed(pix) → {leaflet.Point}

Convert pixel coordinates to reduced coordinates, taking into account distortions.

Parameters

  • pix leaflet.Point

    Pixel coordinates.

Returns

  • leaflet.Point

    Reduced coordinates.

Source

privatestatic

_redToDRed(red) → {leaflet.Point}

Convert reduced coordinates to distorted reduced coordinates using second order approximation to the inverted TPV polynomial.

Parameters

  • red leaflet.Point

    Reduced coordinates.

Returns

  • leaflet.Point

    Distorted reduced coordinates.

Source

privatestatic

_redToPix(red) → {leaflet.Point}

Convert reduced coordinates to pixel coordinates, taking into account geometric distortions.

Parameters

  • red leaflet.Point

    Reduced coordinates.

Returns

  • leaflet.Point

    Pixel coordinates.

Source