@@ -449,11 +449,15 @@ def create_tasks(xmin, xmax, ymin, ymax, config):
449449def create_groups (groups , config ):
450450 # this function will create a json file to upload in firebase groups table
451451
452+ print (config )
452453 # Create the output Driver
453454 outDriver = ogr .GetDriverByName ('GeoJSON' )
455+ print (outDriver )
454456 # Create the output GeoJSON
455- outfile = 'data/groups_{}.geojson' .format (config ["project_id" ])
457+ outfile = '/data/groups_{}.geojson' .format (config ["project_id" ])
458+ print (outfile )
456459 outDataSource = outDriver .CreateDataSource (outfile )
460+ print (outDataSource )
457461 outLayer = outDataSource .CreateLayer (outfile , geom_type = ogr .wkbPolygon )
458462
459463 outLayer .CreateField (ogr .FieldDefn ('project_id' , ogr .OFTInteger ))
@@ -532,8 +536,10 @@ def run_create_groups(input_file, project_id, tileserver, custom_tileserver_url,
532536 #save_geom_as_geojson(horizontal_slice_infos['slice_collection'], outfile)
533537
534538 raw_groups = get_vertical_slice (horizontal_slice_infos , config ['zoom' ])
535-
539+ print (raw_groups )
540+ print ('running create groups' )
536541 groups = create_groups (raw_groups , config )
542+ print ('ran create_groups' )
537543 outfile = 'data/groups_{}.json' .format (config ["project_id" ])
538544 # save groups as json file
539545 with open (outfile , 'w' ) as fp :
0 commit comments