# get_spatial_from_asset

## nominal.experimental.spatial.get_spatial_from_asset(asset, data_scope_name)

Retrieve a spatial from an asset by data scope name.

Parameters:
:   - **asset** ([*Asset*](https://dev.nominal.io/python/ref/generated/nominal.core.Asset.md#nominal.core.Asset "nominal.core.asset.Asset"))

      Asset to resolve the scope on.
    - **data_scope_name** ([*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)"))

      Name of the asset data scope to resolve.

Returns:
:   The spatial associated with the data scope name.

Raises:
:   [**NominalNotFoundError**](https://dev.nominal.io/python/ref/generated/nominal.exceptions.NominalNotFoundError.md#nominal.exceptions.NominalNotFoundError "nominal.exceptions.NominalNotFoundError") – If no readable spatial has this data scope name.

Return type:
:   [*Spatial*](https://dev.nominal.io/python/ref/generated/nominal.experimental.spatial.Spatial.md#nominal.experimental.spatial.Spatial "nominal.experimental.spatial._spatial.Spatial")
