ee.Filter.stringStartsWith
Creates a unary or binary filter that passes if the left operand, a string, starts with the right operand, also a string.
Usage | Returns |
---|
ee.Filter.stringStartsWith(leftField, rightValue, rightField, leftValue) | Filter |
Argument | Type | Details |
---|
leftField | String, default: null | A selector for the left operand. Should not be specified if leftValue is specified. |
rightValue | Object, default: null | The value of the right operand. Should not be specified if rightField is specified. |
rightField | String, default: null | A selector for the right operand. Should not be specified if rightValue is specified. |
leftValue | Object, default: null | The value of the left operand. Should not be specified if leftField is specified. |
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Creates a filter that checks if a string (left operand) starts with another string (right operand)."],["Accepts either a field or a direct value for both the left and right operands, but not both for the same operand."],["The filter passes if the left operand string starts with the right operand string."],["Useful for selecting features or images based on string properties like file names or IDs."]]],["This creates a filter to check if a string (left operand) begins with another string (right operand). It's configured using `ee.Filter.stringStartsWith`. You define either the field names (`leftField`, `rightField`) or the values (`leftValue`, `rightValue`) for both operands. The filter returns `True` when the left string starts with the right, enabling data subset selection. This can be used as a unary or binary filter.\n"]]