# null

# Proj\_Create (ADAS)

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE

**Note**\
This CAPL function is also available in C#.

## Function Syntax

**C#**

```csharp
bool result = _ADAS.DataModel.ProjAccess.Proj_Create.Call(proj_string);
```

**CAPL**

```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

```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");
```

### C\#

```csharp
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");
```
