本文简要介绍 python 语言中 arcgis.geometry.Geometry.segment_along_line 的用法。
- 用法:- segment_along_line(start_measure, end_measure, use_percentage=False)
- 返回:
- 一个浮点数 
 - 检索 - start和- end度量之间的- Polyline。- segment_along_line与- positionAlongLine方法类似,但会返回折线上两点之间的折线段,而不是单个- Point。- 注意:- segment_along_line方法需要 ArcPy- Parameter - Description - start_measure - 所需的浮点数。距行首的起始距离。 - end_measure - 所需的浮点数。到行首的结束距离。 - use_percentage - 可选布尔值。可以将开始和结束度量指定为固定单位或比率。如果为 True,则 start_measure 和 end_measure 用作百分比;如果为 False,则使用 start_measure 和 end_measure 作为距离。 注意:- 对于百分比,度量值应表示为从 0.0(0%)到 1.0(100%)的双倍。 - >>> geom = Geometry({ >>> "rings" : [[[-97.06138,32.837],[-97.06133,32.836],[-97.06124,32.834],[-97.06127,32.832], >>> [-97.06138,32.837]],[[-97.06326,32.759],[-97.06298,32.755],[-97.06153,32.749], >>> [-97.06326,32.759]]], >>> "spatialReference" : {"wkid" : 4326} >>> }) >>> geom.segment_along_line(start_measure =0, end_measure= 1000, use_percentage = True) 0.56
相关用法
- Python ArcGIS Geometry.spatial_reference用法及代码示例
- Python ArcGIS Geometry.scale用法及代码示例
- Python ArcGIS Geometry.true_centroid用法及代码示例
- Python ArcGIS Geometry.last_point用法及代码示例
- Python ArcGIS Geometry.measure_on_line用法及代码示例
- Python ArcGIS Geometry.point_from_angle_and_distance用法及代码示例
- Python ArcGIS Geometry.hull_rectangle用法及代码示例
- Python ArcGIS Geometry.translate用法及代码示例
- Python ArcGIS Geometry.from_shapely用法及代码示例
- Python ArcGIS Geometry.intersect用法及代码示例
- Python ArcGIS Geometry.length用法及代码示例
- Python ArcGIS Geometry.area用法及代码示例
- Python ArcGIS Geometry.angle_distance_to用法及代码示例
- Python ArcGIS Geometry.project_as用法及代码示例
- Python ArcGIS Geometry.part_count用法及代码示例
- Python ArcGIS Geometry.densify用法及代码示例
- Python ArcGIS Geometry.first_point用法及代码示例
- Python ArcGIS Geometry.geometry_type用法及代码示例
- Python ArcGIS Geometry.extent用法及代码示例
- Python ArcGIS Geometry.point_count用法及代码示例
- Python ArcGIS Geometry.geoextent用法及代码示例
- Python ArcGIS Geometry.contains用法及代码示例
- Python ArcGIS Geometry.label_point用法及代码示例
- Python ArcGIS Geometry.length3D用法及代码示例
- Python ArcGIS Geometry.is_multipart用法及代码示例
注:本文由纯净天空筛选整理自arcgis.com大神的英文原创作品 arcgis.geometry.Geometry.segment_along_line。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
