Beispiel #1
0
        public void SplitEnvelope2_2()
        {
            var envelopes = GeohashTree.SplitEnvelope2(new Envelope(-180, 180, -90, 90), false).ToList();

            Assert.AreEqual(new Envelope(-180, 180, -90, 0), envelopes[0]);
            Assert.AreEqual(new Envelope(-180, 180, 0, 90), envelopes[1]);
        }
Beispiel #2
0
        public void SplitEnvelope2_1()
        {
            var envelopes = GeohashTree.SplitEnvelope2(new Envelope(-180, 180, -90, 90), true).ToList();

            Assert.Equal(new Envelope(-180, 0, -90, 90), envelopes[0]);
            Assert.Equal(new Envelope(0, 180, -90, 90), envelopes[1]);
        }