[GRASSLIST:7324] v.patch does not copy table

Hi,

In trying to merge about 20 GPS waypoint files with v.patch, I found that a
new table was not created with the attributes from all of the input maps.

Alternatively I can do this with v.out.ascii.db, awk, and then v.in.ascii ...
but is there any plan for preserving point attributes in v.patch?

thanks!

--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341

In trying to merge about 20 GPS waypoint files with v.patch, I found
that a new table was not created with the attributes from all of the
input maps.

I think the issue is that v.patch doesn't do it as it doesn't know if
all the tables have all the same number and type of columns, etc. ??

Michael Barton has written v.append to overcome this by exporting to a
shape file and using ogr2ogr to merge before reimporting to GRASS.

see the wiki add-ons page:
  http://grass.gdf-hannover.de/twiki/bin/view/GRASS/GrassAddOns

Alternatively I can do this with v.out.ascii.db, awk, and then
v.in.ascii ... but is there any plan for preserving point attributes
in v.patch?

dunno.

Hamish

Dylan,

This is an annoying problem isn't it. I did a script to deal with this and
attach it here. It's also on the GRASS WIKI. It's a bit rough, but should
work in most cases.

Michael

On 6/27/05 8:38 PM, "Dylan Beaudette" <dylan@iici.no-ip.org> wrote:

Hi,

In trying to merge about 20 GPS waypoint files with v.patch, I found that a
new table was not created with the attributes from all of the input maps.

Alternatively I can do this with v.out.ascii.db, awk, and then v.in.ascii ...
but is there any plan for preserving point attributes in v.patch?

thanks!

____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

(attachments)

v.append (2.04 KB)