ST_MPointFromText utilise en entrée une représentation WKT du type multipoint et un identificateur de système de références spatiales, et renvoie un multipoint.
Syntaxe
db2gse.ST_MPointFromText(multiPointTaggedText Varchar(4000), SRID db2gse.coordref)
Type de retour
db2gse.ST_MultiPoint
Exemples
L'instruction CREATE TABLE ci-après crée la table MULTIPOINT_TEST qui comporte une seule colonne multipoint, MPT1.
CREATE TABLE MULTIPOINT_TEST (mpt1 db2gse.ST_MultiPoint)
L'instruction INSERT ci-après insère un multipoint dans la colonne MPT1 via la fonction ST_MPointFromText.
INSERT INTO MULTIPOINT_TEST VALUES (1, db2gse.ST_MPointFromText('multipoint(10.01 20.03,10.52 40.11, 30.29 41.56,31.78 10.74)', db2gse.coordref()..srid(0)))