How can I return a substring of a LINESTRING in SQL Server 2008 Spatial?

Posted by sabbour on Stack Overflow See other posts from Stack Overflow or by sabbour
Published on 2010-03-28T17:52:45Z Indexed on 2010/03/28 18:23 UTC
Read the original article Hit count: 145

Filed under:
|

Say I have a LINESTRING defined as

LINESTRING(-122.360 47.656, -122.343 47.656, -122.310 47.690, -122.310 47.670, -122.300 47.630)

And I want to get a substring from

POINT(-122.360 47.656) to POINT(-122.310 47.690)

How can I return a substring of a LINESTRING in SQL Server 2008 Spatial?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about spatial