SlideShare une entreprise Scribd logo
1  sur  22
การใช้งาน  Linear Referencing (LR)  และสำหรับ  Geospatial Database (PostGIS >= 1.1.3) ผู้ช่วยศาสตราจารย์ ดร .  ไพศาล สันติธรรมนนท์ คณะวิศวกรรมศาสตร์ จุฬาลงกรณ์มหาวิทยาลัย Email: Phisan.S@eng.chula.ac.th
Linear Referencing (LR) ,[object Object],[object Object],[object Object],กม  X+YYY
การกำหนดตำแหน่งด้วยจีพีเอส เป็นการกำหนดชนิด  “ สัมบูรณ์ ” ,[object Object],[object Object],[object Object],[object Object]
การกำหนดตำแหน่งด้วย  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  ช่องทาง ไม่สดวก ดี พอใช้
การกำหนดตำแหน่งด้วย  station/measure/location  และพิกัดสัมบูรณ์ สัมพันธ์ !!! ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
แนวคิดระบบภูมิสารสนเทศ ,[object Object],[object Object],[object Object],[object Object]
การวิเคราะห์เชิงเส้น
Spatio-temporal Model ห้วงเวลา ตำแหน่งบนสายทาง Condition (t0) Condition (t1) Condition (t2) Condition (t3)
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)
การเลือกสายทาง ตามชื่อ   แล้วผนวกรวมเข้าด้วยกัน ,[object Object],[object Object],(0,0) (50, 0) (50, 0) (50, 50)
LR functions (1) ,[object Object],[object Object],[object Object],location% (0..1) (x,y) ระยะทางทั้งหมด  S = 1.0 เริ่ม สิ้นสุด
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)
LR functions (2) ,[object Object],[object Object],[object Object],end% (0..1) end ระยะทางทั้งหมด  S = 1.0 เริ่มต้น สิ้นสุด start start% (0..1)
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
LR Function (3) ,[object Object],[object Object],[object Object],X% (0..1) (x,y) ระยะทางทั้งหมด  S = 1.0 เริ่มต้น สิ้นสุด
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)
LR Function (4) ตาม  ISO/IEC CD 13249-3:200x(E) ,[object Object],[object Object],[object Object],X(float8) (x,y) เริ่มต้น สิ้นสุด
LR functions (5)   ตาม  ISO/IEC CD 13249-3:200x(E) ,[object Object],[object Object],[object Object],end_float8 end เริ่มต้น สิ้นสุด start start_float8
Linear Referencing based Road Network ทล .- 1 ทล .- 1 ทล .- 1 ทล .- 1 กม .0+000 กม .x+yyy
ปัญหา -1 : Linear Referencing based Road Network ทล .- 1 ทล .- 1 ทล .- 1 ทล .- 1 กม .0+000 กม .x+yyy 1 2 3
ปัญหา -2 : Linear Referencing based Road Network ทล .- 1 ทล .- 1 ทล .- 1 ทล .- 1 กม .0+000 กม .x+yyy กม .x+yyy (mile stone)!
การวิเคราะห์ เหตุการณ์  Event point line Polygon  (shape)

Contenu connexe

En vedette

Tiffany Lakes - Fall in love with life around here!
Tiffany Lakes - Fall in love with life around here!Tiffany Lakes - Fall in love with life around here!
Tiffany Lakes - Fall in love with life around here!T&R Properties
 
Sa foss convention_april10-1
Sa foss convention_april10-1Sa foss convention_april10-1
Sa foss convention_april10-1Yves Ezo
 
Onet khong banluam
Onet khong banluamOnet khong banluam
Onet khong banluamAnon
 
Utilizing Social Networks for User Model Priming: User Attitudes
Utilizing Social Networks for User Model Priming: User AttitudesUtilizing Social Networks for User Model Priming: User Attitudes
Utilizing Social Networks for User Model Priming: User AttitudesAdam Moore
 

En vedette (7)

Semag nr_0
Semag nr_0Semag nr_0
Semag nr_0
 
August 26
August 26August 26
August 26
 
Tiffany Lakes - Fall in love with life around here!
Tiffany Lakes - Fall in love with life around here!Tiffany Lakes - Fall in love with life around here!
Tiffany Lakes - Fall in love with life around here!
 
Sa foss convention_april10-1
Sa foss convention_april10-1Sa foss convention_april10-1
Sa foss convention_april10-1
 
Onet khong banluam
Onet khong banluamOnet khong banluam
Onet khong banluam
 
Paris Web 2013 - octobre
Paris Web 2013 - octobreParis Web 2013 - octobre
Paris Web 2013 - octobre
 
Utilizing Social Networks for User Model Priming: User Attitudes
Utilizing Social Networks for User Model Priming: User AttitudesUtilizing Social Networks for User Model Priming: User Attitudes
Utilizing Social Networks for User Model Priming: User Attitudes
 

Spat Db 6 Linear Referencing

  • 1. การใช้งาน Linear Referencing (LR) และสำหรับ Geospatial Database (PostGIS >= 1.1.3) ผู้ช่วยศาสตราจารย์ ดร . ไพศาล สันติธรรมนนท์ คณะวิศวกรรมศาสตร์ จุฬาลงกรณ์มหาวิทยาลัย Email: Phisan.S@eng.chula.ac.th
  • 2.
  • 3.
  • 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 ช่องทาง ไม่สดวก ดี พอใช้
  • 5.
  • 6.
  • 8. Spatio-temporal Model ห้วงเวลา ตำแหน่งบนสายทาง Condition (t0) Condition (t1) Condition (t2) Condition (t3)
  • 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)
  • 10.
  • 11.
  • 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)
  • 13.
  • 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
  • 15.
  • 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)
  • 17.
  • 18.
  • 19. Linear Referencing based Road Network ทล .- 1 ทล .- 1 ทล .- 1 ทล .- 1 กม .0+000 กม .x+yyy
  • 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)!