सूचना: जिन गैर-व्यावसायिक प्रोजेक्ट के लिए Earth Engine को
15 अप्रैल, 2025 से पहले रजिस्टर किया गया है उन्हें ऐक्सेस बनाए रखने के लिए,
गैर-व्यावसायिक इस्तेमाल से जुड़ी ज़रूरी शर्तों की पुष्टि करनी होगी. अगर आपने 26 सितंबर, 2025 तक पुष्टि नहीं की, तो आपके ऐक्सेस को होल्ड पर रखा जा सकता है.
ee.Geometry.Polygon.cutLines
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, LineString, MultiLineString, और LinearRing ज्यामिति को MultiLineString में बदलता है. इसके लिए, वह उन्हें उनकी लंबाई के हिसाब से तय की गई दूरी से ज़्यादा नहीं काटता. अन्य सभी ज्यामिति टाइप को खाली MultiLineString में बदल दिया जाएगा.
| इस्तेमाल | रिटर्न |
|---|
Polygon.cutLines(distances, maxError, proj) | ज्यामिति |
| आर्ग्यूमेंट | टाइप | विवरण |
|---|
यह: geometry | ज्यामिति | इस ज्यामिति की लाइनों को काटता है. |
distances | सूची | हर LineString के साथ दूरियां, ताकि लाइन को अलग-अलग हिस्सों में काटा जा सके. इन्हें दिए गए प्रोज़ की इकाइयों या मीटर में मापा जाता है. अगर प्रोज़ के बारे में नहीं बताया गया है, तो इन्हें मीटर में मापा जाता है. |
maxError | ErrorMargin, डिफ़ॉल्ट: null | ज़रूरी रीप्रोजेक्शन करते समय, ज़्यादा से ज़्यादा कितनी गड़बड़ी हो सकती है. |
proj | प्रोजेक्शन, डिफ़ॉल्ट: null | नतीजे और दूरी के मेज़रमेंट का प्रोजेक्शन या अगर यह तय नहीं किया गया है, तो EPSG:4326. |
उदाहरण
कोड एडिटर (JavaScript)
// Notice: the cutLines geometry method applies only to LineString,
// MultiLineString, and LinearRing geometries. All other geometry types result
// in an empty MultiLineString.
Python सेटअप करना
Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के बारे में जानकारी पाने के लिए,
Python एनवायरमेंट पेज देखें.
import ee
import geemap.core as geemap
Colab (Python)
# Notice: the cutLines geometry method applies only to LineString,
# MultiLineString, and LinearRing geometries. All other geometry types result
# in an empty MultiLineString.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[],["The `cutLines` method transforms LineString, MultiLineString, and LinearRing geometries into a MultiLineString. It divides these geometries into segments based on specified distances along their length. The `distances` parameter dictates the cutting points, measured in units defined by the `proj` parameter (or meters if unspecified). `maxError` defines tolerance during reprojection. Other geometry types are converted to an empty MultiLineString. The method is not available in the example provided in Javascript. The python example only show how to import the libraries.\n"]]