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

Adding panorama image to e57 file #28

Open
giovanniborella opened this issue May 16, 2022 · 1 comment
Open

Adding panorama image to e57 file #28

giovanniborella opened this issue May 16, 2022 · 1 comment
Labels
question Further information is requested

Comments

@giovanniborella
Copy link

I can't find infomation on adding image to e57 file - I'm aware of the implementation in #15 but fail to find any doumentation on how to add new nodes

@mitch-galea
Copy link

mitch-galea commented Feb 12, 2023

I have been able to add new nodes but don't know how to write them.

import pye57

e57 = pye57.E57("filename.e57")

imf = e57.image_file
images_vector = imf.root()["images2D"]

new_image = images_vector.append(pye57.libe57.StructureNode(imf))
new_image.set("guid", libe57.StringNode(imf, "0000000000000000"))
# add nodes

e57.close()

here is the gist of the code thats working, but when I reopen the e57 the changes are not there

Could anyone advise on how to write these changes to the file, or answer the original question in whole?

@dancergraham dancergraham added the question Further information is requested label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants