cost 207 ms
使用 DbGeography.Intersect() 在直线上查找点 - Finding a point on a straight line with DbGeography.Intersect()

我目前正在学习 C# 中的 DbGeography 并尝试使用一些功能。 我一直在尝试确定Intersects()方法是否会为位于直线上的点(表示为 LineString DbGeography对象)返回 true,如果该点位于起点和终点之间。 所以,我的问题是:是否可以信任[myPoint].In ...

DbGeography.FromText - 无法加载 DLL 'SqlServerSpatial140.dll':找不到指定的模块。 (来自 HRESULT 的异常:0x8007007E) - DbGeography.FromText - Unable to load DLL 'SqlServerSpatial140.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

我试图从包文件夹“\packages\Microsoft.SqlServer.Types...\nativeBinaries”中复制 spatial140,在 Visual Studio 中构建成功,没有发现一些错误。 但是在运行项目时,我得到了那个错误。 ...

您能否从 Web API POST 读取数据 model 中不存在的其他数据字符串? - Can you read additional data strings from Web API POST which are not in the data model?

在实体框架中我有一个 DBGeography object: 由于我还没有发现通过 JSON 发送POINT object 的更好方法,我打算从我的 Javascript 代码发送“lat”和“lng”字符串值,并在 POST 方法期间在服务器上使用它们: 问题是我不知道如何检索发送到 POST ...

DbGeography 在发布到服务器时不起作用 - DbGeography does not work when published to a server

以下代码在调试时在我的本地计算机上工作,但在发布到服务器时会引发错误。 像疯子一样搜索后,我从 nuget 安装了 Microsoft.SqlServer.Types。 (版本 14.0.1016.290) 在 ~/bin 文件夹中添加了所需的 dll(由上述软件包提供)。 在 Global.as ...

System.Data.Spatial DBGeography.Distance()将与SQL Server 2008一起使用吗? - Will System.Data.Spatial DBGeography.Distance() will work with SQL Server 2008?

我使用System.Data.Spatial.DBGeography.Distance()来计算使用LINQToSQL,c#的两个DBGeography位置之间的距离。 我验证了这与SQL Server 2012一起使用。我可以在SQL Server 2008中使用它。 先感谢您! ...

DbGeography联合减去而不是合并 - DbGeography Union subtracting instead of combining

我正在尝试使用DbGeography将数千个矩形组合成一个多边形。 为了进行测试,我仅从两个矩形开始(因为成千上万个失败并导致全球结果)。 当我使用DbGeography的并集方法时,它将返回一个多边形,其中一个矩形从另一个矩形中减去,而不是合并它们。 我使用SQLGeography尝试了 ...

System.Data.Spatial DbGeography.Distance不能始终如一地工作 - System.Data.Spatial DbGeography.Distance is not working consistantly

我正在开发一个需要计算点之间距离的应用程序。 我正在使用LINQ和DbGeography类来实现此目的。 在大多数情况下,它在应用程序中都能正常运行,但是我遇到了一个问题,即它无法返回正确的结果。 请查看是否发现问题。 我有用于测试目的的硬编码值。 这个确切的代码可以与其 ...

传递DBGeometry列表以检索SQL中包含的点 - Passing a List of DBGeometry to retrieve points contained from SQL

我在SQL Server上有一个数据集,其中包含要基于客户端创建的DBGeography矩形网格检索的数百万个Geography Point。 基本上,我想传递ac#DBGeography列表,我的服务器将把适合这些几何的点的列表以及它们所属的DBGeography递回。 我目前正在查询每个 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM