set_bucket(dlon, dlat);
}
+SGBucket::SGBucket(const SGGeod& geod) {
+ set_bucket(geod);
+}
// create an impossible bucket if false
SGBucket::SGBucket(const bool is_good) {
}
-// default destructor
-SGBucket::~SGBucket() {
-}
-
-
// Set the bucket params for the specified lat and lon
void SGBucket::set_bucket( double *lonlat ) {
set_bucket( lonlat[0], lonlat[1] );
} else if ( span <= 1.0 ) {
x = (int)((dlon - lon) / span);
} else {
- if ( (dlon >= 0) || (fabs(diff) < SG_EPSILON) ) {
+ if ( dlon >= 0 ) {
lon = (int)( (int)(lon / span) * span);
} else {
// cout << " lon = " << lon
}
+void SGBucket::set_bucket(const SGGeod& geod)
+{
+ set_bucket(geod.getLongitudeDeg(), geod.getLatitudeDeg());
+}
+
// Build the path name for this bucket
string SGBucket::gen_base_path() const {
// long int index;