| 
 
 NAMEv.transform - Performs an affine transformation (shift, scale and rotate) on vector map. KEYWORDSvector, transformation, geometry, GCP SYNOPSISv.transform
   Flags:
 Parameters:
 DESCRIPTIONv.transform performs an affine transformation (translate and rotate) of a vector map. An affine transform includes one or several linear transformations (scaling, rotation) and translation (shifting). Several linear transformations can be combined in a single operation. The command can be used to georeference unreferenced vector maps or to modify existing geocoded maps. NOTESCoordinate transformation based on Ground Control Points (GCPs) is done by v.rectify and not supported by v.transform. Transformation parameters (i.e. xshift, yshift, etc.) can be fetched from attribute table connected to the vector map. In this case vector objects can be transformed with different parameters based on their category number. If the parameter cannot be fetched from the table, default value is used instead. Note that the transformation matrix can be printed by m.transform. EXAMPLEDXF/DWG drawingsMost DXF/DWG drawings are done within XY coordinate space. To
    transform them to a national grid, we can use v.transform together
    with v.rectify and a first-order transformation.
   v.transform -t in=watertowerXY out=watertower_z zscale=0.04 zshift=1320 v.rectify in=watertower_z out=watertowerUTM points=wt.points order=1 Extrude 2D vector points to 3D based on attribute column valuesSpearfish example with manual table editing for vertical shift:
   # work on own map copy: g.copy vect=archsites@PERMANENT,myarchsites # add new ’zs’ column to later store height of each site: v.db.addcolumn myarchsites col="zs double precision" v.db.update myarchsites layer=1 column=zs value="cat * 1000" # perform z transformation: v.transform -t input=archsites output=myarchsites3d column="zshift:zs" table="archsites_t" # drop table containing transformation parameters: echo "drop table archsites_t" | db.execute The resulting map is a 3D vector map. Extrude 2D vector points to 3D based on attribute column valuesSpearfish example with automated elevation extraction for vertical
    shift:
   # work on own map copy: g.copy vect=archsites@PERMANENT,myarchsites # add new ’zs’ column to later store height of each site: v.db.addcolumn myarchsites col="zs double precision" # set region to elevation map and fetch individual heights: g.region raster=elevation.10m -p v.what.rast myarchsites rast=elevation.10m col=zs # verify: v.db.select myarchsites # perform transformation to 3D v.transform -t myarchsites output=myarchsites3d column="zshift:zs" layer=1 # drop table containing transformation parameters v.db.dropcolumn myarchsites3d col=zs The resulting map is a 3D vector map. SEE ALSOm.transform, i.rectify, v.rectify, r.region AUTHORSRadim Blazek, ITC-irst, Trento, Italy,
   SOURCE CODEAvailable at: v.transform source code (history) Latest change: Monday Feb 27 13:45:25 2023 in commit: a82501dc85294207e8e58437c3ec7f1056465ed4 Main index | Vector index | Topics index | Keywords index | Graphical index | Full index © 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual 
 
  |