©Project PLATEAU / MLIT Japan
トポロジ化メソッド2
● GEOSGeometry.interpolate(distance)
● GEOSGeometry.interpolate_normalized(distance)
○ LineString, MultiLineStringの始点から、指定した距離に対応する点
の座標を戻す。
○ interpolate では、現在の座標系における距離を指定
■ line = LINESTRING((0,0), (10,0))
■ line.interpolate(6) > POINT(0, 6)
○ interpolate_normalized の方は、0〜1の範囲で値を指定する。
■ line.interpolate(0.5) > POINT(0, 5)
● GEOSGeometry.project(point)/GEOSGeometry.project_normali
zed(point)
○ ジオメトリの原点から指定したPointまでの距離を戻す。
○ project_normalized の方は、0〜1の範囲で値を戻す。
(0,0) (10,0)
(6,0)