Hermes
 All Data Structures Files Functions Variables Macros Pages
Definition.sql File Reference

The implementantion in sql of PointSP. More...

Functions

pointsp inpointsp (cstring)
 The function transforms a string to a PointSP type. More...
 
cstring outpointsp (pointsp)
 The function transforms a PointSP to a string. More...
 
pointsp recvpointsp (internal)
 
bytea send (pointsp)
 
boolean equals (pointsp pointa, pointsp pointb)
 The function checks if two points are equal. More...
 
integer hash (pointsp point)
 
integer getx (pointsp point)
 The function returns the x coordinate of the point. More...
 
integer gety (pointsp point)
 The function returns the y coordinate of the point. More...
 
pointsp pointsp (integer x, integer y)
 The function creates a PointSP from two integers. More...
 
pointsp clone (pointsp point)
 

Detailed Description

The implementantion in sql of PointSP.

Author
Marios Vodas (mvoda.nosp@m.s@gm.nosp@m.ail.c.nosp@m.om).

PointSP is a spatial data type used in Hermes

See also
Spatial data types

Function Documentation

pointsp clone ( pointsp  point)
boolean equals ( pointsp  pointa,
pointsp  pointb 
)

The function checks if two points are equal.

Parameters
[in]pointAthe first input point
[in]pointBthe second input point
Returns
truth if the points are equal else false
integer getx ( pointsp  point)

The function returns the x coordinate of the point.

Parameters
[in]pointThe PointSP
Returns
the coordinate
See also
get
integer gety ( pointsp  point)

The function returns the y coordinate of the point.

Parameters
[in]pointThe PointSP
Returns
the coordinate
See also
get
integer hash ( pointsp  point)
pointsp inpointsp ( cstring  )

The function transforms a string to a PointSP type.

Parameters
[in]cstringthe point in string format
Returns
PointSP
cstring outpointsp ( pointsp  )

The function transforms a PointSP to a string.

Parameters
[in]PointSPthe input point
Returns
the string of the point
pointsp pointsp ( integer  x,
integer  y 
)

The function creates a PointSP from two integers.

Parameters
[in]xthe x coordinate of the point
[in]ythe y coordinate of the point
Returns
PointSP
pointsp recvpointsp ( internal  )
bytea send ( pointsp  )