tags:

views:

10

answers:

1

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 informaiton. I am only interested in seeing whats near the beginning. 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?

A: 

Hi,

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:

$ gdalinfo file.tif | less

If 'less' is unavailable, you may have the 'more' command installed. You can also save the output from gdalinfo into a file and look at the file later.

$gdalinfo tile.tif > output.txt

n

nayden