<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FTimNorwey</id>
	<title>GRASS-Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FTimNorwey"/>
	<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/wiki/Special:Contributions/%E2%9A%A0%EF%B8%8FTimNorwey"/>
	<updated>2026-09-01T11:13:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Extracting_coordinates_of_points_and_writing_them_to_the_attribute_table&amp;diff=13030</id>
		<title>Extracting coordinates of points and writing them to the attribute table</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Extracting_coordinates_of_points_and_writing_them_to_the_attribute_table&amp;diff=13030"/>
		<updated>2011-03-27T18:57:13Z</updated>

		<summary type="html">&lt;p&gt;⚠️TimNorwey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The workflow below describes how coordinates can be extracted from points and how they can be written into the attribute table. &lt;br /&gt;
&lt;br /&gt;
The example is based on a '''CSV'''-File:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
674065.18600,3367985.59300,25.83&lt;br /&gt;
674066.43200,3367982.46800,25.96&lt;br /&gt;
674065.99100,3367983.83600,40.24&lt;br /&gt;
674065.92600,3367985.70100,26.00&lt;br /&gt;
&lt;br /&gt;
''' '''&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
=== Importing points ===&lt;br /&gt;
For the import of the CSV-File use {{cmd|v.in.ascii}}.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.in.ascii -z input=/path/to/points_map.csv output=points format=point skip=0 x=1 y=2 z=3 cat=0 fs=,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add attribute table for vector ===&lt;br /&gt;
Through {{cmd|v.db.addtable}} an attribute table for the points is created.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.db.addtable map=points_map table=points_map columns=&amp;quot;cat integer&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Connect the vector to the attribute table ===&lt;br /&gt;
Use {{cmd|v.db.connect}} to connect the vector with its corresponding table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.db.connect -o map=points_map table=points_map&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add columns ===&lt;br /&gt;
Use {{cmd|v.db.addcol}} to add the columns to the attribute table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.db.addcol map=points columns=&amp;quot;x double precision, y double precision, z double precision&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add coordinates ===&lt;br /&gt;
Use {{cmd|v.to.db}} to write the coordinates of the points into the attribute table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.to.db map=points_map opt=coor columns=&amp;quot;x,y,z&amp;quot; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--[[User:TimNorwey|TimNorwey]] 14:01, 26 March 2011 (PDT)&lt;br /&gt;
&lt;br /&gt;
[[Category: FAQ]]&lt;/div&gt;</summary>
		<author><name>⚠️TimNorwey</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Extracting_coordinates_of_points_and_writing_them_to_the_attribute_table&amp;diff=13028</id>
		<title>Extracting coordinates of points and writing them to the attribute table</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Extracting_coordinates_of_points_and_writing_them_to_the_attribute_table&amp;diff=13028"/>
		<updated>2011-03-27T14:54:11Z</updated>

		<summary type="html">&lt;p&gt;⚠️TimNorwey: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The workflow below describes how coordinates can be extracted from points and how they can be written into the attribute table. &lt;br /&gt;
&lt;br /&gt;
The example is based on a '''CSV'''-File:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
674065.18600,3367985.59300,25.83&lt;br /&gt;
674066.43200,3367982.46800,25.96&lt;br /&gt;
674065.99100,3367983.83600,40.24&lt;br /&gt;
674065.92600,3367985.70100,26.00&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
__TOC__&lt;br /&gt;
=== Importing points ===&lt;br /&gt;
For the import of the CSV-File use {{cmd|v.in.ascii}}.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.in.ascii -z input=/path/to/points_map.csv output=points format=point skip=0 x=1 y=2 z=3 cat=0 fs=,&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add attribute table for vector ===&lt;br /&gt;
Through {{cmd|v.db.addtable}} an attribute table for the points is created.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.db.addtable map=points_map table=points_map columns=&amp;quot;cat integer&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Connect the vector to the attribute table ===&lt;br /&gt;
Use {{cmd|v.db.connect}} to connect the vector with its corresponding table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.db.connect -o map=points_map table=points_map&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add columns ===&lt;br /&gt;
Use {{cmd|v.db.addcol}} to add the columns to the attribute table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.db.addcol map=points columns=&amp;quot;x double precision, y double precision, z double precision&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add coordinates ===&lt;br /&gt;
Use {{cmd|v.to.db}} to write the coordinates of the points into the attribute table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.to.db map=points_map opt=coor columns=&amp;quot;x,y,z&amp;quot; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--[[User:TimNorwey|TimNorwey]] 14:01, 26 March 2011 (PDT)&lt;br /&gt;
&lt;br /&gt;
[[Category: FAQ]]&lt;/div&gt;</summary>
		<author><name>⚠️TimNorwey</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Extracting_coordinates_of_points_and_writing_them_to_the_attribute_table&amp;diff=12992</id>
		<title>Extracting coordinates of points and writing them to the attribute table</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Extracting_coordinates_of_points_and_writing_them_to_the_attribute_table&amp;diff=12992"/>
		<updated>2011-03-26T21:01:26Z</updated>

		<summary type="html">&lt;p&gt;⚠️TimNorwey: Created page with &amp;quot;The workflow below describes how coordinates can be extracted from points and how they can be written into the attribute table.   The example is based on a '''CSV'''-File: &amp;lt;sourc...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The workflow below describes how coordinates can be extracted from points and how they can be written into the attribute table. &lt;br /&gt;
&lt;br /&gt;
The example is based on a '''CSV'''-File:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
674065.18600,3367985.59300,25.83&lt;br /&gt;
674066.43200,3367982.46800,25.96&lt;br /&gt;
674065.99100,3367983.83600,40.24&lt;br /&gt;
674065.92600,3367985.70100,26.00&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Importing points ===&lt;br /&gt;
For the import of the CSV-File use {{cmd|v.in.ascii}}.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.in.ascii -z input=/.../.../.../points.csv output=points format=point skip=0 x=1 y=2 z=3 cat=0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add attribute table for vector ===&lt;br /&gt;
Through {{cmd|v.db.addtable}} an attribute table for the points is created.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.db.addtable map=points layer=1 table=points columns=&amp;quot;cat integer&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Connect the vector to the attribute table ===&lt;br /&gt;
Use {{cmd|v.db.connect}} to connect the vector with its corresponding table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.db.connect -o map=points driver=dbf database=$GISDBASE/$LOCATION_NAME/$MAPSET/dbf/ table=points key=cat layer=1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add columns ===&lt;br /&gt;
Use {{cmd|v.db.addcol}} to add the columns to the attribute table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.db.addcol map=points layer=1 columns=&amp;quot;x double precision, y double precision, z double precision&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add coordinates ===&lt;br /&gt;
Use {{cmd|v.to.db}} to write the coordinates of the points into the attribute table.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
v.to.db map=points opt=coor columns=&amp;quot;x,y,z&amp;quot; &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--[[User:TimNorwey|TimNorwey]] 14:01, 26 March 2011 (PDT)&lt;/div&gt;</summary>
		<author><name>⚠️TimNorwey</name></author>
	</entry>
</feed>