[postgis-devel] [PostGIS] #1909: intersection problem

PostGIS trac at osgeo.org
Tue Jul 10 05:25:09 PDT 2012


#1909: intersection problem
---------------------+------------------------------------------------------
 Reporter:  debe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 1.5.4
Component:  postgis  |     Version:  1.5.X        
 Keywords:           |  
---------------------+------------------------------------------------------
 with this line:

 {{{
 geomfromtext('LINESTRING(15 56,80 12)')
 }}}

 and this substring line:

 {{{
 st_line_substring(geomfromtext('LINESTRING(15 56,80 12)'),0,0.6)
 }}}
 =>
 {{{
 LINESTRING(15 56,54 29.6)
 }}}


 if i make the intersection i get only the first point:

 {{{
 st_intersection(
     geomfromtext('LINESTRING(15 56,80 12)'),
     st_line_substring(geomfromtext('LINESTRING(15 56,80 12)'),0,0.6)
 )
 }}}

 =>
 {{{
 POINT(15 56)
 }}}

 my expected result should be:

 {{{
 LINESTRING(15 56,54 29.6)
 }}}

 because if I take a substring of a line, the intersection with the
 original line is the
 substring line, correct?

 thx for any help on this strange thing

 Daniele

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1909>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list