C++
static ACDBCORE2D_PORT Acad::ErrorStatus create( const AcString& coordSysIdOrFullDef, AcDbGeoCoordinateSystem*& pCoordSys );
Description
Instantiates a new AcDbGeoCoordinateSystem object from the current virtual catalog. If no such CRS definition exists but the input string contains enough information(i.e. WKT or XML) for constructing a temporary AcDbGeoCoordinateSystem instance, this is being returned instead.
Parameters
Parameters | Description |
---|---|
coordSysIdOrFullDef |
The ID, WKT or the (proprietary) XML representation of the CRS definition to load. Optionally, the string can be prefixed by the ID's namespace and a colon (:) where the following are supported: ADSK, EPSG, SRID, ORACLE. If no namespace has been specified, the ID is assumed to be a default Autodesk coordinate system identifier. If no definition exists with such a code and if it consists of numbers only, the ID string is considered an EPSG code. Valid examples are:
|
pCoordSys | Input/output pointer to AcDbGeoCoordinateSystem object. Caller is responsible for deleting the returned object after use. |
Returns
Returns Acad::eOk if successful.