[gdal-dev] gdaltransform - output into textfile

Moskovitz, Bob@DOC Bob.Moskovitz at conservation.ca.gov
Tue Oct 23 09:45:06 PDT 2012


That's too bad :(  Another way to capture the output is to use "script" before you run gdaltransform (w/o redirecting out).  After you are done with gdaltransform, hit CTRL-C, and view the file "typescript".

-Bob

From: philipp.glira at gmail.com [mailto:philipp.glira at gmail.com] On Behalf Of Ernest Menville
Sent: Tuesday, October 23, 2012 9:40 AM
To: Moskovitz, Bob at DOC
Cc: Ernest Menville; Hugo Benicio; gdal-dev at lists.osgeo.org
Subject: Re: gdaltransform - output into textfile


Maybe the output of gdaltransform is going to stderr?  In that case, try:
                gdaltransform -s_srs EPSG:4326 -t_srs EPSG:3857 < WGS84.txt 2> Grid.txt
I tried that, with no success - the file is still empty.

Regards,
Ernest

-Bob

Robert Moskovitz
California Geological Survey
Seismic Hazards Zonation Program


CONFIDENTIALITY NOTICE: This communication is intended only for the use of the individual or entity to which it is addressed. This message contains information from the State of California, California Geological Survey, which may be privileged, confidential and exempt from disclosure under applicable law, including the Electronic Communications Privacy Act. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.



From: gdal-dev-bounces at lists.osgeo.org<javascript:_e(%7b%7d,%20'cvml',%20'gdal-dev-bounces at lists.osgeo.org');> [mailto:gdal-dev-bounces at lists.osgeo.org<javascript:_e(%7b%7d,%20'cvml',%20'gdal-dev-bounces at lists.osgeo.org');>] On Behalf Of Ernest Menville
Sent: Tuesday, October 23, 2012 7:14 AM
To: Hugo Benicio
Cc: gdal-dev at lists.osgeo.org<javascript:_e(%7b%7d,%20'cvml',%20'gdal-dev at lists.osgeo.org');>
Subject: Re: [gdal-dev] gdaltransform - output into textfile

Hi,

if you remove the output redirection >"Grid.txt", what does it do?

gdaltransform -s_srs EPSG:4326 -t_srs EPSG:3857 < "WGS84.txt"

Does it print the output on you console/terminal? gdaltransform is actually generating an output?
(You redirection syntax seems ok)

Yes, the output without redirection is correct:

1178964.68948322 5931513.41439894 0
1213208.56860206 5931513.41439894 0
1213208.56860206 5907053.53893779 0
1178964.68948322 5907053.53893779 0

But I can't save it to a file.

regards,
Ernest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121023/fe00e333/attachment-0001.html>


More information about the gdal-dev mailing list