From 03517c951cc6e54f6840f6eb92c16e74273bdb78 Mon Sep 17 00:00:00 2001 From: Matthew Perry Date: Fri, 31 Jul 2015 14:21:10 -0400 Subject: [PATCH] cli: open output file for writing as plain text --- src/rasterstats/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rasterstats/cli.py b/src/rasterstats/cli.py index 17f162c..b0f7f9a 100644 --- a/src/rasterstats/cli.py +++ b/src/rasterstats/cli.py @@ -13,7 +13,7 @@ @click.command(context_settings=SETTINGS) @click.argument('input-geojson', type=click.File('rb'), default='-') -@click.argument('output-geojson', type=click.File('wb'), default='-') +@click.argument('output-geojson', type=click.File('w'), default='-') @click.version_option(version=version, message='%(version)s') @click.option('--raster', '-r', required=True, type=click.Path(exists=True)) @click.option('--all-touched/--no-all-touched', default=False)