ee.Feature.copyProperties
Copies metadata properties from one element to another.
Usage | Returns |
---|
Feature.copyProperties(source, properties, exclude) | Element |
Argument | Type | Details |
---|
this: destination | Element, default: null | The object whose properties to override. |
source | Element, default: null | The object from which to copy the properties. |
properties | List, default: null | The properties to copy. If omitted, all ordinary (i.e. non-system) properties are copied. |
exclude | List, default: null | The list of properties to exclude when copying all properties. Must not be specified if properties is. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-13 UTC.
[null,null,["Last updated 2024-07-13 UTC."],[[["Copies metadata properties from a source element to a destination element."],["Allows specifying specific properties to copy or exclude, offering flexibility in property transfer."],["If no specific properties are provided, it copies all standard, non-system properties by default."],["Returns the modified destination element after the property transfer is complete."]]],["The `copyProperties` function transfers metadata properties from a source element to a destination element. It accepts the source and destination elements as arguments. Users can specify a list of `properties` to copy or, by omitting it, copy all non-system properties. An `exclude` list allows specific properties to be skipped during the copy operation when all properties are selected. The function returns the modified destination element.\n"]]