<div class="gmail_quote">On Tue, Jan 10, 2012 at 1:25 PM, Howard Butler <span dir="ltr">&lt;<a href="mailto:hobu.inc@gmail.com">hobu.inc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
and LAStools now does vertical datum transformations too? If so, even more reason to not use libLAS :)<br>
<div><div></div><div class="h5"><br>
On Jan 10, 2012, at 12:10 PM, Martin Isenburg wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; when debugging GDAL it may help to look at what LASlib&#39;s<br>
&gt; geoprojectionconverter does, which finds that the file<br>
&gt; &quot;IowaDNR-CloudPeakSoft-1.0-UTM15N.las&quot; has correct GeoTIFFs . When I<br>
&gt; create an intensity grid with<br>
&gt;<br>
&gt; lasgrid -i IowaDNR-CloudPeakSoft-1.0-UTM15N.las -intensity -opng -step 3<br>
&gt;<br>
&gt; the generated intensity raster is automatically geo-referenced and a<br>
&gt; corresponding KML file is generated that places the PNG onto Google<br>
&gt; Earth at the exact right spot as you can see here:<br>
&gt;<br>
&gt; <a href="http://lastools.org/download/data/IowaDNR-CloudPeakSoft-1.0-UTM15N.kmz" target="_blank">http://lastools.org/download/data/IowaDNR-CloudPeakSoft-1.0-UTM15N.kmz</a><br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Martin @lastools<br>
&gt;<br>
&gt; PS: below is the report of lasinfo -i IowaDNR-CloudPeakSoft-1.0-UTM15N.las<br>
&gt;<br>
&gt; reporting all LAS header entries:<br>
&gt;  file signature:            &#39;LASF&#39;<br>
&gt;  file source ID:            0<br>
&gt;  global_encoding:           0<br>
&gt;  project ID GUID data 1-4:  0 0 0 &#39;&#39;<br>
&gt;  version major.minor:       1.0<br>
&gt;  system identifier:         &#39;&#39;<br>
&gt;  generating software:       &#39;CPS/RTW LAS Lib v1.08&#39;<br>
&gt;  file creation day/year:    0/0<br>
&gt;  header size                227<br>
&gt;  offset to point data       639<br>
&gt;  number var. length records 3<br>
&gt;  point data format          1<br>
&gt;  point data record length   28<br>
&gt;  number of point records    5847380<br>
&gt;  number of points by return 2920986 2926394 0 0 0<br>
&gt;  scale factor x y z         0.001 0.001 0.001<br>
&gt;  offset x y z               0 4000000 0<br>
&gt;  min x y z                  614000.000 4791999.999 311.676<br>
&gt;  max x y z                  615999.990 4793999.989 398.959<br>
&gt; variable length header record 1 of 3:<br>
&gt;  reserved             43707<br>
&gt;  user ID              &#39;LASF_Projection&#39;<br>
&gt;  record ID            34735<br>
&gt;  length after header  88<br>
&gt;  description          &#39;Projection Info&#39;<br>
&gt;    GeoKeyDirectoryTag version 1.1.0 number of keys 10<br>
&gt;      key 1024 tiff_tag_location 0 count 1 value_offset 1 -<br>
&gt; GTModelTypeGeoKey: ModelTypeProjected<br>
&gt;      key 1026 tiff_tag_location 34737 count 13 value_offset 0 -<br>
&gt; GTCitationGeoKey: UTM zone 15N<br>
&gt;      key 2050 tiff_tag_location 0 count 1 value_offset 6269 -<br>
&gt; GeogGeodeticDatumGeoKey: Datum_North_American_Datum_1983<br>
&gt;      key 2056 tiff_tag_location 0 count 1 value_offset 7019 -<br>
&gt; GeogEllipsoidGeoKey: Ellipse_GRS_1980<br>
&gt;      key 3072 tiff_tag_location 0 count 1 value_offset 26915 -<br>
&gt; ProjectedCSTypeGeoKey: PCS_NAD83_UTM_zone_15N<br>
&gt;      key 3075 tiff_tag_location 0 count 1 value_offset 1 -<br>
&gt; ProjCoordTransGeoKey: CT_TransverseMercator<br>
&gt;      key 3076 tiff_tag_location 0 count 1 value_offset 9001 -<br>
&gt; ProjLinearUnitsGeoKey: Linear_Meter<br>
&gt;      key 4096 tiff_tag_location 0 count 1 value_offset 5103 -<br>
&gt; VerticalCSTypeGeoKey: VertCS_North_American_Vertical_Datum_1988<br>
&gt;      key 4097 tiff_tag_location 34737 count 19 value_offset 13 -<br>
&gt; VerticalCitationGeoKey: GEOID 2003 Applied<br>
&gt;      key 4099 tiff_tag_location 0 count 1 value_offset 9001 -<br>
&gt; VerticalUnitsGeoKey: Linear_Meter<br>
&gt; variable length header record 2 of 3:<br>
&gt;  reserved             43707<br>
&gt;  user ID              &#39;LASF_Projection&#39;<br>
&gt;  record ID            34737<br>
&gt;  length after header  32<br>
&gt;  description          &#39;Projection Info&#39;<br>
&gt;    GeoAsciiParamsTag (number of characters 32)<br>
&gt;      UTM zone 15N GEOID 2003 Applied<br>
&gt; variable length header record 3 of 3:<br>
&gt;  reserved             43707<br>
&gt;  user ID              &#39;CloudPeakSoft&#39;<br>
&gt;  record ID            0<br>
&gt;  length after header  128<br>
&gt;  description          &#39;CPSInfo&#39;<br>
&gt; the header is followed by 2 user-defined bytes<br>
&gt; reporting minimum and maximum for all LAS point record entries ...<br>
&gt;  x 614000000 615999990<br>
&gt;  y 791999999 793999989<br>
&gt;  z 311676 398959<br>
&gt;  intensity 1 3240<br>
&gt;  edge_of_flight_line 0 0<br>
&gt;  scan_direction_flag 0 0<br>
&gt;  number_of_returns_of_given_pulse 2 2<br>
&gt;  return_number 1 2<br>
&gt;  classification 1 12<br>
&gt;  scan_angle_rank 0 0<br>
&gt;  user_data 0 0<br>
&gt;  point_source_ID 14 18<br>
&gt;  gps_time 597987.305116 600731.680834<br>
&gt; overview over number of returns of given pulse: 0 5847380 0 0 0 0 0<br>
&gt; histogram of classification of points:<br>
&gt;  2762810 Unclassified (1)<br>
&gt;  2156929 Ground (2)<br>
&gt;     6318 Low Point (noise) (7)<br>
&gt;   921323 Overlap Points (12)<br>
<br>
_______________________________________________<br>
Liblas-devel mailing list<br>
<a href="mailto:Liblas-devel@lists.osgeo.org">Liblas-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/liblas-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/liblas-devel</a><br>
<br>
</div></div></blockquote></div><div><br></div><div>I should probably mention that my proj.4 is built with datum grids as well.  Liblas is built with GDAL and geotiff as well.</div>