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

Read/write world files #6

Closed
mwtoews opened this issue Nov 4, 2014 · 1 comment
Closed

Read/write world files #6

mwtoews opened this issue Nov 4, 2014 · 1 comment

Comments

@mwtoews
Copy link
Contributor

mwtoews commented Nov 4, 2014

As discussed several months ago on rasterio#80, I thought it would be convenient to read/write world files, which use the same 6 coefficients as Affine.

Any ideas for names, prototypes, behaviour? The reader will certainly be another @classmethod that returns an Affine object. Initially, I was thinking from_worldfile(fp), but it could also be load_worldfile(fp) and/or loads_worldfile(s) for reading. Similarly, dump_worldfile(fp) and/or dumps_worldfile() for writing.

@sgillies
Copy link
Member

sgillies commented Nov 6, 2014

Sounds good to me. I like from_world() and to_world() for functions that take and return sequences, but I'm 👎 on having any file I/O methods here in affine.

mwtoews added a commit to mwtoews/affine that referenced this issue Nov 6, 2014
mwtoews added a commit to mwtoews/affine that referenced this issue Nov 6, 2014
@sgillies sgillies mentioned this issue Nov 13, 2014
mwtoews added a commit to mwtoews/affine that referenced this issue Nov 13, 2014
Also, mostly non-functional cleanup for PEP8, typos, add missing doc, etc.

Update setup.py so that it is an executable.
sgillies added a commit that referenced this issue Nov 13, 2014
Add loadsw()/dumpsw() world file support (#6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants