Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Proj_Create (ADAS)
Valid for: CANoe DE
Note
This CAPL function is also available in C#.
Function Syntax
C#
bool result = _ADAS.DataModel.ProjAccess.Proj_Create.Call(proj_string);
CAPL
long result;
result = _ADAS.DataModel.ProjAccess.Proj_Create.Call(proj_string);
Description
This function initializes the Proj Access (interface IProjAccess) with a proj definition. After this, the methods Proj_TransformToGeo or Proj_TransformToInertial can be used to transform coordinates using the Proj Access.
Parameters
- definition : string
The Proj String
Return Values
- bool
true if initialization is correct, false otherwise
Example
In the examples it is assumed in each case that a DO object of the type IScenarioManager was created.
CAPL
long result = _ADAS.DataModel.ProjAccess.Proj_Create.Call("+proj=tmerc +a=6378137 +b=6378137 +lon_0=8.8995026301666247 +x_0=-0 +y_0=-5423575.9170007547 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs");
bool result = _ADAS.DataModel.ProjAccess.Proj_Create.Call("+proj=tmerc +a=6378137 +b=6378137 +lon_0=8.8995026301666247 +x_0=-0 +y_0=-5423575.9170007547 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs");