the_geom_geojson 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +6 -0
- data/lib/the_geom_geojson/active_record.rb +2 -5
- data/lib/the_geom_geojson/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae043cc4cfd9148c6fc66a1023ff397f6766234d
|
4
|
+
data.tar.gz: 1fcce54797e6207af51344a08adfc0bf41a5fa00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c91ad78475eed749ce3e02c6b97f01c540379dafa5587538760089efee4581f3c19b74285a9acad8bce7bba960990eb3a98214d6fdbf1a8f69836e5da8520757
|
7
|
+
data.tar.gz: 59b101b7aa9660dbee0c7c8ee5dffc930e3a3ebb73549d0d66c9dfba9616a34b818ee6cf1c1485af2b797e8a169c494819534cff259a540c4aecf2ee86710443
|
data/CHANGELOG
CHANGED
@@ -51,12 +51,9 @@ module TheGeomGeoJSON
|
|
51
51
|
elsif preselected = read_attribute(:the_geom_geojson)
|
52
52
|
preselected
|
53
53
|
elsif the_geom
|
54
|
-
|
55
|
-
|
56
|
-
if (elapsed = Time.now - started_at) > 0.1
|
57
|
-
$stderr.puts "[the_geom_geojson] EWKB->GeoJSON parsing took #{elapsed}s, recommend using #{self.class.name}.with_geojson scope"
|
54
|
+
self.class.connection_pool.with_connection do |c|
|
55
|
+
c.select_value "SELECT ST_AsGeoJSON(the_geom) FROM #{self.class.quoted_table_name} WHERE #{self.class.quoted_primary_key} = #{c.quote(id)} LIMIT 1"
|
58
56
|
end
|
59
|
-
memo
|
60
57
|
end
|
61
58
|
end
|
62
59
|
|