Browse Source

dumps a JSON array containing GeoJSON objects (1 per intersected zone)

master
Marc Poulhiès 11 years ago
parent
commit
2f1227a80c
  1. 5
      bin/intersector.py

5
bin/intersector.py

@ -173,11 +173,10 @@ def main():
# if we asked for GeoJSON dump
if args.dumpjson:
fout = open(args.dumpjson, "w")
iarray = '[' + ",\n".join([geojson.dumps(i) for i in intersections]) + '\n]'
print >> fout, "var intersections = " + iarray + ';\n'
iarray = '[' + ",\n".join([geojson.dumps(i) for i in intersections]) + '\n]\n'
print >> fout, iarray;
fout.close()
return 0
if __name__ == "__main__":

Loading…
Cancel
Save