Annuncio: tutti i progetti non commerciali registrati per l'utilizzo di Earth Engine prima del
15 aprile 2025 devono
verificare l'idoneità non commerciale per mantenere l'accesso a Earth Engine.
ee.Filter.withinDistance
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Crea un filtro unario o binario che viene superato se la geometria a sinistra si trova a una distanza specificata dalla geometria a destra. Se utilizzata come condizione di unione, questa distanza viene utilizzata come misura di unione.
Utilizzo | Resi |
---|
ee.Filter.withinDistance(distance, leftField, rightValue, rightField, leftValue, maxError) | Filtro |
Argomento | Tipo | Dettagli |
---|
distance | Float | La distanza massima per cui il filtro restituirà true. |
leftField | Stringa, valore predefinito: null | Un selettore per l'operando di sinistra. Non deve essere specificato se è specificato leftValue. |
rightValue | Oggetto, valore predefinito: null | Il valore dell'operando di destra. Non deve essere specificato se è specificato rightField. |
rightField | Stringa, valore predefinito: null | Un selettore per l'operando di destra. Non deve essere specificato se è specificato rightValue. |
leftValue | Oggetto, valore predefinito: null | Il valore dell'operando di sinistra. Non deve essere specificato se è specificato leftField. |
maxError | ErrorMargin, facoltativo | L'errore di riproiezione massimo consentito durante l'applicazione del filtro. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003eDetermines if one geometry lies within a specified distance of another, useful for filtering and spatial joins.\u003c/p\u003e\n"],["\u003cp\u003eOperates on two geometries, allowing specification by field or direct value for both.\u003c/p\u003e\n"],["\u003cp\u003eDistance is a crucial parameter defining the maximum allowable separation for the filter to pass.\u003c/p\u003e\n"],["\u003cp\u003eOffers flexibility with optional error margin control during reprojection.\u003c/p\u003e\n"]]],["This functionality generates a filter based on the proximity of two geometries. It verifies if a left geometry falls within a designated `distance` of a right geometry. The `distance` parameter dictates the threshold for a true result. It accepts parameters such as `leftField`, `rightValue`, `rightField`, `leftValue`, and `maxError`. The filter's operation can be defined via fields or direct values for each geometry. When used in a join, it measures join proximity by the specified `distance`.\n"],null,["# ee.Filter.withinDistance\n\nCreates a unary or binary filter that passes if the left geometry is within a specified distance of the right geometry. If used as a join condition, this distance is used as a join measure.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------------------|---------|\n| `ee.Filter.withinDistance(distance, `*leftField* `, `*rightValue* `, `*rightField* `, `*leftValue* `, `*maxError*`)` | Filter |\n\n| Argument | Type | Details |\n|--------------|-----------------------|---------------------------------------------------------------------------------------|\n| `distance` | Float | The maximum distance for which the filter will return true. |\n| `leftField` | String, default: null | A selector for the left operand. Should not be specified if leftValue is specified. |\n| `rightValue` | Object, default: null | The value of the right operand. Should not be specified if rightField is specified. |\n| `rightField` | String, default: null | A selector for the right operand. Should not be specified if rightValue is specified. |\n| `leftValue` | Object, default: null | The value of the left operand. Should not be specified if leftField is specified. |\n| `maxError` | ErrorMargin, optional | The maximum reprojection error allowed during filter application. |"]]