Skip to content

Commit

Permalink
v.stats: Various fixes (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Apr 6, 2021
1 parent 01b6b68 commit b88bb87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions grass7/vector/v.stats/v.stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ def split(x):
if len(rasters) != len(rstcsv):
raise
prefixes = rprefix if rprefix else rasters
else:
prefixes = None

skipshp = opt['skipshape'].split(',') if opt['skipshape'] else []
skiprst = opt['skipunivar'].split(',') if opt['skipunivar'] else []
Expand Down
2 changes: 1 addition & 1 deletion grass7/vector/v.stats/vstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_shp_csv(vector, csv=None, overwrite=False, separator=';'):

def get_zones(vector, zones, layer=1, overwrite=False):
v2rast = Module('v.to.rast', input=vector, layer=str(layer), type='area',
output=zones, overwrite=overwrite, rows=65536, use='cat')
output=zones, overwrite=overwrite, use='cat')
rclr = Module("r.colors", map=zones, color="random")


Expand Down

0 comments on commit b88bb87

Please sign in to comment.