I'd like to get people's thoughts on this - could we have a -g flag in
v.proj to output a listing of input maps in the specified location in
script-friendly format? I need to reproject about 200 maps and the -l output
is too messy to feed into a loop. I guess I can always do:
v.proj -l input=dummy location=LATLONG_WGS84 mapset=PERMANENT | awk 'BEGIN
{OFS="," ; ORS=","} NF == 2 {print $1, $2}' | sed 's/,$//g' > input_list.txt
It would be nice to be able to automatically output comma-delimited input
maps for those big batch jobs, though.
~ Eric.
On Tuesday 10 October 2006 12:30, Patton, Eric wrote:
I'd like to get people's thoughts on this - could we have a -g flag in
v.proj to output a listing of input maps in the specified location in
script-friendly format? I need to reproject about 200 maps and the -l
output is too messy to feed into a loop. I guess I can always do:
v.proj -l input=dummy location=LATLONG_WGS84 mapset=PERMANENT | awk 'BEGIN
{OFS="," ; ORS=","} NF == 2 {print $1, $2}' | sed 's/,$//g' >
input_list.txt
It would be nice to be able to automatically output comma-delimited input
maps for those big batch jobs, though.
~ Eric.
Hi Eric,
not sure if this will work for you, but I find that ogr2ogr is a bit simpler
to use as compared to v.proj. Also, it is simple to loop over an entire
folder of files, saving the result to a different folder.
Cheers,
--
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341