#NEWLINE# @ property #NEWLINE# def __geo_interface__( self ) : #NEWLINE# #INDENT# allcoords = [ ] #NEWLINE# for geom in self . geoms : #NEWLINE# #INDENT# coords = [ ] #NEWLINE# coords . append ( tuple ( geom . exterior . coords ) ) #NEWLINE# for hole in geom . interiors : #NEWLINE# #INDENT# coords . append ( tuple ( hole . coords ) ) #NEWLINE# #UNINDENT# allcoords . append ( tuple ( coords ) ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'type' : 'MultiPolygon' , #NEWLINE# 'coordinates' : allcoords , #NEWLINE# #UNINDENT# }