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

Clip multiple layers (?) #620

Open
Dekkerb opened this issue Feb 6, 2024 · 2 comments
Open

Clip multiple layers (?) #620

Dekkerb opened this issue Feb 6, 2024 · 2 comments

Comments

@Dekkerb
Copy link

Dekkerb commented Feb 6, 2024

image
I have multiple layers of the Natural Earth data-set opened in Mapshaper. I would like to clip each layer to the same rectangle, that I created earlier with the shift-drag tool.
When I use the command "clip source=rectangle target=*" I get the error message: "[clip] This command does not support targetting layers from different datasets"
So, either I'm doing something wrong (usually the case) or the Clip-command doesn't support my request. If the latter, could that be implemented? Or is there a simple workaround, something with "-each", probably. Of course I can repeat the clipping-action several times, but I want to make a copy&paste script with no manual input necessary.

Dekkerb

@Dekkerb
Copy link
Author

Dekkerb commented Feb 6, 2024

...It seems I have found a use for the "merge-layers" command!

@mbloch
Copy link
Owner

mbloch commented Feb 8, 2024

Hi! There are some limitations on what you can do that I should work on removing. Thanks for bringing this to my attention.

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