Spat Db 6 Linear Referencing
- 1. การใช้งาน Linear Referencing (LR) และสำหรับ Geospatial Database (PostGIS >= 1.1.3) ผู้ช่วยศาสตราจารย์ ดร . ไพศาล สันติธรรมนนท์ คณะวิศวกรรมศาสตร์ จุฬาลงกรณ์มหาวิทยาลัย Email: Phisan.S@eng.chula.ac.th
- 4. การกำหนดตำแหน่งด้วย station หรือ event GPS Absolute Coordinate (Easting,Norhing) Station / Measure xxx+yyy ช่องทาง สภาพ 0 10 20 30 40 50 0+012 0+028 0+045 2 ช่องทาง 4 ช่องทาง ไม่สดวก ดี พอใช้
- 9. Location select length( geomfromtext('LINESTRING( 0.0 0.0, 50.0 0.0, 50.0 50.0)', -1) ) ; " 100 " (50,50) location= 1.0 ตัวอย่าง กม . 0+060 หรือ 60 เมตรจากจุดเริ่มต้น location = 60 / 100 = 0.6 location= 0.6 (0,0) (50, 0)
- 12. select asewkt( line_interpolate_point ( geomfromtext( 'LINESTRING( 0.0 0.0, 50.0 0.0, 50.0 50.0)', -1), 0.6 )); "POINT(50 10)" (0,0) (50,10) location= 0.6 (50,50) location= 1.0 (50, 0)
- 14. select asewkt(line_substring( geomfromtext('LINESTRING( 0.0 0.0, 50.0 0.0, 50.0 50.0)', -1), 0.4, 0.6 )); "LINESTRING(40 0,50 0,50 10)" (0,0) (50,10) location= 0.6 (50,50) location= 1.0 (50, 0) (40, 0) location= 0.4
- 16. select line_locate_point ( geomfromtext('LINESTRING( 0.0 0.0, 50.0 0.0, 50.0 50.0)', -1), geomfromtext('POINT(51.0 10.0)',-1) ); 0.6 (0,0) (51,10) location= 0.6 (50,50) location= 1.0 (50, 0)
- 20. ปัญหา -1 : Linear Referencing based Road Network ทล .- 1 ทล .- 1 ทล .- 1 ทล .- 1 กม .0+000 กม .x+yyy 1 2 3
- 21. ปัญหา -2 : Linear Referencing based Road Network ทล .- 1 ทล .- 1 ทล .- 1 ทล .- 1 กม .0+000 กม .x+yyy กม .x+yyy (mile stone)!