---
title: "GeographicLocation"
url: "https://reference.aspose.com/cad/java/com.aspose.cad.fileformats.collada.fileparser.elements/geographiclocation/"
product: "Aspose.CAD for Java"
description: "The geographic location."
---


**Inheritance:** java.lang.Object, ColladaElement

The geographic location. Specifies the location of the asset using the WGS84 coordinate system.

## Constructors

| Constructor | Description |
| --- | --- |
| [GeographicLocation()](#GeographicLocation) |  |

## Methods

| Method | Description |
| --- | --- |
| [getLongitude()](#getLongitude) | Gets or sets the longitude. |
| [setLongitude(float value)](#setLongitude-float) | Gets or sets the longitude. |
| [getLatitude()](#getLatitude) | Gets or sets the latitude. |
| [setLatitude(float value)](#setLatitude-float) | Gets or sets the latitude. |
| [getAltitude()](#getAltitude) | Gets or sets the altitude. Altitude is always given in meters. If the mode is "absolute", then the value is interpreted as meters from mean sea level. If the mode is "relativeToGround" then the value is interpreted as meters above the actual ground elevation at that particular location. |
| [setAltitude(Altitude value)](#setAltitude-com.aspose.cad.fileformats.collada.fileparser.elements.Altitude) | Gets or sets the altitude. Altitude is always given in meters. If the mode is "absolute", then the value is interpreted as meters from mean sea level. If the mode is "relativeToGround" then the value is interpreted as meters above the actual ground elevation at that particular location. |

### GeographicLocation() {#GeographicLocation}
```java
public GeographicLocation()
```

### getLongitude() {#getLongitude}
```java
public final float getLongitude()
```

Gets or sets the longitude.

**Returns:** float

### setLongitude(float value) {#setLongitude-float}
```java
public final void setLongitude(float value)
```

Gets or sets the longitude.

### getLatitude() {#getLatitude}
```java
public final float getLatitude()
```

Gets or sets the latitude.

**Returns:** float

### setLatitude(float value) {#setLatitude-float}
```java
public final void setLatitude(float value)
```

Gets or sets the latitude.

### getAltitude() {#getAltitude}
```java
public final Altitude getAltitude()
```

Gets or sets the altitude. Altitude is always given in meters. If the mode is "absolute", then the value is interpreted as meters from mean sea level. If the mode is "relativeToGround" then the value is interpreted as meters above the actual ground elevation at that particular location.

**Returns:** Altitude

### setAltitude(Altitude value) {#setAltitude-com.aspose.cad.fileformats.collada.fileparser.elements.Altitude}
```java
public final void setAltitude(Altitude value)
```

Gets or sets the altitude. Altitude is always given in meters. If the mode is "absolute", then the value is interpreted as meters from mean sea level. If the mode is "relativeToGround" then the value is interpreted as meters above the actual ground elevation at that particular location.

