Ejemplo n.º 1
0
            public CachedFeatureCollection(Guid guid, IQueryFilter filter)
            {
                _guid     = guid;
                _filter   = filter;
                _myThread = Thread.CurrentThread;

                if (_filter is ISpatialFilter &&
                    ((ISpatialFilter)_filter).Geometry != null)
                {
                    _tree = new BinarySearchTree2(((ISpatialFilter)_filter).Geometry.Envelope,
                                                  20, 200, 0.55, null);
                }

                _features = new Dictionary <long, List <IFeature> >();
                _features.Add((long)0, new List <IFeature>());
            }
Ejemplo n.º 2
0
 public BinaryTree2Builder2(IEnvelope envelope, int maxLevels, int maxPerNode, double split_ratio)
     : base(envelope, maxLevels, maxPerNode, split_ratio)
 {
     _searchTree = new BinarySearchTree2(envelope, maxLevels, maxPerNode, split_ratio, null);
 }
Ejemplo n.º 3
0
 public BinaryTree2Builder2(IEnvelope envelope, int maxLevels, int maxPerNode)
     : base(envelope, maxLevels, maxPerNode)
 {
     _searchTree = new BinarySearchTree2(envelope, maxLevels, maxPerNode, base.SPLIT_RATIO, null);
 }