cb-ffi-proj4 0.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.
- data/MIT-LICENSE +22 -0
- data/Rakefile +41 -0
- data/VERSION +1 -0
- data/data/GL27 +22 -0
- data/data/MD +0 -0
- data/data/TN +0 -0
- data/data/WI +0 -0
- data/data/WO +0 -0
- data/data/conus +0 -0
- data/data/epsg +5443 -0
- data/data/epsg-deprecated +2 -0
- data/data/esri +5937 -0
- data/data/esri.extra +948 -0
- data/data/hawaii +0 -0
- data/data/nad.lst +142 -0
- data/data/nad27 +809 -0
- data/data/nad83 +744 -0
- data/data/ntv1_can.dat +0 -0
- data/data/null +0 -0
- data/data/other.extra +49 -0
- data/data/proj_def.dat +17 -0
- data/data/prvi +0 -0
- data/data/stgeorge +0 -0
- data/data/stlrnc +0 -0
- data/data/stpaul +0 -0
- data/data/world +212 -0
- data/lib/ffi-proj4/point.rb +5 -0
- data/lib/ffi-proj4/projection.rb +189 -0
- data/lib/ffi-proj4/projxy.rb +43 -0
- data/lib/ffi-proj4/tools.rb +27 -0
- data/lib/ffi-proj4.rb +152 -0
- data/test/projection_tests.rb +119 -0
- data/test/test_helper.rb +29 -0
- data/test/transformation_tests.rb +90 -0
- metadata +100 -0
data/MIT-LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2011 J Smith <dark.panda@gmail.com>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
|
4
|
+
obtaining a copy of this software and associated documentation
|
|
5
|
+
files (the "Software"), to deal in the Software without
|
|
6
|
+
restriction, including without limitation the rights to use,
|
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the
|
|
9
|
+
Software is furnished to do so, subject to the following
|
|
10
|
+
conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# -*- ruby -*-
|
|
3
|
+
|
|
4
|
+
require 'rubygems'
|
|
5
|
+
require 'rake/gempackagetask'
|
|
6
|
+
require 'rake/testtask'
|
|
7
|
+
require 'rake/rdoctask'
|
|
8
|
+
|
|
9
|
+
$:.push 'lib'
|
|
10
|
+
|
|
11
|
+
version = File.read('VERSION') rescue ''
|
|
12
|
+
|
|
13
|
+
begin
|
|
14
|
+
require 'jeweler'
|
|
15
|
+
Jeweler::Tasks.new do |gem|
|
|
16
|
+
gem.name = "cb-ffi-proj4"
|
|
17
|
+
gem.summary = "An ffi wrapper for the PROJ.4 Cartographic Projections library."
|
|
18
|
+
gem.description = gem.summary
|
|
19
|
+
gem.email = "dark.panda@gmail.com"
|
|
20
|
+
gem.homepage = "http://github.com/dark-panda/ffi-proj4"
|
|
21
|
+
gem.authors = [ "J Smith" ]
|
|
22
|
+
end
|
|
23
|
+
Jeweler::GemcutterTasks.new
|
|
24
|
+
rescue LoadError
|
|
25
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
desc 'Test GEOS interface'
|
|
29
|
+
Rake::TestTask.new(:test) do |t|
|
|
30
|
+
t.pattern = 'test/**/*_tests.rb'
|
|
31
|
+
t.verbose = !!ENV['VERBOSE_TESTS']
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
desc 'Build docs'
|
|
35
|
+
Rake::RDocTask.new do |t|
|
|
36
|
+
require 'rdoc/rdoc'
|
|
37
|
+
t.title ="ffi-proj4 #{version}"
|
|
38
|
+
t.main = 'README.rdoc'
|
|
39
|
+
t.rdoc_dir = 'doc'
|
|
40
|
+
t.rdoc_files.include('README.rdoc', 'MIT-LICENSE', 'lib/**/*.rb')
|
|
41
|
+
end
|
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0.3
|
data/data/GL27
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# SCCSID @(#)GL27 1.1 93/08/25 GIE REL
|
|
2
|
+
# Great Lakes Grids
|
|
3
|
+
<erie-etal> # Lake Erie, Ontario and St. Lawrence River.
|
|
4
|
+
proj=omerc ellps=clrk66 k_0=0.9999
|
|
5
|
+
lonc=78d00'W lat_0=44d00'N alpha=55d40'
|
|
6
|
+
x_0=-3950000 y_0=-3430000
|
|
7
|
+
no_defs <>
|
|
8
|
+
<huron> # Lake Huron
|
|
9
|
+
proj=omerc ellps=clrk66 k_0=0.9999
|
|
10
|
+
lonc=82d00'W lat_0=43d00'N alpha=350d37'
|
|
11
|
+
x_0=1200000 y_0=-3500000
|
|
12
|
+
no_defs <>
|
|
13
|
+
<michigan> # Lake Michigan
|
|
14
|
+
proj=omerc ellps=clrk66 k_0=0.9999
|
|
15
|
+
lonc=87d00'W lat_0=44d00'N alpha=15d00'
|
|
16
|
+
x_0=-1000000 y_0=-4300000
|
|
17
|
+
no_defs <>
|
|
18
|
+
<superior> # Lake Superior, Lake of the Woods
|
|
19
|
+
proj=omerc ellps=clrk66 k_0=0.9999
|
|
20
|
+
lonc=88d50'0.256"W lat_0=47d12'21.554"N alpha=285d41'42.593"
|
|
21
|
+
x_0=9000000 y_0=-1600000
|
|
22
|
+
no_defs <>
|
data/data/MD
ADDED
|
Binary file
|
data/data/TN
ADDED
|
Binary file
|
data/data/WI
ADDED
|
Binary file
|
data/data/WO
ADDED
|
Binary file
|
data/data/conus
ADDED
|
Binary file
|