private static string ChangeOldMapnumberChar(string oldMapnumber) { oldMapnumber = oldMapnumber.Replace("(", ""); oldMapnumber = oldMapnumber.Replace(")", ""); oldMapnumber = oldMapnumber.Replace("(", ""); oldMapnumber = oldMapnumber.Replace(")", ""); oldMapnumber = oldMapnumber.Replace("【", ""); oldMapnumber = oldMapnumber.Replace("】", ""); oldMapnumber = oldMapnumber.Replace("甲", "1"); oldMapnumber = oldMapnumber.Replace("乙", "2"); oldMapnumber = oldMapnumber.Replace("丙", "3"); oldMapnumber = oldMapnumber.Replace("丁", "4"); oldMapnumber = oldMapnumber.Replace("A", "1"); oldMapnumber = oldMapnumber.Replace("B", "2"); oldMapnumber = oldMapnumber.Replace("C", "3"); oldMapnumber = oldMapnumber.Replace("D", "4"); oldMapnumber = oldMapnumber.Replace("a", "1"); oldMapnumber = oldMapnumber.Replace("b", "2"); oldMapnumber = oldMapnumber.Replace("c", "3"); oldMapnumber = oldMapnumber.Replace("d", "4"); oldMapnumber = oldMapnumber.ToUpper(); foreach (string m100WR in Mapnumber100W.RowNums) { oldMapnumber = oldMapnumber.Replace(m100WR, Mapnumber100W.RowStringToDigital(m100WR).ToString()); } return(oldMapnumber); }
private static decimal NewMapnumberSouth(string newMapnumber_100W_Row, decimal subRow = decimal.Zero, decimal subLatitudeDifference = decimal.Zero) { if (string.IsNullOrEmpty(newMapnumber_100W_Row)) { throw new ArgumentNullException(); } int n100WRInt = Mapnumber100W.RowStringToDigital(newMapnumber_100W_Row); if (n100WRInt <= 0) { throw new Exception(); } decimal n100WR_d = n100WRInt; if (subLatitudeDifference != decimal.Zero) { return((n100WR_d - 1) * LongitudeLatitudeDifferent.MAPNUMBER_100W_LATITUDE_DIFFERENT + (LongitudeLatitudeDifferent.MAPNUMBER_100W_LATITUDE_DIFFERENT / subLatitudeDifference - subRow) * subLatitudeDifference); } else { return((n100WR_d - 1) * LongitudeLatitudeDifferent.MAPNUMBER_100W_LATITUDE_DIFFERENT);; } }