Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

Long (geography Data Type)

The longitude property of the geography instance.

SQL Server type: float

CLR type: SqlDouble

In the OpenGIS model, Long is defined only on geography instances composed of a single point. This property will return NULL if geography instances contain more than a single point. This property is precise and read-only.

This example creates a Point instance and retrieves the longitude of the point.

DECLARE @g geography;
SET @g = geography::STGeomFromText('POINT(-122.34900 47.65100)', 4326);
SELECT @g.Long;
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.