12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>178 / 310Line 1 (green), Line 2 ball is start point, triangle are endpoints. Query below.SELECT ST_LineCrossingDirection(foo.line1 ←↪, foo.line2) As l1_cross_l2 ,ST_LineCrossingDirection(foo. ←↪line2, foo.line1) As l2_cross_l1FROM (SELECTST_GeomFromText(’LINESTRING(25 169,89 ←↪114,40 70,86 43)’) As line1,ST_GeomFromText(’LINESTRING(171 154,20 ←↪140,71 74,161 53)’) As line2) As foo;l1_cross_l2 | l2_cross_l1-------------+-------------3 | -3Line 1 (green), Line 2 (blue) ball is start point, triangle areend points. Query below.SELECT ST_LineCrossingDirection(foo.line1 ←↪, foo.line2) As l1_cross_l2 ,ST_LineCrossingDirection(foo. ←↪line2, foo.line1) As l2_cross_l1FROM (SELECTST_GeomFromText(’LINESTRING(25 169,89 ←↪114,40 70,86 43)’) As line1,ST_GeomFromText(’LINESTRING (171 154, ←↪20 140, 71 74, 2.99 90.16)’) As line2) As foo;l1_cross_l2 | l2_cross_l1-------------+-------------2 | -2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!