Comments (6)
Sorry, hit the wrong button.
I'm agnostic about the idea of a forum, though I think it's useful to get feedback like this here. In this case, I think you've highlighted both a good feature to consider adding, and a gap in the documentation.
As far as projection information goes, you should be able to find it in the VLRs (though whether it's in a format that's immediately useful to you is another question).
userIDs = [x.user_id for x in f.header.vlrs]
recIDs = [x.record_id for x in f.header.vlrs]
# What's in a VLR?
f.header.vlrs[0].body_summary()
# Parsed data
vlrData = f.header.vlrs[0].parsed_body
Maybe if you could give some examples of the format you'd need the data in, we can get an example script put together for you to test. Once we get it ironed out, I think this is an obvious use case to add to the documentation.
from laspy.
Lurker here. Hope this is an appropriate place for questions.
As far as i can tell, there is no way to write projection information (e.g. EPSG, proj4 string) into the las header using the current release of laspy. Am i correct in that assessment?
from laspy.
Projection information is located in the VLRs (and/or EVLRs, depending on the file version), which are readable and writeable as a list of Laspy VLR (or EVLR) objects.
For writing projection information, the trick is to construct an appropriate VLR - a task which is insufficiently documented (and which I only vaguely remember how to do). Would you be willing to put together a specific example of data you'd like to add to a file as part of a projection task? That might help us add something useful to the docs.
from laspy.
Absolutely, will get it put together tonight.
from laspy.
This issue seems to have died, but I'm also interested in this. In my example, I have points with spatial reference in UTM zone 11N. How can I add this information to the VLRs using laspy?
from laspy.
With #197 and #215 I consider this closed
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.