#endif
}
+void sgGetBuckets( const SGGeod& min, const SGGeod& max, std::vector<SGBucket>& list ) {
+ double lon, lat, span;
+ for (lat = min.getLatitudeDeg(); lat <= max.getLatitudeDeg(); lat += SG_BUCKET_SPAN) {
+ span = sg_bucket_span( lat );
+ for (lon = min.getLongitudeDeg(); lon <= max.getLongitudeDeg(); lon += span) {
+ list.push_back( SGBucket(lon , lat) );
+ }
+ }
+}
#include <cstdio> // sprintf()
#include <ostream>
#include <string>
+#include <vector>
/**
* standard size of a bucket in degrees (1/8 of a degree)
void sgBucketDiff( const SGBucket& b1, const SGBucket& b2, int *dx, int *dy );
+/**
+ * \relates SGBucket
+ * retrieve a list of buckets in the given bounding box
+ * @param min min lon,lat of bounding box in degrees
+ * @param max max lon,lat of bounding box in degrees
+ * @param list standard vector of buckets within the bounding box
+ */
+void sgGetBuckets( const SGGeod& min, const SGGeod& max, std::vector<SGBucket>& list );
+
/**
* Write the bucket lon, lat, x, and y to the output stream.
* @param out output stream