Giter VIP home page Giter VIP logo

Comments (6)

grantbrown avatar grantbrown commented on July 20, 2024

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.

bvanderj avatar bvanderj commented on July 20, 2024

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.

grantbrown avatar grantbrown commented on July 20, 2024

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.

bvanderj avatar bvanderj commented on July 20, 2024

Absolutely, will get it put together tonight.

from laspy.

jpapadakis avatar jpapadakis commented on July 20, 2024

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.

tmontaigu avatar tmontaigu commented on July 20, 2024

With #197 and #215 I consider this closed

from laspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.