rgeo-proj4 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62f84fd831d1035bdd65d52dcfdcf03c46ee0dc99c3ca74ce3e2051faa53c66a
4
- data.tar.gz: cd095e159586c6e57ae4e8f2eb0c5f84719adf6c7bf521c6b86b34e78ae7b824
3
+ metadata.gz: 3e899f9ec9d4cb7036400cb716e4d414c87adf5b1b20fbcf081666d869af48ad
4
+ data.tar.gz: 423a52b4b72050a519b8df4c63f01058b608c9345cb0abc5e1bf2a33729c381b
5
5
  SHA512:
6
- metadata.gz: 8c982a9cda985160dbc50d62ca5d5798da685d98a63be3df1fb9c4687e7bc42ab5e651e6245e55757d948f4717496b2c178b881e2072292b19ca9530b7db1663
7
- data.tar.gz: 4d30068d4ddaaed6372e42cce1fdcba32be62e8dd8bbe8891556df03f7a6e821cbf0481e4f580eaaaa4efaf1fa7ed0c64da251062b8873673bf69b7d7e6f07dc
6
+ metadata.gz: 59fda580463933b22228f0748d7ddbb38deefe04c2b01ea2979d1a2f15a2d565bfad6b3056f0f4ab9a27fa147df69e8eae9dec8dd1cd075c48c108bcce96858b
7
+ data.tar.gz: 1cd3d716d7c9ba6c832d3703abb2c6ddefa87985e75034ed38458bd447f6afd32e02a72547ff2014db52db0bd0d3c3709c776e97698dc0e0a792eb33168b0314
@@ -39,6 +39,11 @@ RGEO_BEGIN_C
39
39
 
40
40
  #ifdef RGEO_PROJ4_SUPPORTED
41
41
 
42
+ #if PROJ_VERSION_MAJOR == 6 && PROJ_VERSION_MINOR < 3
43
+ #define WKT_TYPE PJ_WKT2_2018
44
+ #else
45
+ #define WKT_TYPE PJ_WKT2_2019
46
+ #endif
42
47
 
43
48
  typedef struct {
44
49
  PJ *pj;
@@ -234,7 +239,7 @@ static VALUE method_proj4_wkt_str(VALUE self)
234
239
  pj = data->pj;
235
240
  if (pj) {
236
241
  const char *const options[] = {"MULTILINE=NO", NULL};
237
- str = proj_as_wkt(PJ_DEFAULT_CTX, pj, PJ_WKT2_2019, options);
242
+ str = proj_as_wkt(PJ_DEFAULT_CTX, pj, WKT_TYPE, options);
238
243
  if(str){
239
244
  result = rb_str_new2(str);
240
245
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RGeo
4
4
  module Proj4
5
- VERSION = "3.0.0"
5
+ VERSION = "3.0.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgeo-proj4
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tee Parham, Daniel Azuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-28 00:00:00.000000000 Z
11
+ date: 2021-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rgeo