[GRASS-user] Dissolve polygones from layer1 witch intersect with polygones of layer2

Markus Metz markus.metz.giswork at gmail.com
Tue Nov 29 13:19:47 PST 2016


On Tue, Nov 29, 2016 at 4:01 PM, Mounirsky <kaizersozy at gmail.com> wrote:
>
> I'm trying to automatize geoprocessing tools using grass command lines in
a
> python script,
> so in the case of an isolate polygon (don't overlap) it will not be added
in
> may original vector... !
> I want it to work in any case and because I'm ruining command lines so I
> can't make tests (overlaps or not) !
> Any idea ?

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.

Markus M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20161129/3f26ba19/attachment.html>


More information about the grass-user mailing list