SampleElevations Method

Land Auto

SampleElevations Method

Given a start and end point, returns an array of derived points from the Surface.

See Also | Example

Signature

RetVal = object.SampleElevations(StartPoint, EndPoint)

object

Surface The object or objects this property applies to.

StartPoint

Variant (3 element array of doubles); input-only
The starting point to be queried in Easting, Northing, Elevation.

EndPoint

Variant (3 element array of doubles); input-only
The ending point to be queried in Easting, Northing, Elevation.

RetVal

Variant (array of doubles)
The sample points returned as Easting, Northing, Elevation, Easting, etc.

Remarks

Given a starting and ending point, SampleElevations will return all of the points between the start and end. These points occur when a Surface Edge is crossed. The net result is that the function returns a line that is projected onto the Surface.

SampleElevations will return a Variant. This variant will be an array of doubles. Every 3 doubles is a point of the format Easting, Northing, Elevation.