<div dir="ltr"><div><div><br>On Tue, Nov 29, 2016 at 4:01 PM, Mounirsky <<a href="mailto:kaizersozy@gmail.com">kaizersozy@gmail.com</a>> wrote:<br>><br>> I'm trying to automatize geoprocessing tools using grass command lines in a<br>> python script,<br>> so in the case of an isolate polygon (don't overlap) it will not be added in<br>> may original vector... !<br>> I want it to work in any case and because I'm ruining command lines so I<br>> can't make tests (overlaps or not) !<br>> Any idea ?<br><br></div>You could use vector_info_topo from grass.script to get the number of areas in your input map. If the input map contains only one area and if you want to keep this area, you could simply keep the input map in your python script.<br><br></div>Markus M<div><br></div></div>