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

The implementantion in sql of SegmentSP. More...

Functions

segmentsp insegmentsp (cstring)
 
cstring outsegmentsp (segmentsp)
 
segmentsp recvsegmentsp (internal)
 
bytea send (segmentsp)
 
boolean equals (segmentsp segmenta, segmentsp segmentb)
 
integer hash (segmentsp segment)
 
pointsp geti (segmentsp segment)
 The function returns the start of the SegmentSP. More...
 
integer getix (segmentsp segment)
 The function returns the x coordinate of the start of the SegmentSP. More...
 
integer getiy (segmentsp segment)
 The function returns the y coordinate of the start of the SegmentSP. More...
 
pointsp gete (segmentsp segment)
 The function returns the end of the SegmentSP. More...
 
integer getex (segmentsp segment)
 The function returns the x coordinate of the end of the SegmentSP. More...
 
integer getey (segmentsp segment)
 The function returns the y coordinate of the end of the SegmentSP. More...
 
segmentsp segmentsp (integer ix, integer iy, integer ex, integer ey)
 The function creates a SegmentSP from 4 integers. More...
 
segmentsp segmentsp (pointsp i, pointsp e)
 The function creates a SegmentSP from 2 PointSP. More...
 
segmentsp clone (segmentsp segment)
 

Detailed Description

The implementantion in sql of SegmentSP.

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

SegmentSP is a spatial data type used in Hermes

See also
Spatial data types

Function Documentation

segmentsp clone ( segmentsp  segment)
boolean equals ( segmentsp  segmenta,
segmentsp  segmentb 
)
pointsp gete ( segmentsp  segment)

The function returns the end of the SegmentSP.

Parameters
[in]segmentThe SegmentSP
Returns
end of the SegmentSP
See also
get
integer getex ( segmentsp  segment)

The function returns the x coordinate of the end of the SegmentSP.

Parameters
[in]segmentThe SegmentSP
Returns
the coordinate
See also
get
integer getey ( segmentsp  segment)

The function returns the y coordinate of the end of the SegmentSP.

Parameters
[in]segmentThe SegmentSP
Returns
the coordinate
See also
get
pointsp geti ( segmentsp  segment)

The function returns the start of the SegmentSP.

Parameters
[in]segmentThe SegmentSP
Returns
start of the SegmentSP
See also
get
integer getix ( segmentsp  segment)

The function returns the x coordinate of the start of the SegmentSP.

Parameters
[in]segmentThe SegmentSP
Returns
the coordinate
See also
get
integer getiy ( segmentsp  segment)

The function returns the y coordinate of the start of the SegmentSP.

Parameters
[in]segmentThe SegmentSP
Returns
the coordinate
See also
get
integer hash ( segmentsp  segment)
segmentsp insegmentsp ( cstring  )
cstring outsegmentsp ( segmentsp  )
segmentsp recvsegmentsp ( internal  )
segmentsp segmentsp ( integer  ix,
integer  iy,
integer  ex,
integer  ey 
)

The function creates a SegmentSP from 4 integers.

Parameters
[in]ixthe x coordinate of the start point
[in]iythe y coordinate of the start point
[in]exthe x coordinate of the end point
[in]eythe x coordinate of the end point
Returns
SegmentSP
segmentsp segmentsp ( pointsp  i,
pointsp  e 
)

The function creates a SegmentSP from 2 PointSP.

Parameters
[in]ithe start point
[in]ethe end point
Returns
SegmentSP
bytea send ( segmentsp  )