public static List <OpenDataObject> GetEveryLineAsObjectFromCSV(TextAsset csvFile)
    {
        List <OpenDataObject> csvObjects = new List <OpenDataObject>();

        string[] allLines = csvFile.text.Split("\n"[0]);

        Regex csvRegex = new Regex(@"""[^""]*""|'[^']*'|[^,]*");

        foreach (var line in allLines)
        {
            MatchCollection matches   = csvRegex.Matches(line);
            OpenDataObject  listEntry = new OpenDataObject();
            ShapeFormat     newShape  = GetShapeFromLine(matches);

            if (newShape != null)
            {
                listEntry.Shape = newShape;
                //listEntry.Name = ...
                //listEntry.Street = ...
                //listEntry....
                csvObjects.Add(listEntry);
            }
        }
        return(csvObjects);
    }
 private static OpenDataObject ApplyAllRules(OpenDataObject obj)
 {
     for (int index = 0; index < obj.Shape.coordinates.Count; index++)
     {
         obj.Shape.coordinates[index] = ApplyCoordinatePreparationRules(obj.Shape.coordinates[index]);
     }
     return(obj);
 }
 public ExtractedOpenDataEntry(GameObject relatedPrefab, OpenDataObject openDataObject, string name)
 {
     this.relatedPrefab  = relatedPrefab;
     this.openDataObject = openDataObject;
     this.name           = name;
 }