rgeo 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. data/History.rdoc +22 -0
  2. data/README.rdoc +124 -0
  3. data/Version +1 -0
  4. data/ext/geos_c_impl/extconf.rb +72 -0
  5. data/ext/geos_c_impl/factory.c +468 -0
  6. data/ext/geos_c_impl/factory.h +217 -0
  7. data/ext/geos_c_impl/geometry.c +644 -0
  8. data/ext/geos_c_impl/geometry.h +65 -0
  9. data/ext/geos_c_impl/geometry_collection.c +580 -0
  10. data/ext/geos_c_impl/geometry_collection.h +79 -0
  11. data/ext/geos_c_impl/globals.h +58 -0
  12. data/ext/geos_c_impl/line_string.c +468 -0
  13. data/ext/geos_c_impl/line_string.h +74 -0
  14. data/ext/geos_c_impl/main.c +65 -0
  15. data/ext/geos_c_impl/point.c +201 -0
  16. data/ext/geos_c_impl/point.h +77 -0
  17. data/ext/geos_c_impl/polygon.c +259 -0
  18. data/ext/geos_c_impl/polygon.h +76 -0
  19. data/ext/geos_c_impl/preface.h +42 -0
  20. data/lib/rgeo.rb +68 -0
  21. data/lib/rgeo/errors.rb +59 -0
  22. data/lib/rgeo/features.rb +89 -0
  23. data/lib/rgeo/features/curve.rb +155 -0
  24. data/lib/rgeo/features/factory.rb +191 -0
  25. data/lib/rgeo/features/geometry.rb +560 -0
  26. data/lib/rgeo/features/geometry_collection.rb +118 -0
  27. data/lib/rgeo/features/line.rb +65 -0
  28. data/lib/rgeo/features/line_string.rb +101 -0
  29. data/lib/rgeo/features/linear_ring.rb +65 -0
  30. data/lib/rgeo/features/multi_curve.rb +112 -0
  31. data/lib/rgeo/features/multi_line_string.rb +65 -0
  32. data/lib/rgeo/features/multi_point.rb +72 -0
  33. data/lib/rgeo/features/multi_polygon.rb +96 -0
  34. data/lib/rgeo/features/multi_surface.rb +115 -0
  35. data/lib/rgeo/features/point.rb +97 -0
  36. data/lib/rgeo/features/polygon.rb +141 -0
  37. data/lib/rgeo/features/surface.rb +121 -0
  38. data/lib/rgeo/geo_json.rb +58 -0
  39. data/lib/rgeo/geo_json/coder.rb +305 -0
  40. data/lib/rgeo/geo_json/entities.rb +284 -0
  41. data/lib/rgeo/geo_json/interface.rb +95 -0
  42. data/lib/rgeo/geography.rb +75 -0
  43. data/lib/rgeo/geography/common/geometry_collection_methods.rb +206 -0
  44. data/lib/rgeo/geography/common/geometry_methods.rb +92 -0
  45. data/lib/rgeo/geography/common/helper.rb +102 -0
  46. data/lib/rgeo/geography/common/line_string_methods.rb +187 -0
  47. data/lib/rgeo/geography/common/point_methods.rb +149 -0
  48. data/lib/rgeo/geography/common/polygon_methods.rb +122 -0
  49. data/lib/rgeo/geography/factories.rb +136 -0
  50. data/lib/rgeo/geography/factory.rb +246 -0
  51. data/lib/rgeo/geography/projected_window.rb +467 -0
  52. data/lib/rgeo/geography/simple_mercator/feature_classes.rb +320 -0
  53. data/lib/rgeo/geography/simple_mercator/feature_methods.rb +291 -0
  54. data/lib/rgeo/geography/simple_mercator/projector.rb +116 -0
  55. data/lib/rgeo/geography/simple_spherical/calculations.rb +70 -0
  56. data/lib/rgeo/geography/simple_spherical/geometry_collection_impl.rb +66 -0
  57. data/lib/rgeo/geography/simple_spherical/geometry_methods.rb +59 -0
  58. data/lib/rgeo/geography/simple_spherical/line_string_impl.rb +104 -0
  59. data/lib/rgeo/geography/simple_spherical/multi_line_string_impl.rb +67 -0
  60. data/lib/rgeo/geography/simple_spherical/multi_point_impl.rb +67 -0
  61. data/lib/rgeo/geography/simple_spherical/multi_polygon_impl.rb +67 -0
  62. data/lib/rgeo/geography/simple_spherical/point_impl.rb +85 -0
  63. data/lib/rgeo/geography/simple_spherical/polygon_impl.rb +66 -0
  64. data/lib/rgeo/geos.rb +72 -0
  65. data/lib/rgeo/geos/factory.rb +260 -0
  66. data/lib/rgeo/geos/impl_additions.rb +57 -0
  67. data/lib/rgeo/geos/interface.rb +74 -0
  68. data/lib/rgeo/version.rb +52 -0
  69. data/tests/geos/tc_factory.rb +91 -0
  70. data/tests/geos/tc_geometry_collection.rb +226 -0
  71. data/tests/geos/tc_line_string.rb +310 -0
  72. data/tests/geos/tc_misc.rb +72 -0
  73. data/tests/geos/tc_multi_line_string.rb +211 -0
  74. data/tests/geos/tc_multi_point.rb +202 -0
  75. data/tests/geos/tc_multi_polygon.rb +210 -0
  76. data/tests/geos/tc_point.rb +305 -0
  77. data/tests/geos/tc_polygon.rb +240 -0
  78. data/tests/simple_mercator/tc_point.rb +303 -0
  79. data/tests/simple_mercator/tc_window.rb +219 -0
  80. data/tests/tc_geojson.rb +230 -0
  81. data/tests/tc_oneoff.rb +61 -0
  82. metadata +162 -0
metadata ADDED
@@ -0,0 +1,162 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rgeo
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 10
10
+ version: 0.1.10
11
+ platform: ruby
12
+ authors:
13
+ - Daniel Azuma
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-10-19 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: RGeo is a spatial data library for Ruby. It provides an implementation of the Open Geospatial Consortium's Simple Features Specification, used by most standard spatial/geographic data storage systems such as PostGIS. It also provides a suite of useful tools for writing location-based applications using Ruby-based frameworks such as Ruby On Rails.
23
+ email: dazuma@gmail.com
24
+ executables: []
25
+
26
+ extensions:
27
+ - ext/geos_c_impl/extconf.rb
28
+ extra_rdoc_files:
29
+ - History.rdoc
30
+ - README.rdoc
31
+ files:
32
+ - lib/rgeo/errors.rb
33
+ - lib/rgeo/features/curve.rb
34
+ - lib/rgeo/features/factory.rb
35
+ - lib/rgeo/features/geometry.rb
36
+ - lib/rgeo/features/geometry_collection.rb
37
+ - lib/rgeo/features/line.rb
38
+ - lib/rgeo/features/line_string.rb
39
+ - lib/rgeo/features/linear_ring.rb
40
+ - lib/rgeo/features/multi_curve.rb
41
+ - lib/rgeo/features/multi_line_string.rb
42
+ - lib/rgeo/features/multi_point.rb
43
+ - lib/rgeo/features/multi_polygon.rb
44
+ - lib/rgeo/features/multi_surface.rb
45
+ - lib/rgeo/features/point.rb
46
+ - lib/rgeo/features/polygon.rb
47
+ - lib/rgeo/features/surface.rb
48
+ - lib/rgeo/features.rb
49
+ - lib/rgeo/geo_json/coder.rb
50
+ - lib/rgeo/geo_json/entities.rb
51
+ - lib/rgeo/geo_json/interface.rb
52
+ - lib/rgeo/geo_json.rb
53
+ - lib/rgeo/geography/common/geometry_collection_methods.rb
54
+ - lib/rgeo/geography/common/geometry_methods.rb
55
+ - lib/rgeo/geography/common/helper.rb
56
+ - lib/rgeo/geography/common/line_string_methods.rb
57
+ - lib/rgeo/geography/common/point_methods.rb
58
+ - lib/rgeo/geography/common/polygon_methods.rb
59
+ - lib/rgeo/geography/factories.rb
60
+ - lib/rgeo/geography/factory.rb
61
+ - lib/rgeo/geography/projected_window.rb
62
+ - lib/rgeo/geography/simple_mercator/feature_classes.rb
63
+ - lib/rgeo/geography/simple_mercator/feature_methods.rb
64
+ - lib/rgeo/geography/simple_mercator/projector.rb
65
+ - lib/rgeo/geography/simple_spherical/calculations.rb
66
+ - lib/rgeo/geography/simple_spherical/geometry_collection_impl.rb
67
+ - lib/rgeo/geography/simple_spherical/geometry_methods.rb
68
+ - lib/rgeo/geography/simple_spherical/line_string_impl.rb
69
+ - lib/rgeo/geography/simple_spherical/multi_line_string_impl.rb
70
+ - lib/rgeo/geography/simple_spherical/multi_point_impl.rb
71
+ - lib/rgeo/geography/simple_spherical/multi_polygon_impl.rb
72
+ - lib/rgeo/geography/simple_spherical/point_impl.rb
73
+ - lib/rgeo/geography/simple_spherical/polygon_impl.rb
74
+ - lib/rgeo/geography.rb
75
+ - lib/rgeo/geos/factory.rb
76
+ - lib/rgeo/geos/impl_additions.rb
77
+ - lib/rgeo/geos/interface.rb
78
+ - lib/rgeo/geos.rb
79
+ - lib/rgeo/version.rb
80
+ - lib/rgeo.rb
81
+ - History.rdoc
82
+ - README.rdoc
83
+ - tests/geos/tc_factory.rb
84
+ - tests/geos/tc_geometry_collection.rb
85
+ - tests/geos/tc_line_string.rb
86
+ - tests/geos/tc_misc.rb
87
+ - tests/geos/tc_multi_line_string.rb
88
+ - tests/geos/tc_multi_point.rb
89
+ - tests/geos/tc_multi_polygon.rb
90
+ - tests/geos/tc_point.rb
91
+ - tests/geos/tc_polygon.rb
92
+ - tests/simple_mercator/tc_point.rb
93
+ - tests/simple_mercator/tc_window.rb
94
+ - tests/tc_geojson.rb
95
+ - tests/tc_oneoff.rb
96
+ - ext/geos_c_impl/extconf.rb
97
+ - ext/geos_c_impl/factory.c
98
+ - ext/geos_c_impl/geometry.c
99
+ - ext/geos_c_impl/geometry_collection.c
100
+ - ext/geos_c_impl/line_string.c
101
+ - ext/geos_c_impl/main.c
102
+ - ext/geos_c_impl/point.c
103
+ - ext/geos_c_impl/polygon.c
104
+ - ext/geos_c_impl/factory.h
105
+ - ext/geos_c_impl/geometry.h
106
+ - ext/geos_c_impl/geometry_collection.h
107
+ - ext/geos_c_impl/globals.h
108
+ - ext/geos_c_impl/line_string.h
109
+ - ext/geos_c_impl/point.h
110
+ - ext/geos_c_impl/polygon.h
111
+ - ext/geos_c_impl/preface.h
112
+ - Version
113
+ has_rdoc: true
114
+ homepage: http://virtuoso.rubyforge.org/rgeo
115
+ licenses: []
116
+
117
+ post_install_message:
118
+ rdoc_options: []
119
+
120
+ require_paths:
121
+ - lib
122
+ required_ruby_version: !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ hash: 57
128
+ segments:
129
+ - 1
130
+ - 8
131
+ - 7
132
+ version: 1.8.7
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ hash: 3
139
+ segments:
140
+ - 0
141
+ version: "0"
142
+ requirements: []
143
+
144
+ rubyforge_project: virtuoso
145
+ rubygems_version: 1.3.7
146
+ signing_key:
147
+ specification_version: 3
148
+ summary: Spatial data library for Ruby.
149
+ test_files:
150
+ - tests/geos/tc_factory.rb
151
+ - tests/geos/tc_geometry_collection.rb
152
+ - tests/geos/tc_line_string.rb
153
+ - tests/geos/tc_misc.rb
154
+ - tests/geos/tc_multi_line_string.rb
155
+ - tests/geos/tc_multi_point.rb
156
+ - tests/geos/tc_multi_polygon.rb
157
+ - tests/geos/tc_point.rb
158
+ - tests/geos/tc_polygon.rb
159
+ - tests/simple_mercator/tc_point.rb
160
+ - tests/simple_mercator/tc_window.rb
161
+ - tests/tc_geojson.rb
162
+ - tests/tc_oneoff.rb