Comments (4)
I don't think so. You are welcome to submit a PR with this feature!
from laspy.
I'll try something, but from my understanding of the code, the filename gets propagated from
laspy.file.File -> laspy.base.FileManager -> laspy.base.DataProvider.
DataProvider being the actual object that opens the file.
So if I modify the DataProvider class to instead use a reference to a file/a buffer , I'll then need to make lots of modifications to 'progate' this change.
Or maybe we could add a new mode for reading bytes input ( 'b') and handle this case using if statements.
It seems that someone already tried this idea:
davidcaron@dd5d09b
Would there be another way to make it work ?
from laspy.
It was a quick hack I made. I was using FME, a software from Safe. It could provide me with the content of the las file in memory and I wanted to avoid writing it to disk.
It works, however I can't say I'm happy with the "bytes" parameter and the way it's passed on the way down. It could be cleaner/simpler.
from laspy.
I had to use the same 'trick' to get something working easily.
I got a branch with this modifications that allows me to read from streams/buffers and get back the
bytes to re-upload/write.
And I agree that it's not clean, however I don't really like the software engeenering of the code.
It makes it harder to have a clean solution. So I ended-up starting something from scratch to see how it could go
from laspy.
Related Issues (20)
- migrate to urllib3 2.0 HOT 2
- Classification in laspy doesn't match with lasinfo HOT 6
- Reclassification of a COPC file HOT 5
- Allow for writing a custom creation date HOT 1
- append_points() function has size limit at approximately 15.1GB? HOT 3
- Ability to read COPC from fsspec sources HOT 2
- LAS/LAZ Header from Remote Source HOT 2
- laszip installation in ubuntu HOT 2
- Append data points to existing LAS file with header that contains extra dimensions. HOT 5
- List of 0 issue HOT 3
- Tests fail: ModuleNotFoundError: No module named 'laspy.cli.core' HOT 11
- laspy installs the 'tests' module globally that would conflict with other packages that accidentally do the same
- The 'rich' dependency is not listed in setup.py HOT 1
- Header update API? HOT 1
- AttributeError: module 'laspy' has no attribute 'read' HOT 7
- Provide pre-built wheels HOT 4
- Conda Forge test failures with Numpy 1.22 + Python 3.9 HOT 6
- Multiple point clouds structure in one LAS file HOT 2
- LAS / LAZ Shuffle in custom attributes in QGIS HOT 7
- Empty string input parse_crs() should result in a None return, but instead a CRSError is thrown in pyproj HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laspy.