[GRASS-user] v.proj needs a -g flag for parsable output

Patton, Eric epatton at nrcan.gc.ca
Wed Oct 11 12:05:53 EDT 2006


Thanks, Dylan, I had forgotten all about ogr2ogr. And this is much easier
than v.proj. Thanks!

~ Eric. 

-----Original Message-----
From: Dylan Beaudette
To: grassuser at grass.itc.it
Cc: Patton, Eric
Sent: 10/10/2006 4:14 PM
Subject: Re: [GRASS-user] v.proj needs a -g flag for parsable output

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




More information about the grass-user mailing list