Hi Duke,
oh the error message is really bad. We improved them a lot and they will be out soon, if they would have been out already you would see this:
>>
Invalid Coordinate Sequence: expected "(" ....
<<
This is because the WKT is maleformed, you must have two brackets for a polygon as you did in your dummy selection.
>>
GEOLOCATION.ST_Within(new ST_Polygon('POLYGON (0 0, 0 1, 1 1, 1 0, 0 0)'))
<<
After adding the brackets it should work such as:
>>
GEOLOCATION.ST_Within(new ST_Polygon('POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))'))
<<
Cheers
Gerrit