AdsumProjector
Methods
adsumDistanceToMeter
async adsumDistanceToMeter(adsumDistance: number): Promise<number, Error>
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
adsumDistance | number | Yes | - |
Returns:
Type: Promise<number, Error>
adsumToGps
async adsumToGps(position: {x: number, y: number, z: number}): Promise<{lat: number, long: number, alt: number}, Error>
Convert an Adsum world position into an UTM position.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
position | {x: number, y: number, z: number} | Yes | - |
Returns:
Type: Promise<{lat: number, long: number, alt: number}, Error>
adsumToUtm
async adsumToUtm(position: {x: number, y: number, z: number}): Promise<{E: number, N: number, alt: number}, Error>
Convert an Adsum world position into a GPS position.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
position | {x: number, y: number, z: number} | Yes | - |
Returns:
Type: Promise<{E: number, N: number, alt: number}, Error>
gpsToAdsum
async gpsToAdsum(gps: {lat: number, long: number, alt: number}): Promise<{x: number, y: number, z: number}, Error>
Convert a Gps position into a Adsum world position.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
gps | {lat: number, long: number, alt: number} | Yes | - |
Returns:
Type: Promise<{x: number, y: number, z: number}, Error>
gpsToUtm
async gpsToUtm(gps: {lat: number, long: number, alt: number}): Promise<{E: number, N: number, alt: number}, Error>
Convert a Gps position into an UTM position.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
gps | {lat: number, long: number, alt: number} | Yes | - |
Returns:
Type: Promise<{E: number, N: number, alt: number}, Error>
meterToAdsumDistance
async meterToAdsumDistance(meter: number): Promise<number, Error>
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
meter | number | Yes | - |
Returns:
Type: Promise<number, Error>
utmToAdsum
async utmToAdsum(utm: {E: number, N: number, alt: number}): Promise<{x: number, y: number, z: number}, Error>
Convert an UTM position into an Adsum world position.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
utm | {E: number, N: number, alt: number} | Yes | - |
Returns:
Type: Promise<{x: number, y: number, z: number}, Error>
utmToGps
async utmToGps(utm: {E: number, N: number, alt: number}): Promise<{lat: number, long: number, alt: number}, Error>
Convert an UTM position into a GPS position.
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
utm | {E: number, N: number, alt: number} | Yes | - |
Returns:
Type: Promise<{lat: number, long: number, alt: number}, Error>