铁轨 + Postgis与spatial_adapter或postgis_adapter gem?

发布于 2024-10-05 05:45:09 字数 258 浏览 0 评论 0原文

我需要将 Ruby-on-Rails 与 Postgis 数据库一起使用。 任何使用过 spatial_adapterpostgis_adapter 宝石? 有什么区别?你推荐哪一个?还有其他宝石可以推荐吗?

I need to use Ruby-on-Rails together with a Postgis database.
Anyone experience with both spatial_adapter and postgis_adapter gem?
What are the differences? Which do you recommend? Are there any other gems you recommend?

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

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

发布评论

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

评论(1

腹黑女流氓 2024-10-12 05:45:09

postgis_adapter是从spatial_adapter分叉出来的,所以它们非常相似。主要区别是:

  • postgis_adapter 比Spatial_adapter 提供更多实例方法
  • postgis_adapter 仅支持每个模型一个 geom 列
  • postgis_adapter 不适用于 Rails 3

postgis_adapter was forked from spatial_adapter, so they are very similar. The key differences are:

  • postgis_adapter provides additional instance methods over spatial_adapter
  • postgis_adapter only supports one geom column per model
  • postgis_adapter doesn't work with Rails 3
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文