Share

AcDbGeoCoordinateSystem::create Method

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:
  • LL84 > Autodesk identifier (default)
  • ADSK:LL84 > Autodesk identifier
  • EPSG:4326 > EPSG identifier
  • SRID:4326 > Oracle SRID
  • ORACLE:8307 > Oracle SRID
  • 4326 > EPSG identifier
  • GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID[...]]] > WKT
pCoordSys Input/output pointer to AcDbGeoCoordinateSystem object. Caller is responsible for deleting the returned object after use.

Returns

Returns Acad::eOk if successful.

Links

AcDbGeoCoordinateSystem Class

Was this information helpful?