MySQL Forums
Forum List  »  GIS

Polygon under/touching Linestring
Posted by: Gozas Litho
Date: December 10, 2009 04:37PM

Dear friends,

I have a bunch of polygons defined and I would like to find out which of them are under a StringLine.

I tried with:
1#
SELECT id, AsText(g) AS myPolygon
FROM flst WHERE MBRIntersects(LineStringFromText('LINESTRING(4480611.9803 5551488.0621,4480804.8855 5551431.9080)'), g);

-> The result isn’t good enough because there is being used the boundary(=Big rectangle) of the StringLine
Even with the function Intersects() I have the same results.

2#
I have also tried with touches():
i.e.: touches(g, LineStringFromText('LINESTRING(x1 y1,x2 y2)'))
or: touches(LineStringFromText('LINESTRING(x1 y1,x2 y2)'), g)

Both times I had a null result.

- Is there another function that I can use?
- Am I using the false geometries?

Thank you for your help.
I am looking forward to hearing from you

Options: ReplyQuote


Subject
Views
Written By
Posted
Polygon under/touching Linestring
3479
December 10, 2009 04:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.