ee.Geometry.Rectangle.cutLines
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Converts LineString, MultiLineString, and LinearRing geometries into a MultiLineString by cutting them into parts no longer than the given distance along their length. כל שאר סוגי הגאומטריה יומרו ל-MultiLineString ריק.
שימוש | החזרות |
---|
Rectangle.cutLines(distances, maxError, proj) | גיאומטריה |
ארגומנט | סוג | פרטים |
---|
זה: geometry | גיאומטריה | חיתוך הקווים של הצורה הגיאומטרית הזו. |
distances | רשימה | המרחקים לאורך כל LineString לחיתוך הקו לחלקים נפרדים, נמדדים ביחידות של ה-proj שצוין, או במטרים אם לא צוין proj. |
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 Environment.
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 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 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` argument (defaulting to meters or EPSG:4326). `maxError` sets the acceptable error for reprojection. Other geometry types are converted to an empty MultiLineString. The output geometry is a MultiLineString.\n"],null,[]]