Created
April 23, 2015 20:20
-
-
Save robhawkes/2d5c99ff6f9b5472a072 to your computer and use it in GitHub Desktop.
Revisions
-
robhawkes revised this gist
Apr 23, 2015 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,9 +7,7 @@ var csvConfig = { }, output: { type: "BlueprintOutputDebugPoints", options: {} }, triggers: [{ triggerObject: "output", -
robhawkes created this gist
Apr 23, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,43 @@ var csvConfig = { input: { type: "BlueprintInputCSV", options: { path: "./data/some.csv" } }, output: { type: "BlueprintOutputDebugPoints", options: { modelPathPrefix: "./data/" } }, triggers: [{ triggerObject: "output", triggerName: "initialised", triggerArguments: [], actionObject: "input", actionName: "requestData", actionArguments: [], actionOutput: {} }, { triggerObject: "input", triggerName: "dataReceived", triggerArguments: ["csv"], actionObject: "output", actionName: "outputPoints", actionArguments: ["data"], actionOutput: { data: { process: "map", itemsObject: "csv", itemsProperties: "data", transformation: { coordinates: ["Longitude", "Latitude"] } } } }] }; var switchboardCSV = new VIZI.BlueprintSwitchboard(csvConfig); switchboardCSV.addToWorld(world);