[GRASS-SVN] r72589 - grass-addons/grass7/vector/v.surf.nnbathy
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Apr 3 03:43:37 PDT 2018
Author: robertomarzocchi
Date: 2018-04-03 03:43:37 -0700 (Tue, 03 Apr 2018)
New Revision: 72589
Modified:
grass-addons/grass7/vector/v.surf.nnbathy/nnbathy.py
grass-addons/grass7/vector/v.surf.nnbathy/v.surf.nnbathy.html
Log:
Corrected problem GUI input (mapset name)
Modified: grass-addons/grass7/vector/v.surf.nnbathy/nnbathy.py
===================================================================
--- grass-addons/grass7/vector/v.surf.nnbathy/nnbathy.py 2018-03-31 01:21:50 UTC (rev 72588)
+++ grass-addons/grass7/vector/v.surf.nnbathy/nnbathy.py 2018-04-03 10:43:37 UTC (rev 72589)
@@ -140,7 +140,7 @@
grass.message('Name of z column required for 2D vector maps.')
# convert vector to ASCII
grass.run_command("v.out.ascii", overwrite=1,
- input=options['input'], output=self._tmpcat,
+ input=options['input'].split('@')[0], output=self._tmpcat,
format="point", separator="space", precision=15,
where=options['where'], layer=_layer,
columns=_column)
@@ -157,7 +157,7 @@
for line in fin:
parts = line.split(" ")
from grass.pygrass.vector import VectorTopo
- pnt = VectorTopo(options['input'])
+ pnt = VectorTopo(options['input'].split('@')[0])
pnt.open(mode='r')
check=pnt.read(1)
if check.is2D==True:
Modified: grass-addons/grass7/vector/v.surf.nnbathy/v.surf.nnbathy.html
===================================================================
--- grass-addons/grass7/vector/v.surf.nnbathy/v.surf.nnbathy.html 2018-03-31 01:21:50 UTC (rev 72588)
+++ grass-addons/grass7/vector/v.surf.nnbathy/v.surf.nnbathy.html 2018-04-03 10:43:37 UTC (rev 72589)
@@ -61,7 +61,7 @@
<h2>REQUIREMENTS</h2>
<ul>
- <li><a href="https://code.google.com/p/nn-c/">nnbathy</a> library by Pavel Sakov</li>
+ <li><a href="https://github.com/sakov/nn-c">nnbathy</a> library by Pavel Sakov</li>
</ul>
<h2>SEE ALSO</h2>
@@ -73,7 +73,9 @@
<h2>AUTHOR</h2>
Adam Laza, OSGeoREL, Czech Technical University in Prague (mentor: Martin Landa)
+Corrected by Roberto Marzocchi, <a href="mailto:roberto.marzocchi at gter.it">roberto.marzocchi at gter.it</a>
+
<p>
Based on v.surf.nnbathy from GRASS 6 by:<br>
Hamish Bowman, Otago University, New Zealand<br>
More information about the grass-commit
mailing list