c++ style
This commit is contained in:
parent
2fb0326892
commit
081c003b0e
1 changed files with 14 additions and 16 deletions
|
@ -200,8 +200,8 @@ bool proj_transform::backward (double * x, double * y , double * z, int point_co
|
|||
#ifdef MAPNIK_USE_PROJ4
|
||||
if (is_dest_longlat_)
|
||||
{
|
||||
int i;
|
||||
for(i=0; i<point_count; i++) {
|
||||
for (int i = 0; i < point_count; ++i)
|
||||
{
|
||||
x[i * offset] *= DEG_TO_RAD;
|
||||
y[i * offset] *= DEG_TO_RAD;
|
||||
}
|
||||
|
@ -213,7 +213,8 @@ bool proj_transform::backward (double * x, double * y , double * z, int point_co
|
|||
return false;
|
||||
}
|
||||
|
||||
for(int j=0; j<point_count; j++) {
|
||||
for (int j = 0; j < point_count; ++j)
|
||||
{
|
||||
if (x[j] == HUGE_VAL || y[j] == HUGE_VAL)
|
||||
{
|
||||
return false;
|
||||
|
@ -222,8 +223,8 @@ bool proj_transform::backward (double * x, double * y , double * z, int point_co
|
|||
|
||||
if (is_source_longlat_)
|
||||
{
|
||||
int i;
|
||||
for(i=0; i<point_count; i++) {
|
||||
for (int i = 0; i < point_count; ++i)
|
||||
{
|
||||
x[i * offset] *= RAD_TO_DEG;
|
||||
y[i * offset] *= RAD_TO_DEG;
|
||||
}
|
||||
|
@ -333,10 +334,7 @@ bool proj_transform::backward (box2d<double> & box) const
|
|||
double miny = std::min(lly, lry);
|
||||
double maxx = std::max(urx, lrx);
|
||||
double maxy = std::max(ury, uly);
|
||||
box.init(minx,
|
||||
miny,
|
||||
maxx,
|
||||
maxy);
|
||||
box.init(minx, miny, maxx, maxy);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue