I want to dissolve polygons from layer1 witch overlap with polygons of layer2
keeping attributes table of layer1 and using command line.
What I've done :
v.in.ogr -o input=original_plygons output=layer1
v.in.ogr -o input=plygons_to_add output=layer2
v.patch -a input=layer2 output=layer1
(v.dissolve input=layer1 output=dissolved column=??? )
the problem is to dissolve you should chose a column ! and after the patch
(merge) the overlapping polygons of layer2 doesn't have a common same value
to dissolve them correctly...
Can you please help me to solve this problem ?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Dissolve-polygones-from-layer1-witch-intersect-with-polygones-of-layer2-tp5297681.html
Sent from the Grass - Users mailing list archive at Nabble.com.
On Mon, Nov 28, 2016 at 3:37 PM, Mounirsky <kaizersozy@gmail.com> wrote:
I want to dissolve polygons from layer1 witch overlap with polygons of layer2
keeping attributes table of layer1 and using command line.
What I’ve done :
v.in.ogr -o input=original_plygons output=layer1
v.in.ogr -o input=plygons_to_add output=layer2
v.patch -a input=layer2 output=layer1
(v.dissolve input=layer1 output=dissolved column=??? )
the problem is to dissolve you should chose a column ! and after the patch
(merge) the overlapping polygons of layer2 doesn’t have a common same value
to dissolve them correctly…
Can you please help me to solve this problem ?
You could use v.select to select those polygons from vector 1 that overlap with polygons from vector 2, the dissolve the selected polygons.
Markus M
–
View this message in context: http://osgeo-org.1560.x6.nabble.com/Dissolve-polygones-from-layer1-witch-intersect-with-polygones-of-layer2-tp5297681.html
Sent from the Grass - Users mailing list archive at Nabble.com.
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
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 ?
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Dissolve-polygons-from-layer1-witch-overlaps-with-polygons-of-layer2-tp5297681p5297873.html
Sent from the Grass - Users mailing list archive at Nabble.com.
On Tue, Nov 29, 2016 at 4:01 PM, Mounirsky <kaizersozy@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