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
How to keep the original filename on merge & --split #396
Comments
@christian-weiss, could you elaborate a bit on how you want the output from |
yes, same as the original filenames. |
If I understand correctly, you want to input multiple files as separate layers, merge them to a single layer, edit the merged layer, then split the layer apart again and save the layers using the original file names... here's how you can do it.
|
Resulted in an error:
Version i use is 0.4.152 |
The expression you give the |
My initial command was already with My request was:
Where
Last line is now changed to:
to handle the single quotes issue. Another option is to omit the single quotes and run:
without spaces before and after |
I see... if you're passing one shell command through another shell command, then things get a bit more complicated. You may need to use nested quotes and/or add escape characters. |
@mbloch Is there a list of available reference names (like Why is it required to rename the edited layers to Please confirm that the meaning of
should be
as using a Suggestion for
Current format of help screen looks broken:
should be formatted:
Description is not 100% clear, as one needs to know how mapshaper is internally organized/operating. |
You brought up a lot of different things... The command line help is very concise and doesn't give full explanations for many features. My eventual goal is to create a documentation site for mapshaper. Meanwhile, the GitHub wiki has more documentation than the The entry for I slightly reformatted the help display for the
The wiki has some information about the meaning of To summarize, mapshaper refers to the main input layer or layers of a command as "targets". By default, editing commands modify their target layers (by "modify", I mean they replace the input data with the output data). If you want to retain the original contents of a command's target layer(s) instead of replacing them, you would use the By default, the output of a command becomes the target for the next command (for most commands). Most of the time, you won't need to explicitly set a command's target. But if you do need to set a command's target, then you can use the As for the description of the The reason for using Hope this is useful. |
Is there a build-in way to keep the original filenames after split? Or do i have to prepare the input files by adding a .feature[].properties.originalFilename and then rename the output files based on that field?
This question is inspired by: #365
The text was updated successfully, but these errors were encountered: