[GRASS-user] output tables

Hello,

I just want to output all my data in file tenn_county_all into a comma delimited file with all variables.

I have done

v.out.ascii format=standard

it works but I only get x,y coord and the ID but I need all variables.

-84.28851567|35.99395611|1
-84.25999586|36.01053534|2
-84.25146063|35.95974559|3
-84.24508926|36.01258551|4
-84.20325976|36.00941242|5

Thanks

Matthew


From: mulbran@hotmail.com
To: grass-user@lists.osgeo.org
Subject: bounding box grid and polygon layer
Date: Wed, 28 Jan 2009 10:27:54 +0000

Hello,

I want to give census tracts categories values ( layer tenn_county_all) based on there centroids location in a grid layer that I have made (tenn_county_grid). The grid is nubered 1-42 and also as letters i.e. row A colunm G.
I was planning to do something like

if centroid of tract X in grid box 12 write out category 12 for that tract X.

I don’t want to do this by hand but I am not sure how or if I can query between two layers.

I am not attached to any particular method just need something that will do the job.

I looked up info on the web and found bounding box in v.edit so I think that is a way to go but have not seen anything on how to do this.

Thanks,

Matthew


Windows Live™: E-mail. Chat. Share. Get more ways to connect. See how it works.


Windows Live™ Hotmail®:…more than just e-mail. Check it out.

Which db driver do you use ? which variables do you need to export
(elevation, length, etc.)?

Have a look at v.to.db.

Good luck,
Vincent

Le samedi 28 février 2009 à 09:26 +0000, Matthew Mulbrandon a écrit :

Hello,

I just want to output all my data in file tenn_county_all into a comma
delimited file with all variables.

I have done

v.out.ascii format=standard

it works but I only get x,y coord and the ID but I need all variables.

-84.28851567|35.99395611|1
-84.25999586|36.01053534|2
-84.25146063|35.95974559|3
-84.24508926|36.01258551|4
-84.20325976|36.00941242|5

Thanks

Matthew

______________________________________________________________________
From: mulbran@hotmail.com
To: grass-user@lists.osgeo.org
Subject: bounding box grid and polygon layer
Date: Wed, 28 Jan 2009 10:27:54 +0000

Hello,

I want to give census tracts categories values ( layer
tenn_county_all) based on there centroids location in a grid layer
that I have made (tenn_county_grid). The grid is nubered 1-42 and also
as letters i.e. row A colunm G.
I was planning to do something like

if centroid of tract X in grid box 12 write out category 12 for that
tract X.

I don't want to do this by hand but I am not sure how or if I can
query between two layers.

I am not attached to any particular method just need something that
will do the job.

I looked up info on the web and found bounding box in v.edit so I
think that is a way to go but have not seen anything on how to do
this.

Thanks,

Matthew

______________________________________________________________________
Windows Live™: E-mail. Chat. Share. Get more ways to connect. See how
it works.

______________________________________________________________________
Windows Live™ Hotmail®:…more than just e-mail. Check it out.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Matthew Mulbrandon wrote:

I just want to output all my data in file tenn_county_all
into a comma delimited file with all variables.

I have done

v.out.ascii format=standard

it works but I only get x,y coord and the ID but I need all
variables.

-84.28851567|35.99395611|1
-84.25999586|36.01053534|2
-84.25146063|35.95974559|3
-84.24508926|36.01258551|4
-84.20325976|36.00941242|5

try v.out.ascii.db from wiki addons or v.out.ascii's new column= option
in GRASS 6.4.

also v.db.select or db.select might help.

Hamish