I have a LAS 1.4 file that I can read in lidR but the CRS is not read:
las = readLAS("LD31201353.las")
las
#> class : LAS (v1.4 format 6)
#> memory : 172.5 Mb
#> extent : 3121464, 3123000, 1353000, 1356000 (xmin, xmax, ymin, ymax)
#> coord. ref. : NA
#> area : 4.5 kunits²
#> points : 1.97 million points
#> density : 0.44 points/units²
If I look at the header the VLR is empty
las@header
#> File signature: LASF
#> File source ID: 0
#> Global encoding:
#> - GPS Time Type: Standard GPS Time
#> - Synthetic Return Numbers: no
#> - Well Know Text: CRS is WKT
#> - Aggregate Model: false
#> Project ID - GUID: 00000001-0012-07e3-0000-000000000000
#> Version: 1.4
#> System identifier: Merrick
#> Generating software: MARS
#> File creation d/y: 188/2018
#> header size: 375
#> Offset to point data: 377
#> Num. var. length record: 0
#> Point data format: 6
#> Point data record length: 30
#> Num. of point records: 1965664
#> Num. of points by return: 1634171 285040 42901 3469 82 1 0 0 0 0 0 0 0 0 0
#> Scale factor X Y Z: 0.001 0.001 0.001
#> Offset X Y Z: 3122231 1354500 11639
#> min X Y Z: 3121464 1353000 11008.84
#> max X Y Z: 3123000 1356000 11782.48
#> Variable length records: void
But the file actually contains a CRS because lasinfo
from LAStools
can read it
extended variable length header record 1 of 2:
reserved 0
user ID 'LASF_Projection'
record ID 2112
length after header 1213
description 'OGC COORDINATE SYSTEM WKT'
OGC COORDINATE SYSTEM WKT:
COMPD_CS["NAD83(2011) / Colorado Central (ftUS) + NAVD88 height (ftUS) - US Geoid Model of 2012 B",PROJCS["NAD83(2011) / Colorado Central (ftUS)",PROJECTION["Lambert_Conformal_Conic_2SP"],PARAMETER["central_meridian",-105.5],PARAMETER["latitude_of_origin",37.833333333333],PARAMETER["standard_parallel_1",39.75],PARAMETER["standard_parallel_2",38.45],PARAMETER["false_easting",3000000],PARAMETER["false_northing",1000000],UNIT["US Survey Foot",0.304800609601222,AUTHORITY["EPSG","9003"]],AXIS["Easting",EAST],AXIS["Northing",NORTH],AUTHORITY["EPSG","6428"]],GEOGCS["NAD83(2011)",DATUM["NAD83 (National Spatial Reference System 2011)",SPHEROID["GRS 1980",6378137,298.257222101,AUTHORITY["EPSG","7019"]],AUTHORITY["EPSG","1116"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["US survey foot",0.3048006096012192, AUTHORITY["EPSG","9003"]],AXIS["Geodetic longitude",EAST],AXIS["Geodetic latitude",NORTH],AUTHORITY["EPSG","6318"]],VERT_CS["NAVD88 height (ftUS) - US Geoid Model of 2012 B",VERT_DATUM["North American Vertical Datum 1988",AUTHORITY["EPSG","5103"]],UNIT["US Survey Foot",0.304800609601222,AUTHORITY["EPSG","9003"]],AUTHORITY["EPSG","6360"]],PARAMETER[Vertical_Shift,0.0],PARAMETER[Direction,1.0]]
What do I need to do in R to expose the CRS (besides calling lastools from R...)?
lastools
can read it. This is more likely an issue in therlas
package that is not capable to recognize the CRS is this file. Please show the output oflasfile@header