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
I do get the error local variable 'new_coords' referenced before assignment when I call transform.transform_geom() with an indicated value for the optional precision parameter other than the default value of -1.
Expected behavior and actual behavior.
I expected to be able to transform a GeometryCollection with the precision of 3 decimal places through the optional parameter precision of transform.transform_geom().
You are right, @rbuffat, thanks for the hint of this code snippet!
I implemented the rounding myself now, but it would be nice to be able to use this optional precision parameter for GeometryCollections in future releases or at least have a more precise error message :)
SaCodematix
changed the title
Parameter precision not working for transform_geom()
Parameter precision of transform_geom() not working for GeometryCollections
Oct 19, 2020
I do get the error
local variable 'new_coords' referenced before assignment
when I calltransform.transform_geom()
with an indicated value for the optionalprecision
parameter other than the default value of-1
.Expected behavior and actual behavior.
I expected to be able to transform a GeometryCollection with the precision of 3 decimal places through the optional parameter
precision
oftransform.transform_geom()
.Steps to reproduce the problem.
Output:
Operating system
Linux Mint 19.3 (Tricia, Ubuntu Bionic)
Fiona and GDAL version and provenance
installed via conda:
Fiona 1.8.17
GDAL 3.1.3
Python 3.8.5
The text was updated successfully, but these errors were encountered: