wiki:rpf_file

OSSIM RPF File

Tiled raster data such as DTED, SRTM, GDEM, and RPF can be managed as one contiguous dataset using a .rpf file. This allows OSSIM to process and render thousands of images at once. For example, using ossim-dem you can create a shaded relief of the entire globe in one step!

Requirements

  • Images must be the same size (e.g. 1024x1024 pixels)
  • Images must be in the same gsd
  • Images must be in the same projection
  • Images must be in the same radiometry

File Format

OSSIM .rpf files are simple text files that contain a list of files, and their bounding coordinates. The first line in the file is the header. It is used to define the overall extents of all the entries in the file, as well as the total number of bands (typically 1 or 3). After the header is a list of files.

Line1: <minX>,<minY>|<maxX>,<maxY>|<numBands>
Line N+1: <filepath>|<minX>,<minY>|<maxX>,<maxY>
...

Example

OSSIM .rpf files are handled like any other image format. Here's an example using ossim-orthoigen:

ossim-orthoigen.exe --scale-to-8-bit D:\Maps\BuckEye\test.rpf D:\Maps\BuckEye\out.jpg

And here is an example of what a typical .rpf looks like:

-71.196663407559, 42.7281314915574|-71.1918113156502, 42.7303585648548|3
D:\Maps\BuckEye\Andover\test\1_1.jpg|-71.196663407559,42.7299138464277|-71.1960579328422,42.7303585648548
D:\Maps\BuckEye\Andover\test\1_2.jpg|-71.1960567479601,42.7299138464277|-71.1954512732433,42.7303585648548
D:\Maps\BuckEye\Andover\test\1_3.jpg|-71.1954500883613,42.7299138464277|-71.1948446136445,42.7303585648548
D:\Maps\BuckEye\Andover\test\1_4.jpg|-71.1948434287624,42.7299138464277|-71.1942379540456,42.7303585648548
D:\Maps\BuckEye\Andover\test\1_5.jpg|-71.1942367691636,42.7299138464277|-71.1936312944468,42.7303585648548
D:\Maps\BuckEye\Andover\test\1_6.jpg|-71.1936301095648,42.7299138464277|-71.193024634848,42.7303585648548
D:\Maps\BuckEye\Andover\test\1_7.jpg|-71.1930234499659,42.7299138464277|-71.1924179752491,42.7303585648548
D:\Maps\BuckEye\Andover\test\1_8.jpg|-71.192416790367,42.7299138464277|-71.1918113156502,42.7303585648548
D:\Maps\BuckEye\Andover\test\2_1.jpg|-71.196663407559,42.7294682577101|-71.1960579328422,42.7299129761372
D:\Maps\BuckEye\Andover\test\2_2.jpg|-71.1960567479601,42.7294682577101|-71.1954512732433,42.7299129761372
D:\Maps\BuckEye\Andover\test\2_3.jpg|-71.1954500883613,42.7294682577101|-71.1948446136445,42.7299129761372
D:\Maps\BuckEye\Andover\test\2_4.jpg|-71.1948434287624,42.7294682577101|-71.1942379540456,42.7299129761372
D:\Maps\BuckEye\Andover\test\2_5.jpg|-71.1942367691636,42.7294682577101|-71.1936312944468,42.7299129761372
D:\Maps\BuckEye\Andover\test\2_6.jpg|-71.1936301095648,42.7294682577101|-71.193024634848,42.7299129761372
D:\Maps\BuckEye\Andover\test\2_7.jpg|-71.1930234499659,42.7294682577101|-71.1924179752491,42.7299129761372
D:\Maps\BuckEye\Andover\test\2_8.jpg|-71.192416790367,42.7294682577101|-71.1918113156502,42.7299129761372
D:\Maps\BuckEye\Andover\test\3_1.jpg|-71.196663407559,42.7290226689926|-71.1960579328422,42.7294673874197
D:\Maps\BuckEye\Andover\test\3_2.jpg|-71.1960567479601,42.7290226689926|-71.1954512732433,42.7294673874197
D:\Maps\BuckEye\Andover\test\3_3.jpg|-71.1954500883613,42.7290226689926|-71.1948446136445,42.7294673874197
D:\Maps\BuckEye\Andover\test\3_4.jpg|-71.1948434287624,42.7290226689926|-71.1942379540456,42.7294673874197
D:\Maps\BuckEye\Andover\test\3_5.jpg|-71.1942367691636,42.7290226689926|-71.1936312944468,42.7294673874197
D:\Maps\BuckEye\Andover\test\3_6.jpg|-71.1936301095648,42.7290226689926|-71.193024634848,42.7294673874197
D:\Maps\BuckEye\Andover\test\3_7.jpg|-71.1930234499659,42.7290226689926|-71.1924179752491,42.7294673874197
D:\Maps\BuckEye\Andover\test\3_8.jpg|-71.192416790367,42.7290226689926|-71.1918113156502,42.7294673874197
D:\Maps\BuckEye\Andover\test\4_1.jpg|-71.196663407559,42.728577080275|-71.1960579328422,42.7290217987021
D:\Maps\BuckEye\Andover\test\4_2.jpg|-71.1960567479601,42.728577080275|-71.1954512732433,42.7290217987021
D:\Maps\BuckEye\Andover\test\4_3.jpg|-71.1954500883613,42.728577080275|-71.1948446136445,42.7290217987021
D:\Maps\BuckEye\Andover\test\4_4.jpg|-71.1948434287624,42.728577080275|-71.1942379540456,42.7290217987021
D:\Maps\BuckEye\Andover\test\4_5.jpg|-71.1942367691636,42.728577080275|-71.1936312944468,42.7290217987021
D:\Maps\BuckEye\Andover\test\4_6.jpg|-71.1936301095648,42.728577080275|-71.193024634848,42.7290217987021
D:\Maps\BuckEye\Andover\test\4_7.jpg|-71.1930234499659,42.728577080275|-71.1924179752491,42.7290217987021
D:\Maps\BuckEye\Andover\test\4_8.jpg|-71.192416790367,42.728577080275|-71.1918113156502,42.7290217987021
D:\Maps\BuckEye\Andover\test\5_1.jpg|-71.196663407559,42.7281314915574|-71.1960579328422,42.7285762099845
D:\Maps\BuckEye\Andover\test\5_2.jpg|-71.1960567479601,42.7281314915574|-71.1954512732433,42.7285762099845
D:\Maps\BuckEye\Andover\test\5_3.jpg|-71.1954500883613,42.7281314915574|-71.1948446136445,42.7285762099845
D:\Maps\BuckEye\Andover\test\5_4.jpg|-71.1948434287624,42.7281314915574|-71.1942379540456,42.7285762099845
D:\Maps\BuckEye\Andover\test\5_5.jpg|-71.1942367691636,42.7281314915574|-71.1936312944468,42.7285762099845
D:\Maps\BuckEye\Andover\test\5_6.jpg|-71.1936301095648,42.7281314915574|-71.193024634848,42.7285762099845
D:\Maps\BuckEye\Andover\test\5_7.jpg|-71.1930234499659,42.7281314915574|-71.1924179752491,42.7285762099845
D:\Maps\BuckEye\Andover\test\5_8.jpg|-71.192416790367,42.7281314915574|-71.1918113156502,42.7285762099845
Last modified 11 years ago Last modified on Mar 20, 2013, 3:30:43 AM
Note: See TracWiki for help on using the wiki.