Azavea.NijPredictivePolicing.ACSAlchemistLibrary.FileFormats.DesiredColumnsReader.CheckForMaxColumns C# (CSharp) Method

CheckForMaxColumns() private method

To keep things simple, lets say the max # of columns in a shapefile is 256, so 100 vars * 2 (var + error margin) == 200 columns, we don't need to test for room for the extra "AREA/PERIMETER/CENTROID" mode, unless we change our max from 100 columns. The extra room is to try and avoid running out of memory during an export.
private CheckForMaxColumns ( DataTable dt ) : string
dt System.Data.DataTable
return string
        private string CheckForMaxColumns(DataTable dt)
        {
            if (dt.Rows.Count > 100)
            {
                return string.Format(@"This file contained {0} variables. \n "
                 + "A maximum of 100 variables are allowed per export job. \n"
                 + "Please split your requested variables into multiple files and try again.",
                    dt.Rows.Count);
            }
            return string.Empty;
        }