Export (0) Print
Expand All

STStartPoint (geography Data Type)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns the start point of a geography instance.

Applies to: SQL Server (SQL Server 2008 through current version), Azure SQL Database (Initial release through current release).

.STStartPoint ( )

SQL Server return type: geography

CLR return type: SqlGeography

Open Geospatial Consortium (OGC) type: Point

STStartPoint() is the equivalent of STPointN(1).

The following example creates a LineString instance and uses STStartPoint() to retrieve the start point of the instance.

DECLARE @g geography;
SET @g = geography::STGeomFromText('LINESTRING(-122.360 47.656, -122.343 47.656)', 4326);
SELECT @g.STStartPoint().ToString();
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft