SQL Flow Field Guide

geometry::STMPointFromText

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

static constructor STMPointFromText (called as type::STMPointFromText(...))

What changes

Input
WKT, WKB, GML or coordinates and SRID
Output or change
spatial instance
Return type
SQL Server return type: geometry CLR return type: SqlGeometry OGC type: MultiPoint

Syntax at a glance

STMPointFromText ( 'multipoint_tagged_text', SRID )

Work example

Use geometry.STMPointFromText to construct a multi-point value from WKT.

Validate every coordinate and keep source identity separate from point order. Keep the geometry type and SRID in the review.

Check your work The result has three independent points. MultiPoint does not connect them into a path.

Practice SQL

Open in SQL Flow

Open the SQL for a walkthrough. Run the example in SQL Server to check its result.

-- Planar geometry. SRID 0 coordinates here are synthetic units, not metres.
DECLARE @result geometry;
SET @result = geometry::STMPointFromText(N'MULTIPOINT(0 0, 3 4, 7 2)', 0);
SELECT @result.STAsText() AS multipoint_wkt,
       @result.STSrid AS result_srid,
       @result.STIsValid() AS result_is_valid;

Open Microsoft Learn for full syntax, permissions, and details for your version.