rgeo 0.1.18 → 0.1.19

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.
Files changed (50) hide show
  1. data/History.rdoc +11 -0
  2. data/README.rdoc +17 -30
  3. data/Version +1 -1
  4. data/ext/geos_c_impl/factory.c +4 -9
  5. data/ext/geos_c_impl/factory.h +8 -8
  6. data/ext/geos_c_impl/geometry.c +19 -2
  7. data/ext/geos_c_impl/geometry_collection.c +1 -1
  8. data/ext/geos_c_impl/polygon.c +2 -2
  9. data/lib/active_record/connection_adapters/mysql2spatial_adapter.rb +8 -6
  10. data/lib/active_record/connection_adapters/mysqlspatial_adapter.rb +8 -6
  11. data/lib/rgeo/active_record/arel_modifications.rb +4 -0
  12. data/lib/rgeo/active_record/base_modifications.rb +37 -2
  13. data/lib/rgeo/active_record/mysql_common.rb +2 -2
  14. data/lib/rgeo/cartesian.rb +6 -22
  15. data/lib/rgeo/cartesian/analysis.rb +3 -0
  16. data/lib/rgeo/cartesian/bounding_box.rb +337 -0
  17. data/lib/rgeo/cartesian/feature_classes.rb +11 -11
  18. data/lib/rgeo/cartesian/feature_methods.rb +5 -0
  19. data/lib/rgeo/cartesian/interface.rb +21 -4
  20. data/lib/rgeo/features/geometry.rb +0 -15
  21. data/lib/rgeo/geography/interface.rb +33 -6
  22. data/lib/rgeo/geography/simple_mercator/feature_classes.rb +30 -17
  23. data/lib/rgeo/geography/simple_mercator/feature_methods.rb +1 -1
  24. data/lib/rgeo/geography/simple_spherical/feature_classes.rb +38 -11
  25. data/lib/rgeo/geos.rb +2 -0
  26. data/lib/rgeo/geos/factory.rb +37 -21
  27. data/lib/rgeo/geos/impl_additions.rb +20 -0
  28. data/lib/rgeo/geos/interface.rb +17 -8
  29. data/lib/rgeo/geos/zm_factory.rb +241 -0
  30. data/lib/rgeo/geos/zm_impl.rb +432 -0
  31. data/lib/rgeo/impl_helpers/basic_geometry_collection_methods.rb +39 -0
  32. data/lib/rgeo/impl_helpers/basic_geometry_methods.rb +0 -5
  33. data/lib/rgeo/impl_helpers/basic_line_string_methods.rb +10 -1
  34. data/lib/rgeo/impl_helpers/basic_point_methods.rb +1 -13
  35. data/lib/rgeo/impl_helpers/basic_polygon_methods.rb +10 -0
  36. data/tests/common/geometry_collection_tests.rb +16 -0
  37. data/tests/common/point_tests.rb +27 -1
  38. data/tests/geos/tc_point.rb +2 -0
  39. data/tests/geos/tc_zmfactory.rb +85 -0
  40. data/tests/simple_cartesian/tc_geometry_collection.rb +1 -0
  41. data/tests/simple_cartesian/tc_point.rb +2 -1
  42. data/tests/simple_mercator/tc_point.rb +2 -0
  43. data/tests/simple_spherical/tc_geometry_collection.rb +2 -0
  44. data/tests/simple_spherical/tc_point.rb +2 -1
  45. data/tests/tc_oneoff.rb +0 -1
  46. data/tests/wkrep/tc_wkb_generator.rb +4 -4
  47. data/tests/wkrep/tc_wkb_parser.rb +2 -2
  48. data/tests/wkrep/tc_wkt_generator.rb +4 -4
  49. data/tests/wkrep/tc_wkt_parser.rb +5 -5
  50. metadata +23 -3
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 18
9
- version: 0.1.18
8
+ - 19
9
+ version: 0.1.19
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Azuma
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-22 00:00:00 -08:00
17
+ date: 2010-11-23 00:00:00 -08:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -92,6 +92,21 @@ dependencies:
92
92
  version: 1.4.6
93
93
  type: :development
94
94
  version_requirements: *id005
95
+ - !ruby/object:Gem::Dependency
96
+ name: dbf
97
+ prerelease: false
98
+ requirement: &id006 !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ segments:
104
+ - 1
105
+ - 5
106
+ - 2
107
+ version: 1.5.2
108
+ type: :development
109
+ version_requirements: *id006
95
110
  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.
96
111
  email: dazuma@gmail.com
97
112
  executables: []
@@ -110,6 +125,7 @@ files:
110
125
  - lib/rgeo/active_record/mysql_common.rb
111
126
  - lib/rgeo/all.rb
112
127
  - lib/rgeo/cartesian/analysis.rb
128
+ - lib/rgeo/cartesian/bounding_box.rb
113
129
  - lib/rgeo/cartesian/calculations.rb
114
130
  - lib/rgeo/cartesian/factory.rb
115
131
  - lib/rgeo/cartesian/feature_classes.rb
@@ -155,6 +171,8 @@ files:
155
171
  - lib/rgeo/geos/factory.rb
156
172
  - lib/rgeo/geos/impl_additions.rb
157
173
  - lib/rgeo/geos/interface.rb
174
+ - lib/rgeo/geos/zm_factory.rb
175
+ - lib/rgeo/geos/zm_impl.rb
158
176
  - lib/rgeo/geos.rb
159
177
  - lib/rgeo/impl_helpers/basic_geometry_collection_methods.rb
160
178
  - lib/rgeo/impl_helpers/basic_geometry_methods.rb
@@ -191,6 +209,7 @@ files:
191
209
  - tests/geos/tc_multi_polygon.rb
192
210
  - tests/geos/tc_point.rb
193
211
  - tests/geos/tc_polygon.rb
212
+ - tests/geos/tc_zmfactory.rb
194
213
  - tests/shapefile/tc_shapelib_tests.rb
195
214
  - tests/simple_cartesian/tc_calculations.rb
196
215
  - tests/simple_cartesian/tc_geometry_collection.rb
@@ -317,6 +336,7 @@ test_files:
317
336
  - tests/geos/tc_multi_polygon.rb
318
337
  - tests/geos/tc_point.rb
319
338
  - tests/geos/tc_polygon.rb
339
+ - tests/geos/tc_zmfactory.rb
320
340
  - tests/shapefile/tc_shapelib_tests.rb
321
341
  - tests/simple_cartesian/tc_calculations.rb
322
342
  - tests/simple_cartesian/tc_geometry_collection.rb