gdalinfo - 如何暂停输出数据
我正在使用GDAL。在命令提示符下,我正在做
$ gdalinfo (my file location)
它有效,但因为它是一个巨大的文件,所以命令提供了很多信息。我只对开头附近的内容感兴趣。命令提示符只允许滚动到最后 1000 行左右的信息(它必须给出大约 100,000 行左右)。我该怎么做?
I am using GDAL. in command prompt, i am doing
$ gdalinfo (my file location)
It works but because it is a huge file the command gives a lot of information. I am only interested in seeing what's near the beginning. The command prompt only allows scrolling up to the last 1000 or so lines of info (it must give about 100,000 lines or so). How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这将取决于它提供的操作系统和实用程序。我假设您使用的是 POSIX 操作系统,它支持管道并提供 less/more 等实用程序。这种情况下的命令是:
如果
less
不可用,您可能安装了more
命令。您还可以将 gdalinfo 的输出保存到文件中,稍后查看该文件。n
[附加]
在 Windows 上,我收到如下截断响应:(
使用 ENTER/RETURN 前进到下一行,完成后使用 CTRL+C“转义”。)
或者我也可以做输出文件:
This will depend on the OS and utilities it provides. I am assuming you are using a POSIX OS which support pipes and provides utilities such as less/more. The command in this case would be:
If
less
is unavailable, you may have themore
command installed. You can also save the output from gdalinfo into a file and look at the file later.n
[Appended]
On Windows, I get a truncated response like this:
(Use ENTER/RETURN to advance to the next line, and CTRL+C to "escape" when you're finished.)
Or I can do the outfile as well:
如果您使用的是 Windows 计算机...您使用什么类型的文件?也许它包含很多地面控制点,您可以使用
-nogcp
标志跳过这些控制点,或者使用-nomd
标志跳过元数据(请参阅 http://www.gdal.org/gdalinfo.html)。另请参阅--help-general
;您可能已将--debug flag
设置为打开?If you are on a windows machine... What type of file are you using? Perhaps it contains a lot of ground control points, which you can skip using the
-nogcp
flag, or skip the metadata using the-nomd
flag (see http://www.gdal.org/gdalinfo.html). Also, see--help-general
; you might have the--debug flag
set to on?