We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
found order of coordinates in transformer depends on CRS being from proj4 string or EPSG
from pyproj import Transformer, CRS
manual_crs = CRS.from_proj4('+proj=utm +zone=10 +ellps=GRS80 +datum=NAD83') georef_transformer = Transformer.from_crs( manual_crs.geodetic_crs, manual_crs) georef_transformer.transform(40, -120) Out[5]: (inf, inf) georef_transformer.transform(-120, 40) Out[6]: (756099.6479720183, 4432069.056784666)
epsg_crs = CRS.from_epsg(26910) georef_transformer = Transformer.from_crs(epsg_crs.geodetic_crs, epsg_crs) georef_transformer.transform(40, -120) Out[9]: (756099.6479720183, 4432069.056784666) georef_transformer.transform(-120, 40) Out[10]: (inf, inf)
manual_crs.to_epsg() Out[16]: 26910
The text was updated successfully, but these errors were encountered:
added temp fix for this in dbf5ab9
Sorry, something went wrong.
Resolved with using the always_xy keyword argument. See 8e68cb5
No branches or pull requests
found order of coordinates in transformer depends on CRS being from proj4 string or EPSG
from pyproj import Transformer, CRS
specifying nad83 10N with pyproj string
manual_crs = CRS.from_proj4('+proj=utm +zone=10 +ellps=GRS80 +datum=NAD83')
georef_transformer = Transformer.from_crs( manual_crs.geodetic_crs, manual_crs)
georef_transformer.transform(40, -120)
Out[5]: (inf, inf)
georef_transformer.transform(-120, 40)
Out[6]: (756099.6479720183, 4432069.056784666)
specifying nad83 10N from epsg
epsg_crs = CRS.from_epsg(26910)
georef_transformer = Transformer.from_crs(epsg_crs.geodetic_crs, epsg_crs)
georef_transformer.transform(40, -120)
Out[9]: (756099.6479720183, 4432069.056784666)
georef_transformer.transform(-120, 40)
Out[10]: (inf, inf)
manual_crs does indeed declare itself equivalent to 26910
manual_crs.to_epsg()
Out[16]: 26910
The text was updated successfully, but these errors were encountered: