CreateSdfFile
This method creates a SDF file with a schema defined by a FDO feature schema object. It takes three arguments: an absolute path for the SDF file, the FDO FeatureSchema object, and a string containing the well-known-text (WKT) description of the coordinate system the SDF file will use. It does the following:
- Use the OSGeo.FDO.ClientServices.FeatureAccessManager class to create an OSGeo.FDO.IConnectionManager object.
- Use the IConnectionManager object to create an OSgeo.FDO.Connections.IConnection object.
- Use the IConnection object to create an OSgeo.FDO.Connections.IConnectionPropertyDictionary object.
- Use the IConnectionPropertyDictionary object to set the File property to the SDF file argument and the ReadOnly property to False.
- Use the IConnection object to create an OSgeo.FDO.Commands.DataStore.ICreateDataStore object.
- Use the ICreateDataStore object to set its File property to the SDF file argument.
- Use the ICreateDataStore object to create the SDF file in the local filesystem.
- Use the IConnection object to open a connection to the SDF file.
- Use the IConnection object to create an OSgeo.FDO.Commands.SpatialContext.ICreateSpatialContext object.
- Use the ICreateSpatialContext object to set its CoordinateSystemWkt attribute to the value of the string argument containing the WKT description of the coordinate system.
- Use the ICreateSpatialContext object to set other attributes.
- Use the ICreateSpatialContext object to add a coordinate system to the SDF file.
- Use the IConnection object to create an OSgeo.FDO.Commands.Schema.IApplySchema object.
- Use the IApplySchema object to set its FeatureSchema attribute to the value of the FeatureSchema argument.
- Use the IApplySchema object to add a feature schema to the SDF file.
- Use the IConnection object to close the connection to the SDF file.