ee.Geometry.LinearRing
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह एक ee.Geometry बनाता है, जिसमें लीनियर रिंग के बारे में बताया गया है. अगर आखिरी पॉइंट, पहले पॉइंट से मेल नहीं खाता है, तो आखिर में पहले पॉइंट का डुप्लीकेट जोड़ दिया जाएगा.
जब सभी आर्ग्युमेंट संख्याएं हों, तो सुविधा के लिए वैरग्स का इस्तेमाल किया जा सकता है. इससे, सम संख्या में आर्ग्युमेंट दिए जाने पर, भौगोलिक EPSG:4326 लीनियर रिंग बनाई जा सकती हैं. उदाहरण के लिए, ee.Geometry.LinearRing(aLng, aLat, bLng, bLat, ..., aLng, aLat).
इस्तेमाल | रिटर्न |
---|
ee.Geometry.LinearRing(coords, proj, geodesic, maxError) | Geometry.LinearRing |
आर्ग्यूमेंट | टाइप | विवरण |
---|
coords | List<Geometry>|List<List<Number>>|List<Number> | रिंग में मौजूद पॉइंट की सूची. यह GeoJSON के 'LinearRing' फ़ॉर्मैट में निर्देशांकों की सूची हो सकती है. इसके अलावा, यह किसी बिंदु के बारे में बताने वाले कम से कम तीन ee.Geometry ऑब्जेक्ट की सूची या कम से कम तीन बिंदुओं के [x,y] निर्देशांकों की जानकारी देने वाली कम से कम छह संख्याओं की सूची भी हो सकती है. |
proj | अनुमान, ज़रूरी नहीं | इस ज्यामिति का प्रोजेक्शन. अगर कोई वैल्यू नहीं दी गई है, तो डिफ़ॉल्ट रूप से इनपुट ee.Geometry का प्रोजेक्शन या कोई ee.Geometry इनपुट न होने पर EPSG:4326 का इस्तेमाल किया जाता है. |
geodesic | बूलियन, ज़रूरी नहीं | अगर यह वैल्यू false है, तो प्रोजेक्शन में किनारे सीधे होते हैं. अगर यह सही है, तो पृथ्वी की सतह पर सबसे छोटे रास्ते का पालन करने के लिए, किनारों को घुमाया जाता है. डिफ़ॉल्ट रूप से, इनपुट की जियोडेसिक स्थिति या इनपुट के नंबर होने पर, यह true होता है. |
maxError | ErrorMargin, ज़रूरी नहीं | जब इनपुट ज्यामिति को साफ़ तौर पर अनुरोध किए गए नतीजे के प्रोजेक्शन या जियोडेसिक स्टेटस में फिर से प्रोजेक्ट करना ज़रूरी हो, तब ज़्यादा से ज़्यादा गड़बड़ी. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eDefines a closed ring on the Earth's surface, ensuring the last point connects back to the first.\u003c/p\u003e\n"],["\u003cp\u003eAllows simplified creation of geodesic (EPSG:4326) rings using a series of longitude and latitude values.\u003c/p\u003e\n"],["\u003cp\u003eAccepts various input formats for ring coordinates, including GeoJSON, ee.Geometry objects, or raw numerical coordinates.\u003c/p\u003e\n"],["\u003cp\u003eProjection and geodesic behavior can be customized; defaults to input projection or EPSG:4326 with geodesic edges if unspecified.\u003c/p\u003e\n"],["\u003cp\u003eIncludes an optional parameter to control error during reprojection for precise geometry handling.\u003c/p\u003e\n"]]],["This code constructs a `LinearRing` geometry. It takes a list of coordinates (`coords`), an optional projection (`proj`), an optional geodesic setting, and an optional maximum error (`maxError`). If the last point in `coords` isn't the same as the first, it adds a duplicate. Varargs can be used with numbers, creating geodesic EPSG:4326 LinearRings. `coords` can be a list of coordinates, point geometries, or numbers. `geodesic` determines if edges are straight or curved.\n"],null,["# ee.Geometry.LinearRing\n\n\u003cbr /\u003e\n\nConstructs an ee.Geometry describing a LinearRing. If the last point is not equal to the first, a duplicate of the first point will be added at the end.\n\n\u003cbr /\u003e\n\nFor convenience, varargs may be used when all arguments are numbers. This allows creating geodesic EPSG:4326 LinearRings given an even number of arguments, e.g. ee.Geometry.LinearRing(aLng, aLat, bLng, bLat, ..., aLng, aLat).\n\n| Usage | Returns |\n|--------------------------------------------------------------------------|---------------------|\n| `ee.Geometry.LinearRing(coords, `*proj* `, `*geodesic* `, `*maxError*`)` | Geometry.LinearRing |\n\n| Argument | Type | Details |\n|------------|----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coords` | List\\\u003cGeometry\\\u003e\\|List\\\u003cList\\\u003cNumber\\\u003e\\\u003e\\|List\\\u003cNumber\\\u003e | A list of points in the ring. May be a list of coordinates in the GeoJSON 'LinearRing' format, a list of at least three ee.Geometry objects describing a point, or a list of at least six numbers defining the \\[x,y\\] coordinates of at least three points. |\n| `proj` | Projection, optional | The projection of this geometry. If unspecified, the default is the projection of the input ee.Geometry, or EPSG:4326 if there are no ee.Geometry inputs. |\n| `geodesic` | Boolean, optional | If false, edges are straight in the projection. If true, edges are curved to follow the shortest path on the surface of the Earth. The default is the geodesic state of the inputs, or true if the inputs are numbers. |\n| `maxError` | ErrorMargin, optional | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |"]]