Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

STLength() for geometries does not account for any supplied SRID

$
0
0
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

Viewing all articles
Browse latest Browse all 12198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>