[GRASS-user] automate v.extrude from a table ?
gene
martin.laloux at gmail.com
Sat Jun 2 05:42:53 PDT 2012
I forgot, my processing in Python is:
base = grass.read_command('v.db.select', map = "boreholes", columns =
"A,B,C",fs=',', flags = 'c')
result = base.split('\n')
boreholes=[]
for bore in boreholes:
boreholes(bore.split(','))
and all that is needed is in the list but if I apply the treatment to a list
item, i.e.
grass.run_command("v.extrude", input="boreholes", output="test",
zshift=float(boreholes[0][1]), height=
float(boreholes[0][0])-float(boreholes[0][1]))
the result is, as guessed, applied to all elements of the layer.
Is it possible to do without splitting the layer ?
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/automate-v-extrude-from-a-table-tp4978722p4978730.html
Sent from the Grass - Users mailing list archive at Nabble.com.
More information about the grass-user
mailing list