CreateResultsFdoSchema

Land Desktop Map 3D Samples

 
CreateResultsFdoSchema
 
 
 

This method is used to create feature schemas for the Map 3D sample applications. It creates schemas wih an integer id value, a feature geometry, and a user-defined property for storing additional information as needed.

The arguments are: a schema name, a class name, an optional identity property name, an optional geometry property name, an integer denoting a geometric type, the name of an additional property, and the data type of the additional property. It returns an OSGeo.FDO.Schema.FeatureSchema object.

It does the following:

  1. Uses the schema name to create a Schema.FeatureSchema object.
  2. Uses the class name to create a Schema.FeatureClass object.
  3. Adds the FeatureClass object to the FeatureSchema object.
  4. Uses the identity property name to create a Schema.DataPropertyDefinition object and makes it an auto-generated Int32.
  5. Adds the identity property object to FeatureClass object’s properties list and identity properties list.
  6. Uses the additional property name argument to create a Schema.DataPropertyDefinition object, uses the additional property data type argument to sets its DataType property, and adds this object to the FeatureClass object.
  7. Uses the geometry property name to create a Schema.GeometricPropertyDefinition object and uses the geometric type argument to sets its GeometryTypes property.
  8. Adds the GeometricPropertyDefinition objec t to the FeatureClass object.