| 1 | |
| 2 | == LAS LIDAR Support == |
| 3 | |
| 4 | Two plugins available with LAS readers: |
| 5 | |
| 6 | liblas plugin: |
| 7 | [http://trac.osgeo.org/ossim/browser/trunk/ossim_plugins/liblas] |
| 8 | |
| 9 | Generic las plugin: |
| 10 | [http://trac.osgeo.org/ossim/browser/trunk/ossim_plugins/las] |
| 11 | |
| 12 | The liblas plugin has a dependency on libLAS. |
| 13 | [http://liblas.org/] |
| 14 | |
| 15 | The las plugin has no dependencies other than ossim. Currently only coded for point type one. |
| 16 | |
| 17 | The is a generic LAS header dump in ossim core so you can do ossim-info -d without any plugin. |
| 18 | |
| 19 | With either plugin you can do: |
| 20 | |
| 21 | {{{ |
| 22 | $ ossim-info -d -i -p 000330.las |
| 23 | las.file_source_id: 0 |
| 24 | las.gps_time_type: 0 |
| 25 | las.waveform_data_packets_internal: 0 |
| 26 | las.waveform_data_packets_external: 0 |
| 27 | las.synthetically_generated: 0 |
| 28 | las.project_id_guid: 1dee478d-fa50-49c8-a9c54fde367ace40 |
| 29 | las.version: 1.2 |
| 30 | las.system_indentifier: NIIRS10 |
| 31 | las.generating_software: LIDAR1 tiled |
| 32 | las.file_creation_day: 250 |
| 33 | las.file_creation_year: 2010 |
| 34 | las.header_size: 227 |
| 35 | las.offset_to_point_data: 1966 |
| 36 | las.number_of_variable_length_records: 5 |
| 37 | las.point_data_format_id: 1 |
| 38 | las.point_data_record_length: 28 |
| 39 | las.number_of_point_records: 2915929 |
| 40 | las.number_of_points_return1: 2596564 |
| 41 | las.number_of_points_return2: 269269 |
| 42 | las.number_of_points_return3: 47603 |
| 43 | las.number_of_points_return4: 2493 |
| 44 | las.number_of_points_return5: 0 |
| 45 | las.x_scale_factor: 0.0100 |
| 46 | las.y_scale_factor: 0.0100 |
| 47 | las.z_scale_factor: 0.0100 |
| 48 | las.x_offset: 0.0000 |
| 49 | las.y_offset: 0.0000 |
| 50 | las.z_offset: 0.0000 |
| 51 | las.max_x: 13005001.3200 |
| 52 | las.min_x: 13000001.3300 |
| 53 | las.max_y: 335000.1200 |
| 54 | las.min_y: 330000.1200 |
| 55 | las.max_z: 1580.3900 |
| 56 | las.min_z: 926.7200 |
| 57 | image0.decimal_degrees_per_pixel_lat: 9.00281717218119e-06 |
| 58 | image0.decimal_degrees_per_pixel_lon: 1.2150363478007e-05 |
| 59 | image0.decimations: (1,1) (0.5,0.5) (0.25,0.25) (0.125,0.125) (0.0625,0.0625) (0.03125,0.03125) (0.015625,0.015625) (0.0078125,0.0078125) |
| 60 | image0.gsd: (1.00005919045009,1.00005919171835) |
| 61 | image0.image_size: (1524,1524) |
| 62 | image0.ll_lat: 42.4046185000387 |
| 63 | image0.ll_lon: -84.8235731136942 |
| 64 | image0.lr_lat: 42.4046914040585 |
| 65 | image0.lr_lon: -84.8050721763752 |
| 66 | image0.meters_per_pixel_x: 1.00005919045009 |
| 67 | image0.meters_per_pixel_y: 1.00005919171835 |
| 68 | image0.projection.central_meridian: -84.3666666666667 |
| 69 | image0.projection.datum: NAR |
| 70 | image0.projection.elevation_lookup_flag: 0 |
| 71 | image0.projection.ellipse_code: RF |
| 72 | image0.projection.ellipse_epsg_code: 7019 |
| 73 | image0.projection.ellipse_name: GRS 80 |
| 74 | image0.projection.false_easting_northing: (4000012.32,0) |
| 75 | image0.projection.false_easting_northing_units: feet |
| 76 | image0.projection.gcs_code: 4152 |
| 77 | image0.projection.major_axis: 6378137 |
| 78 | image0.projection.minor_axis: 6356752.3141 |
| 79 | image0.projection.origin_latitude: 41.5 |
| 80 | image0.projection.pcs_code: 2898 |
| 81 | image0.projection.pixel_scale_units: meters |
| 82 | image0.projection.pixel_scale_xy: (1,1) |
| 83 | image0.projection.srs_name: EPSG:2898 |
| 84 | image0.projection.std_parallel_1: 42.1 |
| 85 | image0.projection.std_parallel_2: 43.6667 |
| 86 | image0.projection.tie_point_units: meters |
| 87 | image0.projection.tie_point_xy: (3962400.405384,102108.036576) |
| 88 | image0.projection.type: ossimLambertConformalConicProjection |
| 89 | image0.target_rrds: 0 |
| 90 | image0.tie_point_lat: 42.418329790592 |
| 91 | image0.tie_point_lon: -84.8236735393142 |
| 92 | image0.type: ossimImageGeometry |
| 93 | image0.ul_lat: 42.418329790592 |
| 94 | image0.ul_lon: -84.8236735393142 |
| 95 | image0.ur_lat: 42.4184027106036 |
| 96 | image0.ur_lon: -84.8051685357372 |
| 97 | }}} |
| 98 | |
| 99 | To convert a LAS file to a geotiff: |
| 100 | |
| 101 | {{{ |
| 102 | ossim-icp tiff_tiled_band_separate 000335.las outputs/t1.tif |
| 103 | }}} |
| 104 | |
| 105 | To convert a LAS file to a geotiff setting the scale (grid size) to 2.5 meters: |
| 106 | |
| 107 | {{{ |
| 108 | ossim-icp --reader-prop scale=2.5 tiff_tiled_band_separate 000335.las outputs/t1.tif |
| 109 | }}} |
| 110 | |
| 111 | |
| 112 | |