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]); }
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]); }
public void SplitEnvelope4_1() { var envelopes = GeohashTree.SplitEnvelope4(new Envelope(-180, 0, -90, 90), true).ToList(); Assert.AreEqual(new Envelope(-180, -90, -90, 0), envelopes[0]); Assert.AreEqual(new Envelope(-90, 0, -90, 0), envelopes[1]); Assert.AreEqual(new Envelope(-180, -90, 0, 90), envelopes[2]); Assert.AreEqual(new Envelope(-90, 0, 0, 90), envelopes[3]); }
public void Temp2() { var envelopes = GeohashTree.GetNextLevel(); Assert.AreEqual(32, envelopes.Count()); var envelopes2 = new GeohashTree(); Assert.AreEqual(32, envelopes2.Count); }