You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
order of projected coordinates is typically not swapped by CRS definition.
Also I would strongly suggest extracting and labeling lon/lat from p rather than using index based access, something like this up top: lon, lat = p, as this then clearly communicates the expected order of coordinates on input to the transform function.
The text was updated successfully, but these errors were encountered:
lon, lat = p
# GDAL 3 reverses coordinate order, because... standards
if LON_LAT_ORDER:
# GDAL 2.0 order
x, y, z = t.TransformPoint(lon, lat)
else:
# GDAL 3.0 order
x, y, z = t.TransformPoint(lat, lon)
return [x, y]
I know it's not merged yet, but I saw this code in Slack, and pretty sure this bit is wrong:
cube-in-a-box/scripts/ls_public_bucket.py
Line 176 in 5ea202f
Should be
order of projected coordinates is typically not swapped by CRS definition.
Also I would strongly suggest extracting and labeling
lon/lat
fromp
rather than using index based access, something like this up top:lon, lat = p
, as this then clearly communicates the expected order of coordinates on input to thetransform
function.The text was updated successfully, but these errors were encountered: