SQL Server 2008 GEOGRAPHY STDistance() value

后端 未结 2 1268
一向
一向 2021-01-07 16:17

I am using geography.STDistance() to return the distance between two single point locations. I\'m curious as to which measurement is used for the return value? Is it in KM\'

2条回答
  •  独厮守ぢ
    2021-01-07 17:03

    I think the return measurement depends upon the Spatial Reference Identifiers (SRIDs) of your geography data type. The default is 4326 which is in meters. There' a table in the DB you can check Select * from sys.spatial_reference_systems

提交回复
热议问题