Go to Google Earth Home
Google Earth COM API Documentation Document Version: 1.0 - Last modified:


IFeatureCollectionGE Interface Reference

This is a collection of features. More...

import "earth.idl";

List of all members.

Properties

IFeatureGE Item ([in] long index) [get]
 Retrieves an item from the collection.
long Count [get]
 Number of features in the collection.


Detailed Description

This is a collection of features.

Represents a shallow snapshot of a collection of features. Stores references to the features at the time of creation. If those features change after the collection has been created, the collection still contains the modified features. If a feature within the collection is deleted, the collection still returns a corresponding feature of which its methods always fail with E_INVALID_OR_DELETED_FEATURE.

This collection is compatible with JavaScript, Visual Basic, and VBScript.

Example code in JavaScript:
var featureCollection = ...; // initialize to refer to collection object
var enum = new Enumerator(featureCollection);
for (; !enum.atEnd(); enum.moveNext())
  var feature = e.item();
  doSomething(feature);
}

Example code in Visual Basic and VBScript:
Dim featureCollection = ... ' initialize to refer to collection object
For Each feature In featureCollection
  DoSomething feature
Next

Note:
This is a one-based index collection, which means the first element's index is 1, and the last element's index is equal to the collection's Count.
Associated GUIDs:


Property Documentation

IFeatureGE IFeatureCollectionGE::Item([in] long index) ( [in] long  index  )  [get]

Retrieves an item from the collection.

Retrieves item with the given one-based index: the first element's index is 1, and the last element's index is equal to the collection's Count.

Parameters:
index one-based index for the desired element. Valid inputs are between 1 and Count inclusive.
See also:
Count

long IFeatureCollectionGE::Count [get]

Number of features in the collection.

See also:
Item


The documentation for this interface was generated from the following file:

Google Earth
     
©2008 Google - Google Home - About Google