AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

MgCreateSdfParams Class Reference
[MgCreateSdfParams]

Inherits MgFeatureSourceParams.

List of all members.


Detailed Description

Contains the parameters used to create an SDF feature source.

Remarks:
Use MgFeatureService::DescribeSchema and MgFeatureService::GetSpatialContexts to get the values needed to construct and configure the MgCreateSdfParams object.
Example (PHP)
 $schemaCollection = $featureService->DescribeSchema($activeFeatSrcResId, $schemaName);
 $schema = $schemaCollection->GetItem(0);
 $activeOnly = true;
 $activeSpatialContextReader = $featureService->GetSpatialContexts($activeFeatSrcResId, $activeOnly);
 $activeSpatialContextReader->ReadNext();
 $spatialContextName = $activeSpatialContextReader->GetName();
 $coordSysWkt = $activeSpatialContextReader->GetCoordinateSystemWkt();
 $createSdfParams = new MgCreateSdfParams($spatialContextName, $coordSysWkt, $schema);
 $createSdfParams->SetSpatialContextDescription($activeSpatialContextReader->GetDescription());
 $createSdfParams->SetXYTolerance($activeSpatialContextReader->GetXYTolerance());
 $createSdfParams->SetZTolerance($activeSpatialContextReader->GetZTolerance());

Public Member Functions

STRING GetCoordinateSystemWkt ()
 Gets the well-known text description of the coordinate system.
MgFeatureSchemaGetFeatureSchema ()
 Gets the feature schema definition.
STRING GetSpatialContextDescription ()
 Gets the spatial context description.
STRING GetSpatialContextName ()
 Gets the user-defined spatial context name.
double GetXYTolerance ()
 Gets the tolerance used for the X and Y ordinates.
double GetZTolerance ()
 Gets the tolerance for the Z ordinate.
 MgCreateSdfParams (CREFSTRING spatialContextName, CREFSTRING srsWkt, MgFeatureSchema *featureSchema)
 Constructs an MgCreateSdfParams object with the supplied parameters.
 MgCreateSdfParams ()
 Constructs an empty MgCreateSdfParams object.
void SetCoordinateSystemWkt (CREFSTRING srsWkt)
 
void SetFeatureSchema (MgFeatureSchema *featureSchema)
 
void SetSpatialContextDescription (CREFSTRING description)
 
void SetSpatialContextName (CREFSTRING name)
 
void SetXYTolerance (double tolerance)
 
void SetZTolerance (double tolerance)