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.
- Uses the schema name to create a Schema.FeatureSchema object.
- Uses the class name to create a Schema.FeatureClass object.
- Adds the FeatureClass object to the FeatureSchema object.
- Uses the identity property name to create a Schema.DataPropertyDefinition object and makes it an auto-generated Int32.
- Adds the identity property object to FeatureClass object’s properties list and identity properties list.
- 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.
- Uses the geometry property name to create a Schema.GeometricPropertyDefinition object and uses the geometric type argument to sets its GeometryTypes property.
- Adds the GeometricPropertyDefinition objec t to the FeatureClass object.