TypeError Traceback (most recent call last)
program.py in <module>
----> 79 disaster_areas.spatial.to_featureclass(location=r"local/location/output.shp")
C:\Anaconda3_2021.11\lib\site-packages\arcgis\features\geo\_accessor.py in to_featureclass(self, location, overwrite)
1838 def to_featureclass(self, location, overwrite=True):
1839 """exports a geo enabled dataframe to a feature class."""
-> 1840 return to_featureclass(geo=self,
1841 location=location,
1842 overwrite=overwrite)
C:\Anaconda3_2021.11\lib\site-packages\arcgis\features\geo\_io\fileops.py in to_featureclass(geo, location, overwrite, validate)
584 fc_name = "%s.shp" % fc_name
585 if SHPVERSION < [2]:
--> 586 return _pyshp_to_shapefile(df=df,
587 out_path=out_location,
588 out_name=fc_name)
C:\Anaconda3_2021.11\lib\site-packages\arcgis\features\geo\_io\fileops.py in _pyshp_to_shapefile(df, out_path, out_name)
679 del row
680 del geom
--> 681 shpfile.save(out_fc)
682
683
C:\Anaconda3_2021.11\lib\site-packages\shapefile.py in save(self, target, shp, shx, dbf)
1111 target = temp.name
1112 generated = True
-> 1113 self.saveShp(target)
1114 self.shp.close()
1115 self.saveShx(target)
C:\Anaconda3_2021.11\lib\site-packages\shapefile.py in saveShp(self, target)
1067 self.shapeType = next((s.shapeType for s in self._shapes if s.shapeType), NULL)
1068 self.shp = self.__getFileObj(target)
-> 1069 self.__shapefileHeader(self.shp, headerType='shp')
1070 self.__shpRecords()
1071
C:\Anaconda3_2021.11\lib\site-packages\shapefile.py in __shapefileHeader(self, fileObj, headerType)
752 if self.shapeType != 0:
753 try:
--> 754 f.write(pack("<4d", *self.bbox()))
755 except error:
756 raise ShapefileException("Failed to write shapefile bounding box. Floats required.")
C:\Anaconda3_2021.11\lib\site-packages\shapefile.py in bbox(self)
724 the lower-left and upper-right corners. It does not contain the
725 elevation or measure extremes."""
--> 726 return self.__bbox(self._shapes)
727
728 def zbox(self):
C:\Anaconda3_2021.11\lib\site-packages\shapefile.py in __bbox(self, shapes)
696 if len(x) == 0:
697 return [0] * 4
--> 698 return [min(x), min(y), max(x), max(y)]
699
700 def __zbox(self, shapes):
TypeError: '<' not supported between instances of 'tuple' and 'float'