pggeodb.nancy.inra.fr/db_cefs - db_cefs on pggeodb.nancy.inra.fr
Previous topic Chapter index Next topic

Function: st_pointfromtext

 

 

Schema

public

 

Owner

postgres

 

Descriptions

args: WKT - Makes a point Geometry from WKT with the given SRID. If SRID is not given, it defaults to unknown.

 

Options

Option

Value

Returns

public.geometry

Language

sql

Parameters

text

 

Definition

CREATE OR REPLACE FUNCTION public.st_pointfromtext (
 text
)
RETURNS public.geometry AS
$span$
SELECT CASE WHEN
geometrytype(ST_GeomFromText($1)) = 'POINT'
THEN ST_GeomFromText($1)
ELSE NULL END
$span$
LANGUAGE
'sql'
IMMUTABLE
RETURNS NULL ON NULL INPUT
SECURITY INVOKER
COST
100;

COMMENT ON FUNCTION public.st_pointfromtext(text)
IS 'args: WKT - Makes a point Geometry from WKT with the given SRID. If SRID is not given, it defaults to unknown.';

This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) at 13/03/2014 13:23
Previous topic Chapter index Next topic