Pardon for butting in...

On 08/10/2018 04:45 PM, Rich Shepard wrote:
On Thu, 9 Aug 2018, Daniel Victoria wrote:

Try using v.to.db to add the coordinates of each point to the attribute
table and then export it using DB.out.ogr.

Daniel,

  The points have an elevation -- in feet -- associated with the geographic
location. Is there a grass module that will convert that attribute table
column to meters (the location's lenth units)? Or, should I do this on the
source data and re-import/re-project these data?

If I understand, you have a vector of points with x,y and z in the attribute table, and you want to transform to some different coordinate system, while also transforming the elevation.

In that case it might make sense to save the attribute table as an ASCII (csv) file, then use v.in.ascii with the -z flag to create a 3D vector (pointing to the elev column as "z=...").
Then when you transform to the new CRS, v.proj will also transform the elevation. In the new LOCATION, add three new columns to the vector: east,west,new_elev. Then use v.to.db to uploads the values with the "option=coor" and "columns=east,north,new_elev".

That should give you the new x coords, y_coords and new elevation.

HTH

Regards,

Rich
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

-- 
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to