सूचना: 15 अप्रैल, 2025 से पहले, Earth Engine का इस्तेमाल करने के लिए रजिस्टर किए गए सभी गैर-व्यावसायिक प्रोजेक्ट को, Earth Engine का ऐक्सेस बनाए रखने के लिए, गैर-व्यावसायिक इस्तेमाल की ज़रूरी शर्तों की पुष्टि करनी होगी.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, दो ज्यामिति के बीच की कम से कम दूरी दिखाता है.
इस्तेमाल
रिटर्न
BBox.distance(right, maxError, proj, spherical)
फ़्लोट
आर्ग्यूमेंट
टाइप
विवरण
यह: left
ज्यामिति
ऑपरेशन के बाएं ऑपरेंड के तौर पर इस्तेमाल की जाने वाली ज्यामिति.
right
ज्यामिति
ऑपरेशन के राइट ऑपरेंड के तौर पर इस्तेमाल की जाने वाली ज्यामिति.
maxError
ErrorMargin, डिफ़ॉल्ट: null
ज़रूरी रीप्रोजेक्ट करने के दौरान, गड़बड़ी की ज़्यादा से ज़्यादा सीमा.
proj
प्रोजेक्शन, डिफ़ॉल्ट: null
वह प्रोजेक्शन जिसमें कार्रवाई करनी है. अगर टाइप नहीं बताया गया है, तो ऑपरेशन गोलाकार निर्देशांक प्रणाली में किया जाएगा और गोले पर लीनियर दूरियां मीटर में होंगी.
spherical
बूलियन, डिफ़ॉल्ट: गलत
अगर यह सही है, तो यूनिट स्फ़ीर पर हिसाब लगाया जाएगा. अगर यह वैल्यू गलत है, तो पृथ्वी के चपटे होने को ध्यान में रखते हुए, अंडाकार आकार का हिसाब लगाया जाएगा. अगर proj की वैल्यू दी गई है, तो इस पर ध्यान नहीं दिया जाता. डिफ़ॉल्ट रूप से, यह 'गलत' पर सेट होती है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["Calculates the minimum distance between two Earth Engine geometries."],["Takes a Geometry as the right operand and optional `maxError` and `proj` parameters."],["Returns the distance as a float, representing meters on the sphere if `proj` is not specified."],["Can be used with BBox, Point, and other geometry types for distance computations."]]],["The `distance` method calculates the minimum distance between two geometries. It takes a `right` geometry as input, and optionally `maxError`, `proj` (projection), and `spherical` parameters. `maxError` sets the tolerated error, `proj` defines the projection, and `spherical` determines if the calculation is spherical or elliptical. The method returns a float representing the distance. Example usage demonstrates calculating the distance between a BBox and a Point geometry, printing the distance, and visualizing both geometries on a map.\n"]]