Open GoogleCodeExporter opened 9 years ago
Sorry Title should be: Saving empty file
Original comment by frank.th...@gmail.com
on 7 Dec 2011 at 4:25
Original comment by geospati...@gmail.com
on 7 Dec 2011 at 6:28
Thanks for reporting this. It lead me in the right direction to finding what
was going wrong.
Have discovered that at this time, as a workaround, you can check the number of
shapes in the instance and then decide whether or not to save.
if len(w._shapes) > 0:
w.save('polygon.shp')
else:
#Don't save
None;
Original comment by fusionst...@gmail.com
on 15 Aug 2014 at 2:36
Original issue reported on code.google.com by
frank.th...@gmail.com
on 7 Dec 2011 at 3:32