Skip to content

Commit f72bac6

Browse files
committed
Update m4_geocoordinate_converter
1 parent a0258ba commit f72bac6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

m4_geocoordinate_converter/convert_geojson_to_geocoord.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ def main(args):
4040
try:
4141
img_data = geojson.load(img_geojson)
4242
except json.decoder.JSONDecodeError:
43-
if os.stat(img_geojson).st_size == 0:
43+
if os.stat(geojson_file).st_size == 0:
4444
with open(os.path.join(output_dir, geojson_filename_id + '.geojson'), 'w') as fp:
4545
pass
46+
logging.info('Done generating empty geocoord geojson for %s', geojson_file)
4647
else:
4748
logging.info('JSONDecodeError %s', geojson_file)
48-
continue
49-
49+
return
5050

5151
for img_feature in img_data['features']:
5252
arr = np.array(img_feature['geometry']['coordinates'])

0 commit comments

Comments
 (0)