This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > GeoDatabaseExtensions > ESRI.ArcGIS.GeoDatabaseExtensions > Interfaces > IT > ITerrain2 Interface > ITerrain2.SearchFromEmbeddedDataSource Method (ArcObjects .NET 10.4 SDK) |
Returns a Search Cursor on the specified embedded data source.
[Visual Basic .NET] Public Sub SearchFromEmbeddedDataSource ( _ ByVal index As Integer, _ ByVal pAOI As IEnvelope, _ ByVal Resolution As Double, _ ByVal pSubFields As IStringArray, _ ByRef ppCursor As IFeatureCursor, _ ByRef ppFieldIndices As ILongArray _ )
[C#] public void SearchFromEmbeddedDataSource ( int index, IEnvelope pAOI, double Resolution, IStringArray pSubFields, ref IFeatureCursor ppCursor, ref ILongArray ppFieldIndices );
[C++]
HRESULT SearchFromEmbeddedDataSource(
long index,
IEnvelope* pAOI,
double Resolution,
IStringArray* pSubFields,
IFeatureCursor** ppCursor,
ILongArray** ppFieldIndices
);
[C++]
Parameters index [in] index is a parameter of type long pAOI [in]
pAOI is a parameter of type IEnvelope Resolution [in] Resolution is a parameter of type double pSubFields [in]
pSubFields is a parameter of type IStringArray ppCursor [out]
ppCursor is a parameter of type IFeatureCursor ppFieldIndices [out]
ppFieldIndices is a parameter of type ILongArray
Index is used to indicate which feature class to search and retrieve records from. The index must reference and embedded multipoint feature class.
pAOI is an envelope representing the area of interest. This can be NULL, in which case the full extent of the terrain is used.
resolution is the z-tolerance or windowsize of the pyramid level to query records from. Ideally, the value provided should exactly match an existing pyramid level. If not, the next highest resolution level to the value specified will be used.
pSubFields is an array of field names for desired attributes. Use ITerrain2.GetEmbeddedDataSourceShapeFieldName for the shape field if you're interested in retrieving the geometry.
ppCursor is the output feature cursor.
ppFieldIndices is a LongArray containing the cursor field index values for the requested attributes, listed in the same order as provided in pSubFields.