ee.Geometry.Polygon.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 ריק.

שימושהחזרות
Polygon.cutLines(distances, maxError, proj)גיאומטריה
ארגומנטסוגפרטים
זה: geometryגיאומטריהחיתוך הקווים של הצורה הגיאומטרית הזו.
distancesרשימההמרחקים לאורך כל LineString לחיתוך הקו לחלקים נפרדים, נמדדים ביחידות של ה-proj שצוין, או במטרים אם לא צוין proj.
maxErrorErrorMargin, ברירת מחדל: 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.