示例#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);
		}
示例#3
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
			};
		}
示例#4
0
 protected bool Equals(SpatialBounds other)
 {
     return(MinX.Equals(other.MinX) && MaxX.Equals(other.MaxX) && MinY.Equals(other.MinY) && MaxY.Equals(other.MaxY));
 }