rd_nap_to_etrs 0.2 → 0.3

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
  SHA1:
3
- metadata.gz: 4b20fc7c9e3544fb6fc4eb81731b5dfd6039d7c5
4
- data.tar.gz: 4431fc2278679cf1acbd6ba56356c4963a60d87b
3
+ metadata.gz: 96bf54c12ccda3f3afdf3c838ee9e574a5dd03f4
4
+ data.tar.gz: dfcb1225b7f4c4b461cde010297852e573bd6de5
5
5
  SHA512:
6
- metadata.gz: 280e4bc23a15c8db37618bc1f38586b2727d3c9ea8d33d8ba661b0a92b495ecfae9467996dc333296e2243d80fdb51693f953294bc451a0731e420d644078fe0
7
- data.tar.gz: 25e3f0e8ca202cfe4db9e4874879647469204d9b59fe3beca0b30f853eabbbef9620cee0c4451a9d17aeea090f5cc80dabb64eb6c642d3ec6c5e20e70a15b154
6
+ metadata.gz: 336e650e06a6f01ed4b8f5fdd29ea386411ea93a93199e9bdcea9fb4541235745c15cf8f3d88ded49432d2b187161e167694057c3486b13c3c5d1528babc82f8
7
+ data.tar.gz: 4b982a8339f5b4d175196ecbbfc88932ac79edce197e07d4bd9c6a178985aeaccd3b4d0f35ddc0d98d31ad15a7cadcda2cdb8d8137a4e94eb3c9adba4ccc1cca
Binary file
@@ -2,6 +2,8 @@ module RdNapToEtrs
2
2
  class Batch
3
3
  def trans2008(points)
4
4
  grid_files_dir = File.expand_path('../../../ext/rd_nap_to_etrs/', __FILE__)
5
+ # Execute the c version _trans2008 in the directory where the grid files
6
+ # are located so the c functions can access them
5
7
  Dir.chdir grid_files_dir do
6
8
  _trans2008(points)
7
9
  end
@@ -0,0 +1,3 @@
1
+ module RdNapToEtrs
2
+ VERSION = "0.3"
3
+ end
@@ -3,13 +3,7 @@
3
3
  #http://java.ociweb.com/mark/NFJS/RubyCExtensions.pdf
4
4
  #http://www.angelfire.com/electronic2/issac/rb_cpp_ext_tut.txt
5
5
  #
6
- #Now tested in the fpi-info project inside the lib/rd_nap_to_etrs direcory with:
7
- # ruby -Ilib -Iext bin/rd_nap_to_etrs 117380.1200 575040.3400
6
+ require 'rd_nap_to_etrs/version'
8
7
  require 'rd_nap_to_etrs/point'
9
8
  require 'rd_nap_to_etrs/batch'
10
9
  require "rd_nap_to_etrs/trans2008"
11
- require 'pry'
12
- batch = RdNapToEtrs::Batch.new
13
- point = RdNapToEtrs::Point.new(x: 117380.1200, y: 575040.3400)
14
- # batch.trans2008 [point]
15
- #binding.pry
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rd_nap_to_etrs
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin ter Kuile
@@ -39,6 +39,7 @@ files:
39
39
  - lib/rd_nap_to_etrs.rb
40
40
  - lib/rd_nap_to_etrs/batch.rb
41
41
  - lib/rd_nap_to_etrs/point.rb
42
+ - lib/rd_nap_to_etrs/version.rb
42
43
  homepage: http://github.com/bterkuile/rd_nap_to_etrs
43
44
  licenses: []
44
45
  metadata: {}