<div dir="ltr"><div>Hi Moritz,<br><br>Thank you. Just to check, there's nothing like a
startup cost each time you call grass from an external (bash or python)
script?<br><br></div>-Wiley<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 18, 2013 at 3:00 AM, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 16/10/13 07:59, Wiley Bogren wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi GRASS community!<br>
<br>
I'm amazed how well this software handles vector operations - especially<br>
the overlay operation seems unparalleled in open source software. Thank<br>
you very much to everyone who has been involved in the development process!<br>
<br>
I would like to script a workflow where I apply the same set of<br>
operations on a few hundred sets of shapefiles, consisting of v.in.ogr,<br>
several sets of v.overlay, some database operations and v.out.ogr. The<br>
shapefiles are 20-30MB apiece, containing many polygons, each with many<br>
vertices.<br>
<br>
Is there a difference in speed or processor efficiency between the<br>
different scripting approaches? By which I mean python vs bash shell,<br>
and within the GRASS environment vs calling the functions from outside<br>
the environment (like via python grass.script).<br>
<br>
Thank you for any opinions or advice!<br>
</blockquote>
<br></div></div>
I see that no one ever answered this. AFAIK, speed will depend on how much you do in the script and how much you have GRASS modules do. The latter don't change their speed depending on the scripting language calling them, so if you only use the script to link different GRASS modules, I would think that time difference will be negligible between languages.<span class="HOEnZb"><font color="#888888"><br>
<br>
Moritz<br>
</font></span></blockquote></div><br></div>