ee.Geometry.BBox.cutLines
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, LineString, MultiLineString, और LinearRing ज्यामिति को MultiLineString में बदलता है. इसके लिए, वह उन्हें उनकी लंबाई के हिसाब से तय की गई दूरी से ज़्यादा नहीं काटता. अन्य सभी ज्यामिति टाइप को खाली MultiLineString में बदल दिया जाएगा.
इस्तेमाल | रिटर्न |
---|
BBox.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 by dividing them into segments based on specified distances. The `distances` argument defines these cutting points along each line, with the `proj` argument determining the units (defaulting to meters or EPSG:4326 if not provided). `maxError` sets the acceptable error for reprojection. Other geometry types are converted to an empty MultiLineString. This function returns a Geometry object.\n"],null,[]]