Share

AcDbGeoCompoundCoordinateSystem::create

C++

static ACDBCORE2D_PORT Acad::ErrorStatus create(
    const AcString& coordSysIdOrFullDef, 
    AcDbGeoCompoundCoordinateSystem*& pCoordSys
);

Description

Instantiates a new AcDbGeoCompoundCoordinateSystem object from the current geodetic and virtual catalogs.

If no such CRS definitions exist but the input string contains enough information(i.e. WKT or XML) for constructing a temporary AcDbGeoCompoundCoordinateSystem instance, this is being returned instead.

Parameters

Parameters Description
coordSysIdOrFullDef The ID or the (proprietary) XML representation of the compound CRS definition to load.The XML must contain a geodetic CRS, and the vertical CRS is optional. The ID is either only a geodetic CRS or contains geodetic and vertical CRSs delimited by the plus sign (+). The WKT is not supported yet.If the vertical CRS is provided, it must be a valid value, or the creation will fail.Valid examples are:
  • LL84+EGM2008_height
  • LL84
pCoordSys Input/output pointer to AcDbGeoCompoundCoordinateSystem object. Caller is responsible for deleting the returned object after use.

Returns

Returns Acad::eOk if successful.

Links

AcDbGeoCompoundCoordinateSystem

Was this information helpful?