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
Adds
if crs_code == 4326: return(xx, yy)
to bypass the transformer and increase conversion efficiency.
def _convert_to_wgs_84(self, crs_code: int, xxyy: Tuple[float, float]) -> Tuple[float, float]: xx: float = xxyy[0] yy: float = xxyy[1] if crs_code == 4326: return(xx, yy) crs_4326: CRS = CRS("WGS84") crs_proj: CRS = CRS.from_epsg(crs_code) transformer: Transformer = Transformer.from_crs(crs_proj, crs_4326, always_xy=True) return(transformer.transform(xx, yy))
The text was updated successfully, but these errors were encountered:
There's a big efficiency improvment by converting entire arrays:
lon_vals, lat_vals = transformer.transform(x_vals, y_vals)
Perhaps a feature could be
.get_x_array() .get_y_array()
.get_x_array()
.get_y_array()
Thats gets the 2d array of the converted coords
Sorry, something went wrong.
No branches or pull requests
Adds
to bypass the transformer and increase conversion efficiency.
The text was updated successfully, but these errors were encountered: