# GltfGpmLocal

#### new Cesium.GltfGpmLocal(options)
engine/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js 52

The GPM metadata for a Ground-Space Indirect implementation stored locally (i.e. a tile and/or leaf node). This reflects the root extension object of the NGA_gpm_local glTF extension. When a model that contains this extension was loaded, then an object of this type can be obtained by calling ``` const gltfGpmLocal = model.getExtension("NGA_gpm_local"); ``` The storage type determines the presence of the optional properties:

- When the storage type is `StorageType.Indirect`, then the `anchorPointsIndirect` and `intraTileCorrelationGroups` are present.
- When the storage type is `StorageType.Direct`, then the `anchorPointsDirect` and `covarianceDirect` are present.

Name | Type | Description
--- | --- | ---
`options` | GltfGpmLocal.ConstructorOptions | An object describing initialization options

##### Experimental

This feature is not final and is subject to change without Cesium's standard deprecation policy.

### Members

#### readonly anchorPointsDirect : Array.<AnchorPointDirect>|undefined
engine/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js 145

Array of stored direct anchor points

#### readonly anchorPointsIndirect : Array.<AnchorPointIndirect>|undefined
engine/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js 132

Array of stored indirect anchor points

#### readonly covarianceDirect : Matrix3|undefined
engine/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js 172

The full covariance of anchor point parameters

#### readonly intraTileCorrelationGroups : Array.<CorrelationGroup>|undefined
engine/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js 159

Metadata identifying parameters using same correlation modeling and associated correlation parameters

#### readonly storageType : StorageType
engine/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js 119

Specifies if covariance storage is indirect or direct.

### Type Definitions

#### Cesium.GltfGpmLocal.ConstructorOptions
engine/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js 6

Initialization options for the GltfGpmLocal constructor

##### Properties:

Name | Type | Attributes | Description
--- | --- | --- | ---
`storageType` | string |  | The storage type. This must be one of the `StorageType` constants, i.e. `Direct` or `Indirect`.
`anchorPointsIndirect` | Array.<AnchorPointIndirect> | undefined | <optional> | The indirect anchor points. This must be present if and only if the storage type is `Indirect`.
`intraTileCorrelationGroups` | Array.<CorrelationGroup> | undefined | <optional> | The intra-tile correlation groups. This must be present if and only if the storage type is `Indirect`.
`anchorPointsDirect` | Array.<AnchorPointDirect> | undefined | <optional> | The direct anchor points. This must be present if and only if the storage type is `Direct`.
`covarianceDirect` | Matrix3 | undefined | <optional> | The covariance of anchor point parameters. This must be present if and only if the storage type is `Direct`.

Need help? The fastest way to get answers is from the community and team on the Cesium Forum.