Hello,
I'm trying to get my head around MySQL GIS functionality. Can anyone tell me why the below query, lifted from a mysql example page, returns NULL whenever it is run? I am trying to use something similar to query a table based on distance from a point.
Cheers,
Ben
I'm trying to get my head around MySQL GIS functionality. Can anyone tell me why the below query, lifted from a mysql example page, returns NULL whenever it is run? I am trying to use something similar to query a table based on distance from a point.
Code:
SELECT ROUND(GLength(
LineStringFromWKB(
LineString(
AsBinary(GeomFromText('POINT(5571 3510)')),
AsBinary(GeomFromText('POINT(0 3510)'))
)
)
)
)
FROM dual;
Cheers,
Ben