Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errror when reading LAS File... #6

Open
MartinStenzig opened this issue Sep 22, 2020 · 0 comments
Open

Errror when reading LAS File... #6

MartinStenzig opened this issue Sep 22, 2020 · 0 comments

Comments

@MartinStenzig
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant