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

Return cell centroids instead of shape furing grid generation #62

Closed
SebKrantz opened this issue Feb 5, 2023 · 1 comment
Closed

Return cell centroids instead of shape furing grid generation #62

SebKrantz opened this issue Feb 5, 2023 · 1 comment

Comments

@SebKrantz
Copy link
Collaborator

Hello, thanks a lot for this package, very useful stuff!

I am encountering memory problems trying to resolve a high-resolution grid for certain cells.

my_grid <- dgshptogrid(world_1km_hex, "data/temporary/districts.shp", cellsize = 0.01, frame = FALSE)

Actually I only need the cell centroids not the entire shape. So an option centroids = TRUE to dgcellstogrid(), dgearthgrid(), dgrectgrid(), dgshptogrid() would be very useful.

Thanks for considering.

@SebKrantz
Copy link
Collaborator Author

Another nice option in this regard would be to be able to select cells from a lower-resolution grid e.g. using a shapefile, and then be able to retrieve all cells from a higher-resolution version of the grid within those cells, i.e. to be able to move between different resolutions.

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