'Add sprites with different sizes

I need to add sprites of different sizes to my forge viewer project.

As far as I know, I cannot call dataVizExtn.addViewables(viewableData) multiple times. Considering that sprite size is set on viewableData level, what is the solution?



Solution 1:[1]

You can use lookup activity, Foreach activity, and copy data activity to load data to different files based on year.

  1. Connect lookup activity to the oracle table and with query option write query to get the distinct years list from the table.

  2. Pass the lookup output to ForEach activity and inside Foreach activity add Copy activity.

  3. In copy activity source, connect to oracle table and use query option and add dynamic content to write query with filter using current item.

Ex: @concat(‘select * from tableName where = ’, item().columnname)

  1. Connect copy activity sink to sink file and run the pipeline.

  2. It generates a file for each loop with each year passed from lookup activity.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 NiharikaMoola-MT