Open asdspal opened 3 years ago
I'm facing the same issue. Were you able to get a solution to your problem?
No
Hi,
To resolve this, I updated the else statement in the buggy code i.e. :
From
else:
save_empty_geojson(output_path, polygon_gdf.crs.to_epsg())
to:
else:
polygon_gdf.crs = "EPSG:4326" # set arbitary crs
save_empty_geojson(output_path, polygon_gdf.crs)
This worked for me, the issue was due to the crs object being None, so I just set an arbitrary value. Don't think it matters what you set it to, as it's an empty geojson anyways - bit crude but worked
Thank you for helping us improve
solaris
!Summary of the bug
I'm getting error message "AttributeError: 'NoneType' object has no attribute 'to_epsg' " when invoking mask_to_poly_geojson with do_transform=False.
Steps to reproduce the bug
Paste bug-causing code here
Paste output here