Commit 271d072b authored by Aashish Chaudhary's avatar Aashish Chaudhary
Browse files

Fixed wrong index being used.

parent 19c75043
Pipeline #6818 passed with stage
...@@ -170,6 +170,7 @@ void vtkGeoTransform::InternalTransformPoints( double* x, vtkIdType numPts, int ...@@ -170,6 +170,7 @@ void vtkGeoTransform::InternalTransformPoints( double* x, vtkIdType numPts, int
xy.x = coord[0]; xy.y = coord[1]; xy.x = coord[0]; xy.y = coord[1];
lp = proj_inv( xy, src ); lp = proj_inv( xy, src );
coord[0] = lp.lam; coord[1] = lp.phi; coord[0] = lp.lam; coord[1] = lp.phi;
coord += stride;
} }
} }
else // ! src else // ! src
...@@ -193,6 +194,7 @@ void vtkGeoTransform::InternalTransformPoints( double* x, vtkIdType numPts, int ...@@ -193,6 +194,7 @@ void vtkGeoTransform::InternalTransformPoints( double* x, vtkIdType numPts, int
lp.lam = coord[0]; lp.phi = coord[1]; lp.lam = coord[0]; lp.phi = coord[1];
xy = proj_fwd( lp, dst ); xy = proj_fwd( lp, dst );
coord[0] = xy.x; coord[1] = xy.y; coord[0] = xy.x; coord[1] = xy.y;
coord += stride;
} }
} }
else // ! dst else // ! dst
...@@ -209,4 +211,3 @@ void vtkGeoTransform::InternalTransformPoints( double* x, vtkIdType numPts, int ...@@ -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