地理空间支持,SQL Server 08 与 MongoDB?

发布于 2024-10-02 07:54:33 字数 133 浏览 0 评论 0原文

MongoDB 拥有很多街头信誉,特别是自从 FourSquare 使用它之后。 MS SQL Server 2008 R2 还具有地理空间支持。

哪个数据库更容易/更好地进行类似 GPS 的搜索?例如点 X,Y 周围的 k 个最近点?

MongoDB has lots of street cred especially since FourSquare uses it. MS SQL Server 2008 R2 also has Geospatial support.

Which DB is easier/better for doing GPS-like search? e.g. k-nearest points around point X,Y?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

久伴你 2024-10-09 07:54:33

如果您需要的唯一地理空间函数是查找 X,Y 点周围的 k 个最近点,那么任何旧数据库都可以。只需使用半正矢公式,它就用多种语言实现了

If the only Geospatial function you need is to find k-nearest points around point X,Y then any old database will do. Just use Haversine formula, and it's been implemented in a bunch of languages.

长安忆 2024-10-09 07:54:33

使用 MongoDB 进行简单地理空间查询

http://blog.mxunit。 org/2010/11/simple-geospatial-queries-with-mongodb.html

比 SQL Server 更容易使用!我喜欢它。

Simple Geospatial Queries with MongoDB

http://blog.mxunit.org/2010/11/simple-geospatial-queries-with-mongodb.html

Much easier to use then SQL Server! I like it.

千纸鹤 2024-10-09 07:54:33

长话短说,在地理空间支持方面,SQL Server 比 mongo 更强大。但是,如果您只是在地图上存储点并想要计算距离,mongo 就足够了。

MongoDB 支持地理空间点。 SQL Server 支持任意数量点的地理空间对象。

这两种解决方案都可以满足您的地理空间需求,因此更多的是关于您的数据模型、可扩展性以及您喜欢的数据库。

To make a long story short, SQL Server is way more robust than mongo with geospatial support. However, if you are just storing points on a map and want to calculate distances, mongo is more than adequate.

MongoDB supports Geospatial points. SQL Server supports geospatial objects of an arbitrary number of points.

Either solution will be fine for your geospatial needs, so its more about your data model, scalability, and what database your comfortable with.

何以畏孤独 2024-10-09 07:54:33

您可能还想看看 PostGre。 GeoSpatial 数据处理是 PostGre 擅长的地方。但是无法真正告诉您有关 Windows 性能的信息

You might also want to look at PostGre. GeoSpatial data processing is where PostGre excels in. Can't really tell you about Windows performance however

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文