Gets the raw shape Z(height) data at given record index, using a supplied dataBuffer to read the data.

Namespace:  EGIS.ShapeFileLib
Assembly:  EGIS.ShapeFileLib (in EGIS.ShapeFileLib.dll)

Syntax

Visual Basic
Public Function GetShapeZData ( _
	recordIndex As Integer, _
	dataBuffer As Byte() _
) As ReadOnlyCollection(Of Single())
C#
public ReadOnlyCollection<float[]> GetShapeZData(
	int recordIndex,
	byte[] dataBuffer
)
Visual C++
public:
ReadOnlyCollection<array<float>^>^ GetShapeZData(
	int recordIndex, 
	array<unsigned char>^ dataBuffer
)
JavaScript
function getShapeZData(recordIndex, dataBuffer);

Parameters

recordIndex
Type: System..::..Int32
The zero based index of the shape data to return
dataBuffer
Type: array<System..::..Byte>[]()[][]
A supplied data buffer to use when reading the raw shape data from the shapefile. The buffer must be large enough to read the raw shape data.

Return Value

Remarks

If you are reading every record in a large shape file then the preferred method is to call GetShapeFileEnumerator

If the shapefile does not contain any Z values then this method will return null

See Also