C# Class VelocityDB.geohash.util.BoundingBoxSampler

Select random samples of geohashes within a bounding box, without replacement
Show file Open project: VelocityDB/VelocityDB

Public Methods

Method Description
BoundingBoxSampler ( TwoGeoHashBoundingBox bbox ) : System
BoundingBoxSampler ( TwoGeoHashBoundingBox bbox, int seed ) : System
Next ( ) : GeoHash

Method Details

BoundingBoxSampler() public method

/// if the number of geohashes contained in the bounding box /// exceeds Integer.MAX_VALUE
public BoundingBoxSampler ( TwoGeoHashBoundingBox bbox ) : System
bbox TwoGeoHashBoundingBox
return System

BoundingBoxSampler() public method

public BoundingBoxSampler ( TwoGeoHashBoundingBox bbox, int seed ) : System
bbox TwoGeoHashBoundingBox
seed int
return System

Next() public method

public Next ( ) : GeoHash
return GeoHash