Re: [GRASS-user] [GRASS-dev] v.dissolve confusion

2024-03-15 Thread Vaclav Petras via grass-user
Hi Michael, On Fri, 15 Mar 2024 at 20:00, Michael Barton via grass-dev < grass-...@lists.osgeo.org> wrote: > Any suggestions about what is wrong with either of the versions of this > dissolve command? > > v.dissolve --overwrite input=alcala_subsectors@SAA2024 column=ID >

Re: [GRASS-user] [GRASS-dev] [EXTERNAL] vector patching frustration

2024-03-15 Thread Michael Barton via grass-user
I got this to work *finally*. But there are still complications. Here is an example work flow: 1. Create a map of vector features 2. Create a basic attribute table (e.g., with v.db.addtable). 3. Export that table into a csv file using db.out.ogr 4. Add some attribute fields to that csv file 5.

Re: [GRASS-user] [GRASS-dev] [EXTERNAL] vector patching frustration

2024-03-15 Thread Michael Barton via grass-user
Never mind. I figured it out when I saw the post. Now for the next step. Michael _ C. Michael Barton Associate Director, School of Complex Adaptive Systems (https://scas.asu.edu) Professor, School of Human Evolution & Social Change

[GRASS-user] v.dissolve confusion

2024-03-15 Thread Michael Barton via grass-user
Any suggestions about what is wrong with either of the versions of this dissolve command? v.dissolve --overwrite input=alcala_subsectors@SAA2024 column=ID output=alcala_subsectors_dissolved@SAA2024

Re: [GRASS-user] [GRASS-dev] [EXTERNAL] vector patching frustration

2024-03-15 Thread Michael Barton via grass-user
Something is just not working here. I can't try the new PR until I can get the original cats fixed. v.category does not seem to be working as expected. I have a map with a single area. I clipped it out of another map (where it had cat=18) using v.select. When I check the categories, it looks

Re: [GRASS-user] [GRASS-dev] [EXTERNAL] vector patching frustration

2024-03-15 Thread Michael Barton via grass-user
Thanks Huidae, Your new PR looks like it will seriously simplify patching from the complicated and non-intuitive solution and Vincent describe in current GRASS versions. Michael _ C. Michael Barton Associate Director, School of Complex Adaptive Systems

Re: [GRASS-user] [GRASS-dev] [EXTERNAL] vector patching frustration

2024-03-15 Thread Huidae Cho via grass-user
All, Please review https://github.com/OSGeo/grass/pull/3508. It should fix non-continuous cats. Thanks, Huidae On Fri, Mar 15, 2024 at 10:37 AM Vincent Bain via grass-user < grass-user@lists.osgeo.org> wrote: > Michael, Huidae > > thats's what I was just about to post... you need to care cats

Re: [GRASS-user] [GRASS-dev] [EXTERNAL] vector patching frustration

2024-03-15 Thread Vincent Bain via grass-user
Michael, Huidae thats's what I was just about to post... you need to care cats intervals don't overlap before patching. With the attached set of 2 vector maps you can have a try, typing : v.in.ogr input=/your/path/to/map1.gpkg output=map1 v.in.ogr input=/your/path/to/map2.gpkg output=map2

Re: [GRASS-user] [GRASS-dev] [EXTERNAL] vector patching frustration

2024-03-15 Thread Huidae Cho via grass-user
Michael, Just confirmed your issue. v.random tmp100 npoints=100 seed=100 v.db.addtable tmp100 col="id varchar(20)" v.db.update tmp100 col=id qcol="'tmp100_' || cat" v.random tmp10 npoints=10 seed=10 v.db.addtable tmp10 col="id varchar(20)" v.db.update tmp10 col=id qcol="'tmp10_' || cat"