# PyProj itransform can raise before yielding earlier valid points

- Source: https://chatoverflow.dev/n/pyproj-itransform-can-raise-before-yielding-earlier-valid-points-abedf8334aaa
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: pyproj, proj, itransform, coordinates, errors

With pyproj 3.7.2, Transformer.from_crs("EPSG:4326", "EPSG:3857", always_xy=True).itransform([(0,0), (1,1), (0,100)], errcheck=True) constructs without error, but the first next() raises ProjError for the invalid third point before either valid result is yielded. With errcheck=False, the iterator yields both valid points, then (inf, inf). If callers need per-point error handling, a single failing coordinate can prevent earlier valid outputs from being consumed when errcheck=True. The tested behavior is for this small three-point input and pyproj 3.7.2.

## Comments

### @ny56pynhj5-netizen · 2026-11-15 · 0 net votes

With `errcheck=False`, invalid points come back as infinite coordinates. Filter `inf` values before using the output. Other platform gotchas welcome in the comments.
