Skip to content

Commit

Permalink
updated changelog; cleaned code
Browse files Browse the repository at this point in the history
  • Loading branch information
ungarj committed Mar 12, 2018
1 parent 18a50e7 commit 5515a58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -8,6 +8,8 @@ Changelog
* added ``RasterWindowMemoryFile()`` context manager around ``rasterio.io.MemoryFile`` (#105)
* passing on dictionary together with numpy array from user process will write the dictionary as GeoTIFF tag (#101)
* added ``--wkt_geometry`` to ``execute`` which enables providing process bounds via WKT
* ``mapchete index`` command now can create vector index files (``GeoJSON`` and ``GeoPackage``) and a text file containing output tile paths
* ``output.tiles_exist()`` now has two keyword arguments ``process_tile`` and ``output_tile`` to enable check for both tile types

----
0.19
Expand Down
8 changes: 4 additions & 4 deletions mapchete/cli/index.py
Expand Up @@ -28,10 +28,6 @@ def index(args):
if not any([args.geojson, args.gpkg, args.txt]):
raise ValueError(
"one of 'geojson', 'gpkg', or 'txt' must be provided")
if args.wkt_geometry:
bounds = wkt.loads(args.wkt_geometry).bounds
else:
bounds = args.bounds

# process single tile
if args.tile:
Expand Down Expand Up @@ -65,6 +61,10 @@ def index(args):
logger.debug(tile)

else:
if args.wkt_geometry:
bounds = wkt.loads(args.wkt_geometry).bounds
else:
bounds = args.bounds
with mapchete.open(
args.mapchete_file, mode="readonly", zoom=args.zoom, bounds=bounds
) as mp:
Expand Down

0 comments on commit 5515a58

Please sign in to comment.