activerecord-spatialite-adapter 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +4 -0
- data/Version +1 -1
- data/lib/active_record/connection_adapters/spatialite_adapter.rb +5 -0
- metadata +3 -3
data/History.rdoc
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 0.2.1 / 2010-12-15
|
2
|
+
|
3
|
+
* Provides meta-information to RGeo 0.2.2 or later to support access to PostGIS's spatial reference system table.
|
4
|
+
|
1
5
|
=== 0.2.0 / 2010-12-07
|
2
6
|
|
3
7
|
* Initial public alpha release. Spun activerecord-spatialite-adapter off from the core rgeo gem.
|
data/Version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -143,6 +143,11 @@ module ActiveRecord
|
|
143
143
|
end
|
144
144
|
|
145
145
|
|
146
|
+
def srs_database_columns
|
147
|
+
{:name_column => 'ref_sys_name', :proj4text_column => 'proj4text', :auth_name_column => 'auth_name', :auth_srid_column => 'auth_srid'}
|
148
|
+
end
|
149
|
+
|
150
|
+
|
146
151
|
def quote(value_, column_=nil)
|
147
152
|
if ::RGeo::Feature::Geometry.check_type(value_)
|
148
153
|
"GeomFromWKB(X'#{::RGeo::WKRep::WKBGenerator.new(:hex_format => true).generate(value_)}', #{value_.srid})"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Daniel Azuma
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-15 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|