Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 34826

A Python library for reading, modifying, and creating LIDAR files.

1 vote
0 answers
287 views

Update EVLR header info for very large LAS files using laspy

The issue is noted at the github page for laspy here: https://github.com/grantbrown/laspy/issues/51 This builds on an earlier post at: Update EVLR header info for .LAS file using laspy My method shown … The issue seems to be the file byte offset integer value (where the EVLR content is to be placed) is too large for laspy (using version 1.2.5 with python version 2.7.12 64-bit) to convert to a C long value …
Andrew's user avatar
  • 201
2 votes
1 answer
2k views

Update EVLR header info for .LAS file using laspy

I'm trying to change the header info for a LAS file using the python 2.7 (64-bit) laspy module (version 1.2.5). … import numpy as np import laspy import shutil import datetime print('Update started: {:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now())) # Set input / output filenames evlrContentFile = ". …
Andrew's user avatar
  • 201
3 votes
Accepted

Update EVLR header info for .LAS file using laspy

The issue is noted at the github page for laspy here: https://github.com/grantbrown/laspy/issues/51 I needed to adjust the "start_first_evlr" property to be the full length of the LAS file as shown below … The laspy code in base.py seems to want to reset the mmap buffer to the size of the first EVLR (disregarding the point data content when the new EVLR is added). …
Andrew's user avatar
  • 201