Commit d2dd32ef authored by Aashish Chaudhary's avatar Aashish Chaudhary Committed by Kitware Robot
Browse files

Merge topic 'fix_geotransform_badindex'

271d072b

 Fixed wrong index being used.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Dan Lipsa's avatarDan Lipsa <dan.lipsa@kitware.com>
Merge-request: !1206
parents c3d1f235 271d072b
Pipeline #6874 failed with stage
......@@ -170,6 +170,7 @@ void vtkGeoTransform::InternalTransformPoints( double* x, vtkIdType numPts, int
xy.x = coord[0]; xy.y = coord[1];
lp = proj_inv( xy, src );
coord[0] = lp.lam; coord[1] = lp.phi;
coord += stride;
}
}
else // ! src
......@@ -193,6 +194,7 @@ void vtkGeoTransform::InternalTransformPoints( double* x, vtkIdType numPts, int
lp.lam = coord[0]; lp.phi = coord[1];
xy = proj_fwd( lp, dst );
coord[0] = xy.x; coord[1] = xy.y;
coord += stride;
}
}
else // ! dst
......@@ -209,4 +211,3 @@ void vtkGeoTransform::InternalTransformPoints( double* x, vtkIdType numPts, int
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment