R: [Proj] cs2cs usage

Frank Warmerdam warmerdam at pobox.com
Thu Mar 20 17:52:41 EDT 2008


Marco Pasetti wrote:
> Hi all,
> 
> I forgot in the previous mails:
> 
> 1) is there a way to *pass* the input latitude and longitude coordinates to
> cs2cs command, without type them at command prompt?

Yes

> 2) can the cs2cs command write the *results* in an output file?

Yes

In particular cs2cs works as a filter.  It's input can be redirected from
a file, and it's output can be redirected to a file.

cs2cs {parameters}  < input.txt   > output.txt

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the Proj mailing list