add_spatial_to_asset#

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

Add a spatial to an asset under a data scope name.

Assets map “data_scope_name” (the name within the asset for the data) to a spatial (or a spatial rid). The same kind of spatial should use the same data scope name across assets, since checklists and templates reference data by scope name.

Parameters:
  • asset (Asset)

    Asset to add the spatial to.

  • data_scope_name (str)

    Name for the data within the asset.

  • spatial (Spatial | str)

    Spatial, or spatial rid, to add.