プロジェクト

全般

プロフィール

Vote #81626

未完了

Patch to add Postgis adapter support

Admin Redmine さんが約4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Database_21
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
21
version_id:
0
issue_org_id:
35816
author_id:
427823
assigned_to_id:
0
comments:
2
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I've been running Redmine with postgis adapter for while to support a plugin for spatial data.

The proposed patch is necessary to eliminate annoying waning messages from Gemfile and to allow Query with case insentive (ILIKE), since postgis only adds spatial functions on top of the postgresql adapter.

It was tested for several months on FreeBSD 12 and CentOS 7.


journals

I'm not sure if this is something Redmine should support OOTB within the core.

What do other people think about this?
--------------------------------------------------------------------------------
Thanks for the opportunity to discuss this subject!

I think it is not going to break builtin compatibility with _pg adapter_, as stated in https://rubygems.org/gems/activerecord-postgis-adapter :

> ActiveRecord connection adapter for PostGIS. It is based on the stock PostgreSQL adapter, and adds built-in support for the spatial extensions provided by PostGIS. It uses the RGeo library to represent spatial data in Ruby.

I read parts of the postgis source code, and it really uses pg adapter to address all non spatial queries.

_Gemfile_:

<pre>
<code class="ruby">
source "https://rubygems.org"

# Specify your gem's dependencies in activerecord-postgis-adapter.gemspec
gemspec

gem "pg", "~> 1.0", platform: :ruby
gem "activerecord-jdbcpostgresql-adapter", platform: :jruby
gem "ffi-geos", platform: :jruby
gem "byebug" if ENV["BYEBUG"]
</code>
</pre>

--------------------------------------------------------------------------------

Admin Redmine さんがほぼ4年前に更新

  • カテゴリDatabase_21 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0