#NEWLINE# def test_to_json_geom_col( self ) : #NEWLINE# #INDENT# df = self . df . copy ( ) #NEWLINE# df [ 'geom' ] = df [ 'geometry' ] #NEWLINE# df [ 'geometry' ] = np . arange ( len ( df ) ) #NEWLINE# df . set_geometry ( 'geom' , inplace = True ) #NEWLINE# text = df . to_json ( ) #NEWLINE# data = json . loads ( text ) #NEWLINE# self . assertTrue ( ( data [ 'type' ] == 'FeatureCollection' ) ) #NEWLINE# self . assertTrue ( ( len ( data [ 'features' ] ) == 5 ) )