Top

Name

http_st_ewkt — Writes a EWKT representation of a shape to the given session.

Synopsis

http_st_ewkt ( in shape any ,
  inout sess any );
 

Description

Writes a EWKT representation of a shape to the given session, a fast replacement for http (st_astext (shape), ses).

Parameters

shape

A given shape.

sess

Session.

Return Types

Returns any.

Examples

Example 24.655. Simple example

create procedure Example_http_st_ewkt ()
{
  declare g, ses, ctx, g_ewkt any;
  ses := string_output ();

  g := st_ewkt_read ('POLYGON
                       (
                         (1 3,2 4,1 5,0 4,1 3),
                         (1 3.5,1.5 4,1 4.5,0.5 4,1 3.5)
                       )
                     ');
  ses := string_output ();
  http_st_ewkt (g, ses);
}
;