Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pj_transform: reset error state before each call to pj_inv/pj_fwd #955

Merged
merged 1 commit into from
Apr 25, 2018

Conversation

rouault
Copy link
Member

@rouault rouault commented Apr 25, 2018

Fixes issues raised in https://lists.osgeo.org/pipermail/gdal-dev/2018-April/048446.html

The use case is that pj_transform() is called from geos projection to something else,
with multiple coordinates. If one of the coordinate tuple fails the inverse
transform of geos, it fails with PJD_ERR_TOLERANCE_CONDITION. Causing all following
coordinates to fail since the error state is not reset.

Fixes issues raised in https://lists.osgeo.org/pipermail/gdal-dev/2018-April/048446.html

The use case is that pj_transform() is called from geos projection to something else,
with multiple coordinates. If one of the coordinate tuple fails the inverse
transform of geos, it fails with PJD_ERR_TOLERANCE_CONDITION. Causing all following
coordinates to fail since the error state is not reset.
@kbevers
Copy link
Member

kbevers commented Apr 25, 2018

Looks good to me

@borysiasty
Copy link

@jef-n please note this bug also affects QGIS' OTF reprojection of XYZ layers (although it's not a problem as long as QGIS builds use PROJ 4.9.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants