示例#1
0
        public void GetRes0Indexes()
        {
            var indexes = BaseCellsExtensions.GetRes0Indexes();

            Assert.AreEqual(indexes[0].Value, 0x8001fffffffffffUL);
            Assert.AreEqual(indexes[121].Value, 0x80f3fffffffffffUL);
        }
示例#2
0
文件: Api.cs 项目: wangpei421/h3net
 /// <summary>
 /// provides all base cells in H3Index format*/
 /// </summary>
 public static void GetRes0Indexes(out List <H3Index> outCells)
 {
     outCells = BaseCellsExtensions.GetRes0Indexes();
 }
示例#3
0
 /// <summary>
 /// List of cells at a given resolutions
 /// </summary>
 /// <param name="res">resolution</param>
 private static List <H3Index> GetCellsAtRes(int res)
 {
     var(_, resCells) =
         BaseCellsExtensions.GetRes0Indexes().Uncompact(res);
     return(resCells.Where(c => c.Value != 0).ToList());
 }