## CompoundSpatialReferenceSystem.GetUnit method

Get [`Unit`](../../unit/) of dimension.

```csharp
public override Unit GetUnit(int dimension)
```

| Parameter | Type | Description |
| --- | --- | --- |
| dimension | Int32 | Number of dimension. |

### Return Value

Unit of dimension.

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentOutOfRangeException | *dimension* is less then 0 or greater or equals to [`DimensionsCount`](../dimensionscount/) |

### See Also

* class [Unit](../../unit/)
* class [CompoundSpatialReferenceSystem](../)
* namespace [Aspose.Gis.SpatialReferencing](../../compoundspatialreferencesystem/)
* assembly [Aspose.GIS](../../../)


