[GRASS-user] Use of v.in.ascii in python with stdin
Johannes Radinger
johannesradinger at gmail.com
Mon Jun 17 05:24:03 PDT 2013
Hi,
I want to create a point via python at a specific location using the
v.in.ascii command. How can I also specify the colum names or how can a
header be used in combination with the standard input. As it is only one
single point I don't want to create a txt file containing the header and
the info. I tried following in GRASS7:
grass.write_command("v.in.ascii",
overwrite=True,
format="point",
#flags="n",
input="-",
x=1,
y=2,
stdin="""X,Y,Name\n
10:20:08E,53:25:27N,my_point_1""",
output="my_point",
separator=",")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130617/fb2295ac/attachment.html>
More information about the grass-user
mailing list