LoadData() public method

Loads Scale Gazetteer CSV data file into a new table in SQL Server, creating 2 related lookup tables also for the county codes and feature codes
public LoadData ( ScaleGazetteerOptions options ) : int
options ScaleGazetteerOptions options
return int
Beispiel #1
0
        /// <summary>
        /// Import 1:50000 Scale Gazetteer data.
        /// </summary>
        /// <param name="args">command line args</param>
        static void RunGazetteerDataImport(string[] args)
        {
            ScaleGazetteerArgParser argParser = new ScaleGazetteerArgParser();

            argParser.Parse(args);

            ScaleGazetteerDataImporter importer = new ScaleGazetteerDataImporter();

            importer.LoadData(argParser.ImportOptions);
        }
        /// <summary>
        /// Import 1:50000 Scale Gazetteer data.
        /// </summary>
        /// <param name="args">command line args</param>
        static void RunGazetteerDataImport(string[] args)
        {
            ScaleGazetteerArgParser argParser = new ScaleGazetteerArgParser();
            argParser.Parse(args);

            ScaleGazetteerDataImporter importer = new ScaleGazetteerDataImporter();
            importer.LoadData(argParser.ImportOptions);
        }