Length is returned in units of measure based on the input system; for all geometries this is a grid and does not take the spatial reference ID into account. Any stored values for Z are also ignored.Declare @geography geography = geography::STGeomFromText('Linestring(0 2, 1 1, 2 0)',4326);Declare @geometry geometry= geometry::STGeomFromText('Linestring(0 2, 1 1, 2 0)',4326);Select @geography.STLength() as GeographyDistance,@geometry.STLength() as GeometryDistance;-- A quick conversion if we need
↧