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. Se non hai eseguito la verifica entro il 26 settembre 2025, il tuo accesso potrebbe essere sospeso.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Restituisce il punto nell'input a destra più vicino all'input a sinistra. Se uno degli input è vuoto, viene restituito null. Se entrambi gli input non sono delimitati, viene restituito un punto arbitrario. Se un input non è delimitato, viene restituito un punto arbitrario nell'input delimitato.
Utilizzo
Resi
MultiPoint.closestPoint(right, maxError, proj)
Oggetto
Argomento
Tipo
Dettagli
questo: left
Geometria
La geometria utilizzata come operando sinistro dell'operazione.
right
Geometria
La geometria utilizzata come operando destro dell'operazione.
maxError
ErrorMargin, valore predefinito: null
La quantità massima di errore tollerata durante l'esecuzione di qualsiasi riproiezione necessaria.
proj
Proiezione, valore predefinito: null
La proiezione in cui eseguire l'operazione. Se non specificato, l'operazione verrà eseguita in un sistema di coordinate sferiche e le distanze lineari saranno in metri sulla sfera.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-26 UTC."],[],["The function `closestPoint` finds the point on the `right` geometry that is nearest to the `left` geometry. It returns this point as an Object. If either `left` or `right` is empty, it returns null. For unbounded inputs, it returns an arbitrary point; when only one is unbounded, an arbitrary point within the bounded input is returned. The operation uses optional `maxError` and `proj` arguments for error tolerance and projection, respectively. The default projection is spherical, with distances in meters.\n"]]