johnfontaine / lasstreamreader Goto Github PK
View Code? Open in Web Editor NEWJavascript library to manipulate and read Laz/Las files
License: Apache License 2.0
Javascript library to manipulate and read Laz/Las files
License: Apache License 2.0
haha
Hey John,
Thanks for putting this together! I'm trying to consume some .las files (my first try at this). I'm just getting into working with this data so I really appreciate having a head start here with your reader!
I set up my system to config a 35meg file I got from USGS but I'm getting the below error. I saw you had a fix you committed for something similar. Wondering if you could shed some light on it. I'm happy to dig in myself and see if I can contribute a fix myself if I get that far!
Cheers!
Error: Unable to determine projection from variable length records at LasStreamReader._do_read_vlr (/Users/jeff/dev/contours2/node_modules/LasStreamReader/src/las.js:203:40) at LasStreamReader._transform (/Users/jeff/dev/contours2/node_modules/LasStreamReader/src/las.js:136:18) at LasStreamReader.Transform._read (_stream_transform.js:186:10) at LasStreamReader.Transform._write (_stream_transform.js:174:12) at doWrite (_stream_writable.js:385:12) at writeOrBuffer (_stream_writable.js:371:5) at LasStreamReader.Writable.write (_stream_writable.js:288:11) at ReadStream.ondata (_stream_readable.js:642:20) at emitOne (events.js:115:13) at ReadStream.emit (events.js:210:7) at addChunk (_stream_readable.js:266:12) at readableAddChunk (_stream_readable.js:253:11) at ReadStream.Readable.push (_stream_readable.js:211:10) at onread (fs.js:2003:12) at FSReqWrap.wrapper [as oncomplete] (fs.js:664:17)
node --version
v10.16.0
npm --version
6.9.0
Windows 10 x64
๐ค
The Reader started reading the file, but ended up with the following error...
Header {
file_signature: 'LASF',
file_source_id: 0,
global_encoding: 0,
project_id_guid_data: [ 0, 0, 0, '' ],
version: { major: 1, minor: 2 },
system_identifier: '',
generating_software: 'PegManager',
file_creation: { day_of_year: 262, year: 2020 },
header_size: 227,
offset_to_point_data: 313,
number_of_variable_length_records: 1,
point_data_record: { format: 3, length: 34 },
points: {
number_of_points: 5547961,
points_x_return: [ 5547961, 0, 0, 0, 0 ]
},
scale: [ 0.001, 0.001, 0.001 ],
offset: [ 3284291.6255, 282339.653, 81.668 ],
max_min: [
[ 3284950.598, 3284291.6255 ],
[ 282757.416, 282339.653 ],
[ 322.156, 81.668 ]
]
}
error TypeError: Cannot read property '0' of undefined
at adjust_axis (C:_projects\RizInno\lidar-db\srv\node_modules\proj4\dist\proj4-src.js:1782:36)
at transform (C:_projects\RizInno\lidar-db\srv\node_modules\proj4\dist\proj4-src.js:1874:17)
at transformer (C:_projects\RizInno\lidar-db\srv\node_modules\proj4\dist\proj4-src.js:1944:28)
at Object.forward (C:_projects\RizInno\lidar-db\srv\node_modules\proj4\dist\proj4-src.js:2010:20)
at LasStreamReader._do_read_vlr (C:_projects\RizInno\lidar-db\srv\node_modules\LasStreamReader\src\las.js:208:67)
at LasStreamReader._transform (C:_projects\RizInno\lidar-db\srv\node_modules\LasStreamReader\src\las.js:136:18)
at LasStreamReader.Transform._read (_stream_transform.js:191:10)
at LasStreamReader.Transform._write (_stream_transform.js:179:12)
at doWrite (_stream_writable.js:403:12)
at writeOrBuffer (_stream_writable.js:387:5)
C:_projects\RizInno\lidar-db\srv\node_modules\proj4\dist\proj4-src.js:1782
if ("ew".indexOf(crs.axis[i]) !== -1) {
^
TypeError: Cannot read property '0' of undefined
at adjust_axis (C:_projects\RizInno\lidar-db\srv\node_modules\proj4\dist\proj4-src.js:1782:36)
at transform (C:_projects\RizInno\lidar-db\srv\node_modules\proj4\dist\proj4-src.js:1874:17)
at transformer (C:_projects\RizInno\lidar-db\srv\node_modules\proj4\dist\proj4-src.js:1944:28)
at Object.forward (C:_projects\RizInno\lidar-db\srv\node_modules\proj4\dist\proj4-src.js:2010:20)
at new PointRecord (C:_projects\RizInno\lidar-db\srv\node_modules\LasStreamReader\src\models.js:340:52)
at LasStreamReader._do_read_records (C:_projects\RizInno\lidar-db\srv\node_modules\LasStreamReader\src\las.js:253:17)
at LasStreamReader._transform (C:_projects\RizInno\lidar-db\srv\node_modules\LasStreamReader\src\las.js:143:22)
at LasStreamReader.Transform._read (_stream_transform.js:191:10)
at LasStreamReader.Transform._write (_stream_transform.js:179:12)
at doWrite (_stream_writable.js:403:12)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.