ogrinfo2migration 0.0.3 → 0.0.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ogrinfo2migration.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6936fbf0ad13254433da8572e35a3889cb232fa9
4
- data.tar.gz: c472f1385598e3a8f2ee920cd955de1e2326e329
3
+ metadata.gz: 5ca3bfb26074db95193daed2f5bf6da02c1dbf5b
4
+ data.tar.gz: 4acf624567fe228ad009fbab25107277c9b17796
5
5
  SHA512:
6
- metadata.gz: 87a6da22bf4782bed685e6173083fe2ce46cd78884c09805b65a0fcf0c748ffc466e4eac2c7fcc363ddea28db19357df0d22c7d8cfb9651130ce8660062d5965
7
- data.tar.gz: a7f3704f05370b18cb63381e55a7fd35755539b6ee0be42cadd8623bd50036486458b5ee59cc74f8f39e87abf0a3966a7b3f04704a52e862b9fcd47cfedf6c41
6
+ metadata.gz: 48eaa75029bf558c6bfdf32054cc042038f94cd97aaa08c84986dc355ab4d1734378784fe5f7dc655aba875d07c2c818dfd4cb013592aa7ef797ac631972a94b
7
+ data.tar.gz: 48cbebf87b13af2998e06d6a7017dd44d3ba43d90e9d0e031fac7b3cab01da62e1ea56ac09ea05b3ad62207bc8f1e90b26c3a35bb920e4ec95babdca3ad9f870
@@ -46,7 +46,7 @@ class Ogrinfo2Migration
46
46
  return
47
47
  end
48
48
  j = JSON.parse(RestClient.get("http://prj2epsg.org/search.json?mode=wkt&terms=#{URI.encode(wkt)}"))
49
- if !j || j['totalHits'] < 1
49
+ if !j || (j['codes'] && j['codes'].length < 1)
50
50
  @epsg = nil
51
51
  return
52
52
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ogrinfo2migration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Al Shaw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-23 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Generate Rails migrations from shapefiles
14
14
  email: almshaw@gmail.com