Taking data from a table
in
Programming Questions
•
7 months ago
Ok, so I am trying to get data from the csv file in my data folder into processing to map some coordinates in my sketch but nothing I have tried seems to work. Here is the code I am using to load the data from my csv file. Would love if someone could help
- void draw() {
- background(255);
- image(mapImage, 0, 0);
- fill(20);
- rowCount = table.getRowCount();
- for (TableRow row : table.rows()) {
- int id = row.getInt("id");
- String firstName = row.getString("firstName");
- String surName = row.getString("surName");
- int coX = row.getInt("coX");
- int coY = row.getInt("coY");
- String location = row.getString("location"); }
- drawSmallCircles();
- drawMouseOver();
- }
- }
1