Slide 26
Slide 26 text
地理情報データの活用方法の例
交叉判定とその挙動の紹介
サンプルデータ
SELECT id, ST_AsText(g) g FROM g1;
id | g
-------------------+------------------------------------------------------------------------------------------
basic_polygon | POLYGON((135 35,135.01 35,135.01 35.01,135 35.01,135 35))
line_cross1 | LINESTRING(134.995 35.009,135.003 35.007)
line_cross2 | LINESTRING(134.995 35.003,135.012 35.007)
line_nocross_in | LINESTRING(135.004 35.001,135.007 35.003)
line_nocross_out | LINESTRING(134.998 35.011,135.008 35.012)
polygon_inside | POLYGON((135.0085 35.008,135.009 35.008,135.009 35.009,135.0085 35.009,135.0085 35.008))
polygon_outside | POLYGON((135.011 35.008,135.015 35.008,135.015 35.012,135.011 35.012,135.011 35.008))
polygon_cross | POLYGON((134.997 34.998,135.003 34.998,135.003 35.002,134.997 35.002,134.997 34.998))
polygon_lineshare | POLYGON((135 35,135.01 35,135.01 34.996,135 34.996,135 35))
cross2
cross1
out
in
inside
outside
cross
lineshare