EstimateElevation()

Summary

Calculates a spot elevation using a TIN.

Syntax

spot_height = EstimateElevation(tin t, coord point)

Argument Contents
t A TIN
point A coord

Returns

A real value for the spot elevation.

Notes

  • The elevation is estimated based on where the point falls in the triangulation.

  • If the point doesn't fall within a triangle, the return value is null.

  • The elevation is in the same units as used to create the triangulation.

Example

SetLayer("Airports")
airport_tin = CreateTriangulation("Airports|", {{"Field","Altitude"}})
spot_height = EstimateElevation(airport_tin , point)
ShowMessage("The spot height is " + String(spot_height))

Error Codes

Error Type Meaning
Error The TIN compound variable is null

See Also

Function Summary
CreateTriangulation() Creates a Triangulated Irregular Network (TIN)
TINElevations() Gets the scope for a TIN
EstimateElevation() Gets the minimum and maximum elevations in a TIN