rd_nap_to_etrs 0.2 → 0.3
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 +4 -4
- data/ext/rd_nap_to_etrs/trans2008.bundle +0 -0
- data/lib/rd_nap_to_etrs/batch.rb +2 -0
- data/lib/rd_nap_to_etrs/version.rb +3 -0
- data/lib/rd_nap_to_etrs.rb +1 -7
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96bf54c12ccda3f3afdf3c838ee9e574a5dd03f4
|
4
|
+
data.tar.gz: dfcb1225b7f4c4b461cde010297852e573bd6de5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 336e650e06a6f01ed4b8f5fdd29ea386411ea93a93199e9bdcea9fb4541235745c15cf8f3d88ded49432d2b187161e167694057c3486b13c3c5d1528babc82f8
|
7
|
+
data.tar.gz: 4b982a8339f5b4d175196ecbbfc88932ac79edce197e07d4bd9c6a178985aeaccd3b4d0f35ddc0d98d31ad15a7cadcda2cdb8d8137a4e94eb3c9adba4ccc1cca
|
Binary file
|
data/lib/rd_nap_to_etrs/batch.rb
CHANGED
@@ -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
|
data/lib/rd_nap_to_etrs.rb
CHANGED
@@ -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
|
-
|
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.
|
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: {}
|