| 3 | |
| 4 | Note there is a template file located at:[[BR]] |
| 5 | [http://trac.osgeo.org/ossim/browser/trunk/ossim/etc/templates/ossim_preferences_template] |
| 6 | |
| 7 | This is an example of an ossim preference file.[[BR]][[BR]] |
| 8 | |
| 9 | Note that it has unix style paths. On windows you should use windows paths.[[BR]] |
| 10 | e.g.: elevation_source1.filename: D:\elevation\srtm\1arc[[BR]] |
| 11 | [[BR]][[BR]] |
| 12 | Note also that you can name the file anything you want. OSSIM finds the preference via the environment variable OSSIM_PREFS_FILE which should point to the name of your file. Alternatively you can use the "-P" option in any ossim application and point to the preference file.[[BR]] |
| 13 | e.g.: ossim-info -P ~/ossim_preferences --plugins |
| 14 | |
| 15 | |
| 16 | '''OSSIM Preference File Example'''[[BR]] |
| 17 | |
| 18 | |
| 19 | {{{ |
| 20 | // ------------------------------------------------------------------------ |
| 21 | // $Id ossim_preferences_template 14810 2009-06-30 20:33:21Z $ |
| 22 | // |
| 23 | // Description: ossim_preferences_template |
| 24 | // |
| 25 | // This file will be automatically loaded by ossim applications provided the |
| 26 | // environment variable "OSSIM_PREFS_FILE" is set to point to some form of |
| 27 | // this file. |
| 28 | // |
| 29 | // Note: c++ comments "//" can be used to comment a line. |
| 30 | // |
| 31 | // To set the environment variable for automatic preference file loading: |
| 32 | // |
| 33 | // This assumes a preference file in your home called "ossim_preferences". |
| 34 | // Typically this would be put in a dot file read at startup of a shell. |
| 35 | // |
| 36 | // tcsh and csh users: setenv OSSIM_PREFS_FILE ~/ossim_preferences |
| 37 | // |
| 38 | // bash and sh users: export OSSIM_PREFS_FILE=~/ossim_preferences |
| 39 | // |
| 40 | // windoze users: I'll have to look this up... |
| 41 | // |
| 42 | // You can also use the "-P <preference_file>" option at application startup. |
| 43 | // where <preference_file> is full path and filename. |
| 44 | // |
| 45 | // ------------------------------------------------------------------------ |
| 46 | |
| 47 | |
| 48 | // --- |
| 49 | // Elevation cell support: |
| 50 | // |
| 51 | // NOTE: Put you highest (best) resolution data first. |
| 52 | // |
| 53 | // Keyword pair: |
| 54 | // elevation_source.type |
| 55 | // elevation_source.filename |
| 56 | // |
| 57 | // Indicates an elevation source. These should be listed in pairs. Numbering |
| 58 | // should start with 1 with lowest number being the highest resolution. This |
| 59 | // can be a cell(file) or a directory. |
| 60 | // |
| 61 | // There are four elevation_source.type types: |
| 62 | // elevation_source.type: dted_cell |
| 63 | // elevation_source.type: srtm_cell |
| 64 | // elevation_source.type: dted_directory |
| 65 | // elevation_source.type: srtm_directory |
| 66 | // elevation_source.type: general_raster_directory |
| 67 | // |
| 68 | // The elevation_source.filename keyword should point to a cell or a directory. |
| 69 | // |
| 70 | // NOTES: |
| 71 | // The elevation_source keyword replaces the deprecated keywords: |
| 72 | // dted_directory |
| 73 | // srtm_directory |
| 74 | // dted_cell |
| 75 | // --- |
| 76 | |
| 77 | elevation_source1.filename: /data/image_formats/elevation/srtm/1arc |
| 78 | elevation_source1.type: srtm_directory |
| 79 | |
| 80 | elevation_source2.filename: /data/image_formats/elevation/dted/level2 |
| 81 | elevation_source2.type: dted_directory |
| 82 | |
| 83 | elevation_source3.filename: /data/image_formats/elevation/srtm/3arc |
| 84 | elevation_source3.type: srtm_directory |
| 85 | |
| 86 | elevation_source4.filename: /data/image_formats/elevation/dted/level1 |
| 87 | elevation_source4.type: dted_directory |
| 88 | |
| 89 | |
| 90 | default_elevation_path: /data/image_formats/elevation/srtm/1arc |
| 91 | |
| 92 | autoload_dted_elevation: true |
| 93 | elevation.enabled: true |
| 94 | elevation.auto_sort.enabled: true |
| 95 | elevation.auto_load_dted.enabled: true |
| 96 | |
| 97 | statusLatLon: true |
| 98 | statusHeight: true |
| 99 | statusDatum: true |
| 100 | statusGSD: true |
| 101 | statusUpdateOnClick: true |
| 102 | |
| 103 | // --- |
| 104 | // Geoid support: |
| 105 | // Note: Since the sensor models do earth intersects at height above the |
| 106 | // ellipsoid and the vertical datum of DTED is geoid_egm_96_grid, you |
| 107 | // should have a geoid grid in place for accurate earth intersections. |
| 108 | // --- |
| 109 | |
| 110 | // --- |
| 111 | // GEOID 99: Set keyword to the directory containing the GEOID 99 grids. |
| 112 | // |
| 113 | // Notes: |
| 114 | // - Grids must be in the native byte order. |
| 115 | // - Can be downloaded from: |
| 116 | // http://www.ngs.noaa.gov/GEOID/GEOID99 |
| 117 | // --- |
| 118 | geoid_99_directory: /data/image_formats/elevation/geoid99_little_endian |
| 119 | |
| 120 | // --- |
| 121 | // GEOID EGM 96: Set keyword to the path to the egm96.grd |
| 122 | // |
| 123 | // Notes: |
| 124 | // - Grid must be in BIG ENDIAN (UNIX) format. |
| 125 | // - Can be downloaded from: |
| 126 | // http://earth-info.nima.mil/GandG/wgs84/gravitymod/egm96/ww15mgh.grd.z |
| 127 | // --- |
| 128 | geoid_egm_96_grid: /data/image_formats/elevation/geoid96_big_endian/egm96.grd |
| 129 | // --- |
| 130 | |
| 131 | // --- |
| 132 | // For state plane projection factory. |
| 133 | // --- |
| 134 | state_plane_csv_file1: /work/drb/ossim/share/ossim/state_plane.csv |
| 135 | state_plane_csv_file2: /work/drb/ossim/share/ossim/harn_state_plane_epsg.csv |
| 136 | |
| 137 | // --- |
| 138 | // plugin support: |
| 139 | // --- |
| 140 | plugin.file1: /work/drb/ossim_plugins/lib/libossimpng_plugin.so |
| 141 | plugin.file2: /work/drb/ossim_plugins/lib/libossimKakaduPlugin.so |
| 142 | plugin.file3: /work/drb/ossim_plugins/lib/libossim_plugin.so |
| 143 | plugin.file4: /work/drb/ossim_plugins/lib/libossimOpenJpeg_plugin.so |
| 144 | plugin.file5: /work/drb/ossim_plugins/lib/libossimreg_plugin.so |
| 145 | plugin.file6: /work/drb/ossim_plugins/lib/libossimgdal_plugin.so |
| 146 | |
| 147 | // --- |
| 148 | // The cache size is in megabytes |
| 149 | // --- |
| 150 | // cache_size: 256 |
| 151 | // cache_size: 512 |
| 152 | // cache_size: 1024 |
| 153 | cache_size: 2048 |
| 154 | |
| 155 | // --- |
| 156 | // Keyword: overview_stop_dimension |
| 157 | // |
| 158 | // Affects any overview building from img2rr, imagelinker, iview. |
| 159 | // |
| 160 | // This is the point where "img2rr" or the overview builded will stop |
| 161 | // decimating the image down. So in other words, if the |
| 162 | // overview_stop_dimension keyword is 64, img2rr application will build |
| 163 | // overviews, decimating each level by 2 until both the width and heigh are |
| 164 | // less than or equal to 64. Note the larger the dimension the less levels |
| 165 | // created. |
| 166 | // |
| 167 | // Uncomment one below. |
| 168 | // --- |
| 169 | // overview_stop_dimension: 32 |
| 170 | overview_stop_dimension: 64 |
| 171 | // overview_stop_dimension: 128 |
| 172 | // overview_stop_dimension: 256 |
| 173 | // overview_stop_dimension: 512 |
| 174 | |
| 175 | // --- |
| 176 | // Keyword: tile_size |
| 177 | // |
| 178 | // Tile size x y |
| 179 | // |
| 180 | // Affects all ossim application. This is the internal tile size of any |
| 181 | // image chain unless overridden by the filter. |
| 182 | // |
| 183 | // Notes: |
| 184 | // 1) OSSIM can handle any tile size; however it is best to use a size that |
| 185 | // is a power of two. |
| 186 | // 2) |
| 187 | // |
| 188 | // Uncomment one below. |
| 189 | // --- |
| 190 | // tile_size: 32 32 |
| 191 | // tile_size: 64 64 |
| 192 | // tile_size: 128 128 |
| 193 | tile_size: 256 256 |
| 194 | // tile_size: 512 512 |
| 195 | // tile_size: 1024 1024 |
| 196 | |
| 197 | // font.file1: /usr/share/fonts/default/Type1/b018032l.pfb |
| 198 | font.dir1: /usr/share/fonts/default/Type1 |
| 199 | |
| 200 | // --- |
| 201 | // Shape file pen color: |
| 202 | // Three values for red, green and blue between 0 and 1.0 with 1.0 being |
| 203 | // brightness and 0.0 being black. |
| 204 | // --- |
| 205 | shapefile_normalized_rgb_pen_color: 1.0 0.004 0.004 |
| 206 | |
| 207 | // --- |
| 208 | // Shape file pen color: |
| 209 | // Three values for red, green and blue between 0 and 1.0 with 1.0 being |
| 210 | // brightness and 0.0 being black. |
| 211 | // --- |
| 212 | shapefile_normalized_rgb_brush_color: 0.004 1.0 0.004 |
| 213 | |
| 214 | // --- |
| 215 | // Position Quality Evaluator (PQE) keywords. |
| 216 | // Note Circulay Error(CE) and Linear Error (LE) units are in meters. |
| 217 | // These keywords are for the imagelinker->image-window->PQE dialog box. |
| 218 | // They allow the user to calculater position quality factoring in backdrop |
| 219 | // and elevation uncertainty. |
| 220 | // --- |
| 221 | |
| 222 | // Backdrop enter "name,ce90,le90" like "JOG-A,77,38". |
| 223 | pqe_backdrop1: TLM50,31,25 |
| 224 | pqe_backdrop2: TLM100,61,25 |
| 225 | pqe_backdrop3: JOG-A,77,38 |
| 226 | pqe_backdrop4: TPC,613,47 |
| 227 | pqe_backdrop5: ONC,1226,93 |
| 228 | pqe_backdrop6: JNC,2452,187 |
| 229 | pqe_backdrop7: GNC,6129,465 |
| 230 | |
| 231 | // Elevation enter "name,ce90,le90" like "SRTM_1ARC,20,16" |
| 232 | // Accuracies vary widely depending on terrain and how they were computed. |
| 233 | // These are just examples. |
| 234 | pqe_elev1: SRTM_3ARC,20,16 |
| 235 | pqe_elev2: SRTM_1ARC,20,10 |
| 236 | pqe_elev3: DTED_LEVEL2,40,20 |
| 237 | pqe_elev4: DTED_LEVEL1,50,30 |
| 238 | pqe_elev5: RPC_No_DEM_State,-2,-1.6449 |
| 239 | // Special Case |
| 240 | // RPC_No_DEM_State, Scale Divisor, 1-Sigma Divisor (minus signs required) |
| 241 | |
| 242 | pqe_normalized_rgb_ellipse_color: 0.004 1.0 0.004 |
| 243 | |
| 244 | // End of PQE keywords... |
| 245 | |
| 246 | }}} |