예제 #1
0
        public SpatialOptions QuadPrefixTreeIndex(int maxTreeLevel, SpatialBounds bounds)
        {
            if (maxTreeLevel == 0)
            {
                throw new ArgumentOutOfRangeException("maxTreeLevel");
            }

            return(new SpatialOptions
            {
                Type = SpatialFieldType.Cartesian,
                MaxTreeLevel = maxTreeLevel,
                Strategy = SpatialSearchStrategy.QuadPrefixTree,
                MinX = bounds.MinX,
                MinY = bounds.MinY,
                MaxX = bounds.MaxX,
                MaxY = bounds.MaxY
            });
        }
예제 #2
0
 protected bool Equals(SpatialBounds other)
 {
     return(MinX.Equals(other.MinX) && MaxX.Equals(other.MaxX) && MinY.Equals(other.MinY) && MaxY.Equals(other.MaxY));
 }