System.Data.Spatial DbGeography.Distance 单位?

System.Data.Spatial DbGeography.Distance units?(System.Data.Spatial DbGeography.Distance 单位?)
本文介绍了System.Data.Spatial DbGeography.Distance 单位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用 DbGeography.Distance(otherLocation) 测量两个位置之间的距离时,距离的单位是什么?

When measuring the distance between two locations using the DbGeography.Distance(otherLocation) what is the unit of the distance?

连msdn信息和intellisense都无法指定距离的单位.

Even the msdn information and the intellisense fails to specify the unit of the distance.

有人知道吗?

我正在使用 srid 4326.大多数示例似乎都在使用它.据我所知,4326 似乎是弧度,这让我完全一无所知.弧度用于测量角度/度数,这在现实中意味着什么?

[edit] I'm using srid 4326. which most examples seems to use. From what I can find, 4326 seems to be radians, this leaves me completely clueless. radians are used to measure angles/degrees so what does this mean in reality ?

推荐答案

似乎有几篇文章同意在 4326 中使用米作为距离单位.

Several articles seem to agree on meters being used in 4326 as the unit of distance.

WGS 84 也是以米为单位的,这可能就是它使用米的原因.

WGS 84 is done in meters as well, which is probably why this uses meters.

http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-spatial-june-ctp.aspxhttp://www.jasonfollas.com/blog/archive/2011/07/20/entity-framework-spatial-first-look.aspxhttp://blog.simplecode.eu/post/DistancesWithDbGeographyAndDbGeometry

这篇关于System.Data.Spatial DbGeography.Distance 单位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)