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

Set AREA_OR_POINT=Point #1

Open
mojodna opened this issue Jun 17, 2016 · 1 comment
Open

Set AREA_OR_POINT=Point #1

mojodna opened this issue Jun 17, 2016 · 1 comment
Assignees

Comments

@mojodna
Copy link
Member

mojodna commented Jun 17, 2016

Currently set to Area. Should be points, as they're actually sample points.

Command-line equivalent:

gdal_translate -mo "AREA_OR_POINT=Point" src.tif dest.tif
@mojodna mojodna self-assigned this Jun 17, 2016
@mojodna
Copy link
Member Author

mojodna commented Jun 17, 2016

write() in chunk.py:

with rasterio.drivers():
    with rasterio.open(tmp_path, "w", **meta) as tmp:
        tmp.update_tags(AREA_OR_POINT="Point")
        tmp.write(data, 1)

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

1 participant