new TPV(header, optionsopt) → {TPV}
Distorted gnomonic (tangential) projection.
Parameters
-
header
objectJSON representation of the image header.
-
options
projParam<optional>
Projection options: see
Zenithal.
Returns
-
TPVInstance 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.PointDistorted reduced coordinates.
Returns
-
leaflet.PointReduced coordinates.
Source
privatestatic
_pixToRed(pix) → {leaflet.Point}
Convert pixel coordinates to reduced coordinates, taking into account distortions.
Parameters
-
pix
leaflet.PointPixel coordinates.
Returns
-
leaflet.PointReduced 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.PointReduced coordinates.
Returns
-
leaflet.PointDistorted reduced coordinates.
Source
privatestatic
_redToPix(red) → {leaflet.Point}
Convert reduced coordinates to pixel coordinates, taking into account geometric distortions.
Parameters
-
red
leaflet.PointReduced coordinates.
Returns
-
leaflet.PointPixel coordinates.