ReadFeature

Land Desktop Map 3D Samples

 
ReadFeature
 
 
 

This method reads the properties of a feature from a feature reader object. It takes two arguments: an OSGeo.MapGuide.MgFeatureReader object and a list of the names of the properties contained in the feature. It returns an OSGeo.MapGuide.MgPropertyCollection object containing all of the properties. It does the following:

  1. Creates an MgPropertyCollection object.
  2. For each name in the property name list argument, it uses the MgFeatureReader object to get its OSGeo.MapGuide.MgPropertyType, creates the appropriate instance of a class derived from OSGeo.MapGuide.MgProperty, and adds this instance to the MgPropertyCollection object. It uses the property name and the MgFeatureReader object to create the property class instance.
  3. Returns the MgPropertyCollection object.