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:
- Creates an MgPropertyCollection object.
- 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.
- Returns the MgPropertyCollection object.