[gdal-dev] gdaltransform - output into textfile

Ernest Menville menville.ernest at gmail.com
Thu Oct 25 00:33:38 PDT 2012


But is it not the main purpose of gdaltransform to transform a lot of
points into another coordinate system? How can I do that, if it is not
possible to save the output coordinates into a text file? (...without
copy&paste in the command line, what is just feasible for a small number of
points)

Ernest

2012/10/23 Moskovitz, Bob at DOC <Bob.Moskovitz at conservation.ca.gov>

>  That’s too bad L  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 [mailto:
> 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
> *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/20121025/5d56fd48/attachment.html>


More information about the gdal-dev mailing list