New functions to create shapes:
point(<x>,<y>). Example: select point(10,10,20,20) as point
circle(<center-x>,<center-y>,<distance>). Example: select circle(10,10,10) as circle
rectangle(<top-x>,<top-y>,<bottom-x>,<bottom-y>). Example: select rectangle(10,10,20,20) as rectangle
lineString([ <point>* ]). Example: linestring( [ [10,10], [20,10], [20,20], [10,20], [10,10] ] )
polygon([ <point>* ]). Example: select polygon( [ point(10,10), point(20,10), point(20,20), point(10,20), point(10,10) ] ) as polygon and select polygon( [ [10,10], [20,10], [20,20], [10,20], [10,10] ] ) as polygon
New methods that work with shapes:
isWithin(). Example: select point(11,11).isWithin( circle(10,10,10) ) as isWithin
intersectsWith(). Example: select linestring( [ [10,10], [20,10], [20,20], [10,20], [10,10] ] ).intersectsWith( rectangle(10,10,20,20) ) as intersectsWith
New functions to create shapes:
point(<x>,<y>). Example:select point(10,10,20,20) as pointcircle(<center-x>,<center-y>,<distance>). Example:select circle(10,10,10) as circlerectangle(<top-x>,<top-y>,<bottom-x>,<bottom-y>). Example:select rectangle(10,10,20,20) as rectanglelineString([ <point>* ]). Example:linestring( [ [10,10], [20,10], [20,20], [10,20], [10,10] ] )polygon([ <point>* ]). Example:select polygon( [ point(10,10), point(20,10), point(20,20), point(10,20), point(10,10) ] ) as polygonandselect polygon( [ [10,10], [20,10], [20,20], [10,20], [10,10] ] ) as polygonNew methods that work with shapes:
isWithin(). Example:select point(11,11).isWithin( circle(10,10,10) ) as isWithinintersectsWith(). Example:select linestring( [ [10,10], [20,10], [20,20], [10,20], [10,10] ] ).intersectsWith( rectangle(10,10,20,20) ) as intersectsWith