Skip to content

Commit

Permalink
- minor improvements to the test.py service (gdalContour)
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Sep 28, 2018
1 parent 653fad3 commit 77c27f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wpsremote/xmpp_data/configs/myservice/code/test.py
Expand Up @@ -23,7 +23,6 @@
gdalContour = r'/usr/bin/gdal_contour'
dst = r'contour_'+id[:13]
src = '%s/../../../resource_dir/srtm_39_04/srtm_39_04_c.tif' % os.path.dirname(os.path.abspath(__file__))
trg = '%s/../../../output/%s.shp' % (os.path.dirname(os.path.abspath(__file__)), dst)
cmd = '-a elev' # just for example!
interval = '-i'

Expand All @@ -35,6 +34,8 @@ def __init__(self, args):


def run(self):
trg = '%s/../../../output/%s/%s.shp' % (os.path.dirname(os.path.abspath(__file__)), self.args.execution_id, dst)

#fullCmd = ' '.join([gdalContour, cmd, self.youCanQuoteMe(src), self.youCanQuoteMe(dst), interval, self.args.interval])
fullCmd = ' '.join([gdalContour, cmd, src, trg, interval, self.args.interval])
self.logger.debug("Running command > " + fullCmd)
Expand Down

0 comments on commit 77c27f9

Please sign in to comment.