diff --git a/fmtm_splitter/splitter.py b/fmtm_splitter/splitter.py index bd58e61..b1051e8 100755 --- a/fmtm_splitter/splitter.py +++ b/fmtm_splitter/splitter.py @@ -778,11 +778,22 @@ def main(args_list: list[str] | None = None): raise ValueError(err) if args.meters: - split_by_square( - args.boundary, - meters=args.meters, - outfile=args.outfile, - ) + if args.extract: + file = open(args.extract, "r") + data = geojson.load(file) + file.close() + split_by_square( + args.boundary, + meters=args.meters, + osm_extract=data, + outfile=args.outfile, + ) + else: + split_by_square( + args.boundary, + meters=args.meters, + outfile=args.outfile, + ) elif args.number: split_by_sql( args.boundary,