rgeo-activerecord 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb9333047d9015a705f5bff61d30a82ab162b4d4
|
4
|
+
data.tar.gz: a21b3212037d3bfe7dbf59f68ad87b3dfbe8f056
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26607180b536dbe371568598b6b9b5694ce99b7c85360242708759b7c58402445ae1bc51b44d699cef4e62724f78755e8390132b43dc3a994ef5fa7ab25150be
|
7
|
+
data.tar.gz: 9d40eccd79541f4054b2e1ca5dc92557ce18a5290cee46f37aab0af90f5916790a36bd3c92e42011da1b8d0b2df8a42f21e9450d332272b7ddc8016a87d7e631
|
data/History.md
CHANGED
@@ -1,25 +1,6 @@
|
|
1
1
|
module RGeo
|
2
2
|
module ActiveRecord
|
3
|
-
#
|
4
|
-
# databases. Individual adapters may add to or override this list.
|
5
|
-
DEFAULT_SPATIAL_COLUMN_CONSTRUCTORS = {
|
6
|
-
geometry_collection: {}.freeze,
|
7
|
-
geometry: {}.freeze,
|
8
|
-
line_string: {}.freeze,
|
9
|
-
multi_line_string: {}.freeze,
|
10
|
-
multi_point: {}.freeze,
|
11
|
-
multi_polygon: {}.freeze,
|
12
|
-
point: {}.freeze,
|
13
|
-
polygon: {}.freeze,
|
14
|
-
spatial: { type: "geometry" }.freeze,
|
15
|
-
}.freeze
|
16
|
-
|
17
|
-
# Index definition struct with a spatial flag field.
|
18
|
-
|
19
|
-
SpatialIndexDefinition = Struct.new(:table, :name, :unique, :columns, :lengths, :orders, :where, :spatial)
|
20
|
-
|
21
|
-
# Returns a feature type module given a string type.
|
22
|
-
|
3
|
+
# Return a feature type module given a string type.
|
23
4
|
def self.geometric_type_from_name(name)
|
24
5
|
case name.to_s
|
25
6
|
when /^geometrycollection/i then Feature::GeometryCollection
|
@@ -194,7 +194,7 @@ module RGeo
|
|
194
194
|
def st_area(units = nil)
|
195
195
|
args = [self]
|
196
196
|
args << units.to_s if units
|
197
|
-
SpatialNamedFunction.new("
|
197
|
+
SpatialNamedFunction.new("ST_Area", args, [false, true, false])
|
198
198
|
end
|
199
199
|
|
200
200
|
def st_centroid
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rgeo-activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma, Tee Parham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rgeo
|
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
148
|
rubyforge_project:
|
149
|
-
rubygems_version: 2.6.
|
149
|
+
rubygems_version: 2.6.13
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: An RGeo module providing spatial extensions to ActiveRecord.
|