ee.Algorithms.GeometryConstructors.Polygon
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह दिए गए कोऑर्डिनेट से पॉलीगॉन बनाता है.
इस्तेमाल | रिटर्न |
---|
ee.Algorithms.GeometryConstructors.Polygon(coordinates, crs, geodesic, maxError, evenOdd) | ज्यामिति |
आर्ग्यूमेंट | टाइप | विवरण |
---|
coordinates | सूची | LinearRings की सूची, जिसमें पहला शेल होता है और बाकी छेद होते हैं. इसके अलावा, सामान्य पॉलीगॉन के लिए, x,y क्रम में Point या Number के जोड़े की सूची होती है. |
crs | प्रोजेक्शन, डिफ़ॉल्ट: null | निर्देशांकों का कोऑर्डिनेट रेफ़रंस सिस्टम. डिफ़ॉल्ट रूप से, इनपुट का प्रोजेक्शन होता है. इसमें संख्याओं को EPSG:4326 माना जाता है. |
geodesic | बूलियन, डिफ़ॉल्ट: null | अगर यह वैल्यू false है, तो प्रोजेक्शन में किनारे सीधे होते हैं. अगर सही है, तो पृथ्वी की सतह पर सबसे छोटे रास्ते को फ़ॉलो करने के लिए किनारों को घुमाया जाता है. डिफ़ॉल्ट रूप से, यह इनपुट की जियोडेसिक स्थिति होती है. अगर इनपुट संख्याएं हैं, तो यह true होती है. |
maxError | ErrorMargin, डिफ़ॉल्ट: null | इनपुट ज्यामिति को, नतीजे के लिए अनुरोध की गई प्रोजेक्शन या जियोडेसिक स्थिति में फिर से प्रोजेक्ट करने पर ज़्यादा से ज़्यादा गड़बड़ी. |
evenOdd | बूलियन, डिफ़ॉल्ट: true | अगर यह विकल्प चुना जाता है, तो पॉलीगॉन के अंदरूनी हिस्से का फ़ैसला सम/विषम नियम के हिसाब से किया जाएगा. इस नियम के तहत, अगर कोई पॉइंट इनफ़िनिटी पर मौजूद किसी पॉइंट तक पहुंचने के लिए विषम संख्या में किनारों को पार करता है, तो उसे पॉलीगॉन के अंदर माना जाता है. इसके अलावा, पॉलीगॉन में लेफ्ट-इनसाइड नियम का इस्तेमाल किया जाता है. इसमें, दिए गए क्रम में वर्टेक्स पर चलने के दौरान, इंटीरियर शेल के किनारों के बाईं ओर होते हैं. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eCreates a polygon geometry from a list of coordinates, representing its outer boundary (shell) and optionally inner boundaries (holes).\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of the coordinate system (\u003ccode\u003ecrs\u003c/code\u003e), whether edges are straight or follow Earth's curvature (\u003ccode\u003egeodesic\u003c/code\u003e), and error tolerance during reprojection (\u003ccode\u003emaxError\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eDefines polygon interiors using either the even/odd rule (default) or the left-inside rule, affecting how points within the polygon are identified.\u003c/p\u003e\n"]]],[],null,["# ee.Algorithms.GeometryConstructors.Polygon\n\nConstructs a Polygon from the given coordinates.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------------|----------|\n| `ee.Algorithms.GeometryConstructors.Polygon(coordinates, `*crs* `, `*geodesic* `, `*maxError* `, `*evenOdd*`)` | Geometry |\n\n| Argument | Type | Details |\n|---------------|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `coordinates` | List | A list of LinearRings where the first is the shell and the rest are holes, or for a simple polygon, a list of Points or pairs of Numbers in x,y order. |\n| `crs` | Projection, default: null | The coordinate reference system of the coordinates. The default is the projection of the inputs, where Numbers are assumed to be EPSG:4326. |\n| `geodesic` | Boolean, default: null | 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, default: null | Max error when input geometry must be reprojected to an explicitly requested result projection or geodesic state. |\n| `evenOdd` | Boolean, default: true | If true, polygon interiors will be determined by the even/odd rule, where a point is inside if it crosses an odd number of edges to reach a point at infinity. Otherwise polygons use the left-inside rule, where interiors are on the left side of the shell's edges when walking the vertices in the given order. |"]]