/// <summary>
/// Scans through our SRID.csv file, and returns all available IDs
/// </summary>
/// <returns></returns>
public static List <string> ListAllCoordinateSystemIDs()
{
string sridFilename = Path.Combine(FileUtilities.GetApplicationPath(), "SRID.csv");
if (!File.Exists(sridFilename))
{
_log.Error("Unable to lookup srid by number, no SRID.csv file");
return(null);
}
List <string> results = new List <string>(4096);
StreamReader reader = new StreamReader(sridFilename);
string line = string.Empty;
while ((line = reader.ReadLine()) != null)
{
results.Add(line.Split(';')[0]);
}
return(results);
}