[GRASS-user] Copying from a mapset in another data directory
Glynn Clements
glynn at gclements.plus.com
Fri May 14 14:05:22 EDT 2010
Jonathan Greenberg wrote:
> I have some rasters in a grass data directory on a different mounted
> drive in unix that i want to copy into a different data directory +
> mapset -- i can't seem to figure out how to do this with g.copy, which
> AFAIK only copies from mapsets within a given data directory.
Indeed, g.copy only works on maps within the same location. For good
reason: maps in different locations typically have different
projections, so you can't simply copy the data.
The only supported ways of "copying" a map in a different location
are:
1. Use r.proj or v.proj, which will re-project the data based upon the
projections of the source location and the current location.
2. Use e.g. r.out.gdal/v.out.ogr to export the data and
r.in.gdal/v.in.ogr to re-import it. The latter will check that the
projection is correct.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list