Skip to content

Commit 23d67a4

Browse files
author
root
committed
changes from master
1 parent 152aa4f commit 23d67a4

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

import_module/create_groups.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,15 @@ def create_tasks(xmin, xmax, ymin, ymax, config):
449449
def 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:

import_module/run_import.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import time
88
# add some files in different folders to sys.
99
# these files can than be loaded directly
10-
sys.path.insert(0, '../cfg/')
11-
sys.path.insert(0, '../utils/')
10+
sys.path.insert(0, './cfg/')
11+
sys.path.insert(0, './utils/')
1212

1313
import logging
1414
import os

0 commit comments

Comments
 (0)