Skip to content

geotiff-geokeys-to-proj4 / toProj4

Function: toProj4() ​

ts
function toProj4(geoKeys): object;

Converts GeoTIFF's geokeys to Proj4 string and produces associated data

Parameters ​

ParameterTypeDescription

geoKeys

GeoKeys

Geokeys

Returns ​

Proj4 string and associated data

conversionParameters ​

ts
conversionParameters: CoordinateConversionParameters;

Coordinates conversion parameters

convertCoordinates ​

ts
convertCoordinates: (coord) => ConvertedCoordinate;

convertCoordinates but for these exact geokeys

Parameters ​

ParameterType

coord

SourceCoordinate

Returns ​

ConvertedCoordinate

coordinatesUnits ​

ts
coordinatesUnits: CoordinateUnits;

Coordinates units after conversion. See CoordinateUnits for more info.

errors ​

ts
errors: ConversionErrors;

Errors that have occurred while processing geokeys.

If no errors have occurred then this will be an empty object.

isGCS ​

ts
isGCS: boolean;

If true then geographic (either 2D or 3D) CRS is used.

proj4 ​

ts
proj4: string = proj;

Proj4 string