Avoid use of sg_bucket_span().
This commit is contained in:
parent
bb5882e977
commit
8c09d9a48c
3 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ int main( int argc, char **argv ) {
|
||||||
|
|
||||||
c.x = b.get_center_lon();
|
c.x = b.get_center_lon();
|
||||||
c.y = b.get_center_lat();
|
c.y = b.get_center_lat();
|
||||||
double span = sg_bucket_span(c.y);
|
double span = b.get_width();
|
||||||
|
|
||||||
if ( (c.y >= -89.0) && (c.y < 89.0) ) {
|
if ( (c.y >= -89.0) && (c.y < 89.0) ) {
|
||||||
min.x = c.x - span / 2.0;
|
min.x = c.x - span / 2.0;
|
||||||
|
|
|
@ -52,7 +52,7 @@ static void clip_and_write_poly( string root, long int p_index,
|
||||||
bool preserve3d ) {
|
bool preserve3d ) {
|
||||||
Point3D c, min, max, p;
|
Point3D c, min, max, p;
|
||||||
c = Point3D( b.get_center_lon(), b.get_center_lat(), 0 );
|
c = Point3D( b.get_center_lon(), b.get_center_lat(), 0 );
|
||||||
double span = sg_bucket_span( c.y() );
|
double span = b.get_width();
|
||||||
TGPolygon base, result;
|
TGPolygon base, result;
|
||||||
char tile_name[256], poly_index[256];
|
char tile_name[256], poly_index[256];
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ int main( int argc, char **argv ) {
|
||||||
|
|
||||||
c.x = b.get_center_lon();
|
c.x = b.get_center_lon();
|
||||||
c.y = b.get_center_lat();
|
c.y = b.get_center_lat();
|
||||||
double span = sg_bucket_span(c.y);
|
double span = c.get_width();
|
||||||
|
|
||||||
if ( (c.y >= -89.0) && (c.y < 89.0) ) {
|
if ( (c.y >= -89.0) && (c.y < 89.0) ) {
|
||||||
min.x = c.x - span / 2.0;
|
min.x = c.x - span / 2.0;
|
||||||
|
|
Loading…
Reference in a new issue