Skip to main content
removed thanks
Source Link
Vince
  • 20.3k
  • 16
  • 48
  • 65

Recently, I encountered a very strange phenomenon. I have to split a multilinestring on the point of touching another line, sounds complicated but it is just preprocessing to build a graph.

Now the problem is - I calculate the shortest line to the MultiLineString(). I get a linestring now I take the point which is supposed to be on the MultiLineString(). But according to PostGIS it is spatialy disjoint! calculating the length to the MultiLineString() the result is 0.

Where does this Problem come from?

Thanks!

Recently, I encountered a very strange phenomenon. I have to split a multilinestring on the point of touching another line, sounds complicated but it is just preprocessing to build a graph.

Now the problem is - I calculate the shortest line to the MultiLineString(). I get a linestring now I take the point which is supposed to be on the MultiLineString(). But according to PostGIS it is spatialy disjoint! calculating the length to the MultiLineString() the result is 0.

Where does this Problem come from?

Thanks!

Recently, I encountered a very strange phenomenon. I have to split a multilinestring on the point of touching another line, sounds complicated but it is just preprocessing to build a graph.

Now the problem is - I calculate the shortest line to the MultiLineString(). I get a linestring now I take the point which is supposed to be on the MultiLineString(). But according to PostGIS it is spatialy disjoint! calculating the length to the MultiLineString() the result is 0.

Where does this Problem come from?

Source Link
Styp
  • 1.5k
  • 12
  • 27

ST_Length(ST_ShortestLine()) equals 0, but ST_Disjoint = True

Recently, I encountered a very strange phenomenon. I have to split a multilinestring on the point of touching another line, sounds complicated but it is just preprocessing to build a graph.

Now the problem is - I calculate the shortest line to the MultiLineString(). I get a linestring now I take the point which is supposed to be on the MultiLineString(). But according to PostGIS it is spatialy disjoint! calculating the length to the MultiLineString() the result is 0.

Where does this Problem come from?

Thanks!