rgeo 0.1.22 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. data/History.rdoc +31 -0
  2. data/README.rdoc +53 -59
  3. data/Spatial_Programming_With_RGeo.rdoc +120 -67
  4. data/Version +1 -1
  5. data/ext/proj4_c_impl/extconf.rb +1 -1
  6. data/lib/rgeo.rb +80 -87
  7. data/lib/rgeo/cartesian.rb +0 -10
  8. data/lib/rgeo/coord_sys.rb +0 -7
  9. data/lib/rgeo/coord_sys/proj4.rb +2 -2
  10. data/lib/rgeo/error.rb +2 -6
  11. data/lib/rgeo/feature.rb +0 -7
  12. data/lib/rgeo/feature/curve.rb +5 -5
  13. data/lib/rgeo/feature/factory.rb +45 -5
  14. data/lib/rgeo/feature/factory_generator.rb +2 -4
  15. data/lib/rgeo/feature/geometry.rb +97 -27
  16. data/lib/rgeo/feature/geometry_collection.rb +3 -3
  17. data/lib/rgeo/feature/line_string.rb +3 -3
  18. data/lib/rgeo/feature/multi_curve.rb +2 -2
  19. data/lib/rgeo/feature/multi_surface.rb +3 -3
  20. data/lib/rgeo/feature/point.rb +6 -6
  21. data/lib/rgeo/feature/polygon.rb +4 -4
  22. data/lib/rgeo/feature/surface.rb +3 -3
  23. data/lib/rgeo/geographic.rb +0 -11
  24. data/lib/rgeo/geographic/factory.rb +5 -2
  25. data/lib/rgeo/geographic/interface.rb +1 -1
  26. data/lib/rgeo/geos.rb +0 -7
  27. data/lib/rgeo/geos/factory.rb +1 -1
  28. data/lib/rgeo/impl_helper.rb +0 -7
  29. data/lib/rgeo/wkrep.rb +0 -7
  30. data/lib/rgeo/wkrep/wkb_parser.rb +2 -2
  31. data/test/tc_oneoff.rb +0 -1
  32. metadata +7 -155
  33. data/lib/active_record/connection_adapters/mysql2spatial_adapter.rb +0 -124
  34. data/lib/active_record/connection_adapters/mysqlspatial_adapter.rb +0 -136
  35. data/lib/active_record/connection_adapters/postgis_adapter.rb +0 -426
  36. data/lib/active_record/connection_adapters/spatialite_adapter.rb +0 -488
  37. data/lib/rgeo/active_record/arel_modifications.rb +0 -78
  38. data/lib/rgeo/active_record/base_modifications.rb +0 -124
  39. data/lib/rgeo/active_record/common.rb +0 -166
  40. data/lib/rgeo/active_record/mysql_common.rb +0 -150
  41. data/lib/rgeo/all.rb +0 -49
  42. data/lib/rgeo/geo_json.rb +0 -60
  43. data/lib/rgeo/geo_json/coder.rb +0 -401
  44. data/lib/rgeo/geo_json/entities.rb +0 -285
  45. data/lib/rgeo/geo_json/interface.rb +0 -129
  46. data/lib/rgeo/shapefile.rb +0 -60
  47. data/lib/rgeo/shapefile/reader.rb +0 -898
  48. data/test/active_record/common_setup_methods.rb +0 -129
  49. data/test/active_record/readme.txt +0 -43
  50. data/test/active_record/tc_mysqlspatial.rb +0 -170
  51. data/test/active_record/tc_postgis.rb +0 -282
  52. data/test/active_record/tc_spatialite.rb +0 -198
  53. data/test/shapefile/shapelib_testcases/readme.txt +0 -11
  54. data/test/shapefile/shapelib_testcases/test.dbf +0 -0
  55. data/test/shapefile/shapelib_testcases/test.shp +0 -0
  56. data/test/shapefile/shapelib_testcases/test.shx +0 -0
  57. data/test/shapefile/shapelib_testcases/test0.shp +0 -0
  58. data/test/shapefile/shapelib_testcases/test0.shx +0 -0
  59. data/test/shapefile/shapelib_testcases/test1.shp +0 -0
  60. data/test/shapefile/shapelib_testcases/test1.shx +0 -0
  61. data/test/shapefile/shapelib_testcases/test10.shp +0 -0
  62. data/test/shapefile/shapelib_testcases/test10.shx +0 -0
  63. data/test/shapefile/shapelib_testcases/test11.shp +0 -0
  64. data/test/shapefile/shapelib_testcases/test11.shx +0 -0
  65. data/test/shapefile/shapelib_testcases/test12.shp +0 -0
  66. data/test/shapefile/shapelib_testcases/test12.shx +0 -0
  67. data/test/shapefile/shapelib_testcases/test13.shp +0 -0
  68. data/test/shapefile/shapelib_testcases/test13.shx +0 -0
  69. data/test/shapefile/shapelib_testcases/test2.shp +0 -0
  70. data/test/shapefile/shapelib_testcases/test2.shx +0 -0
  71. data/test/shapefile/shapelib_testcases/test3.shp +0 -0
  72. data/test/shapefile/shapelib_testcases/test3.shx +0 -0
  73. data/test/shapefile/shapelib_testcases/test4.shp +0 -0
  74. data/test/shapefile/shapelib_testcases/test4.shx +0 -0
  75. data/test/shapefile/shapelib_testcases/test5.shp +0 -0
  76. data/test/shapefile/shapelib_testcases/test5.shx +0 -0
  77. data/test/shapefile/shapelib_testcases/test6.shp +0 -0
  78. data/test/shapefile/shapelib_testcases/test6.shx +0 -0
  79. data/test/shapefile/shapelib_testcases/test7.shp +0 -0
  80. data/test/shapefile/shapelib_testcases/test7.shx +0 -0
  81. data/test/shapefile/shapelib_testcases/test8.shp +0 -0
  82. data/test/shapefile/shapelib_testcases/test8.shx +0 -0
  83. data/test/shapefile/shapelib_testcases/test9.shp +0 -0
  84. data/test/shapefile/shapelib_testcases/test9.shx +0 -0
  85. data/test/shapefile/tc_shapelib_tests.rb +0 -527
  86. data/test/tc_geojson.rb +0 -279
@@ -90,11 +90,9 @@ module RGeo
90
90
  # The SRID for the factory and objects it creates.
91
91
  # Default is usually 0.
92
92
  # <tt>:has_z_coordinate</tt>::
93
- # Support the <tt>z_coordinate</tt> capability.
94
- # Default is usually false.
93
+ # Support Z coordinates. Default is usually false.
95
94
  # <tt>:has_m_coordinate</tt>::
96
- # Support the <tt>m_coordinate</tt> capability.
97
- # Default is usually false.
95
+ # Support M coordinates. Default is usually false.
98
96
 
99
97
  def call(config_={})
100
98
  nil
@@ -111,7 +111,7 @@ module RGeo
111
111
  # operations on them.)
112
112
 
113
113
  def factory
114
- raise Error::UnsupportedCapability, "Method Geometry#factory not defined."
114
+ raise Error::UnsupportedOperation, "Method Geometry#factory not defined."
115
115
  end
116
116
 
117
117
 
@@ -119,7 +119,7 @@ module RGeo
119
119
  # to the given object.
120
120
 
121
121
  def eql?(another_geometry_)
122
- raise Error::UnsupportedCapability, "Method Geometry#eql? not defined."
122
+ raise Error::UnsupportedOperation, "Method Geometry#eql? not defined."
123
123
  end
124
124
 
125
125
 
@@ -135,7 +135,7 @@ module RGeo
135
135
  # point geometries, 1 for curves, and 2 for surfaces.
136
136
 
137
137
  def dimension
138
- raise Error::UnsupportedCapability, "Method Geometry#dimension not defined."
138
+ raise Error::UnsupportedOperation, "Method Geometry#dimension not defined."
139
139
  end
140
140
 
141
141
 
@@ -153,7 +153,7 @@ module RGeo
153
153
  # call the +type_name+ method of the returned module.
154
154
 
155
155
  def geometry_type
156
- raise Error::UnsupportedCapability, "Method Geometry#geometry_type not defined."
156
+ raise Error::UnsupportedOperation, "Method Geometry#geometry_type not defined."
157
157
  end
158
158
 
159
159
 
@@ -169,7 +169,7 @@ module RGeo
169
169
  # stored in either the same or some other datastore.
170
170
 
171
171
  def srid
172
- raise Error::UnsupportedCapability, "Method Geometry#srid not defined."
172
+ raise Error::UnsupportedOperation, "Method Geometry#srid not defined."
173
173
  end
174
174
 
175
175
 
@@ -184,7 +184,7 @@ module RGeo
184
184
  # Returns an object that supports the Geometry interface.
185
185
 
186
186
  def envelope
187
- raise Error::UnsupportedCapability, "Method Geometry#envelope not defined."
187
+ raise Error::UnsupportedOperation, "Method Geometry#envelope not defined."
188
188
  end
189
189
 
190
190
 
@@ -198,7 +198,7 @@ module RGeo
198
198
  # Returns an ASCII string.
199
199
 
200
200
  def as_text
201
- raise Error::UnsupportedCapability, "Method Geometry#as_text not defined."
201
+ raise Error::UnsupportedOperation, "Method Geometry#as_text not defined."
202
202
  end
203
203
 
204
204
 
@@ -212,7 +212,7 @@ module RGeo
212
212
  # Returns a binary string.
213
213
 
214
214
  def as_binary
215
- raise Error::UnsupportedCapability, "Method Geometry#as_binary not defined."
215
+ raise Error::UnsupportedOperation, "Method Geometry#as_binary not defined."
216
216
  end
217
217
 
218
218
 
@@ -228,7 +228,7 @@ module RGeo
228
228
  # specification, which stipulates an integer return value.
229
229
 
230
230
  def is_empty?
231
- raise Error::UnsupportedCapability, "Method Geometry#is_empty? not defined."
231
+ raise Error::UnsupportedOperation, "Method Geometry#is_empty? not defined."
232
232
  end
233
233
 
234
234
 
@@ -246,7 +246,7 @@ module RGeo
246
246
  # specification, which stipulates an integer return value.
247
247
 
248
248
  def is_simple?
249
- raise Error::UnsupportedCapability, "Method Geometry#is_simple? not defined."
249
+ raise Error::UnsupportedOperation, "Method Geometry#is_simple? not defined."
250
250
  end
251
251
 
252
252
 
@@ -262,7 +262,7 @@ module RGeo
262
262
  # Returns an object that supports the Geometry interface.
263
263
 
264
264
  def boundary
265
- raise Error::UnsupportedCapability, "Method Geometry#boundary not defined."
265
+ raise Error::UnsupportedOperation, "Method Geometry#boundary not defined."
266
266
  end
267
267
 
268
268
 
@@ -275,9 +275,14 @@ module RGeo
275
275
  #
276
276
  # Returns a boolean value. Note that this is different from the SFS
277
277
  # specification, which stipulates an integer return value.
278
+ #
279
+ # Although implementations are free to attempt to handle
280
+ # another_geometry values that do not share the same factory as
281
+ # this geometry, strictly speaking, the result of comparing objects
282
+ # of different factories is undefined.
278
283
 
279
284
  def equals?(another_geometry_)
280
- raise Error::UnsupportedCapability, "Method Geometry#equals? not defined."
285
+ raise Error::UnsupportedOperation, "Method Geometry#equals? not defined."
281
286
  end
282
287
 
283
288
 
@@ -290,9 +295,14 @@ module RGeo
290
295
  #
291
296
  # Returns a boolean value. Note that this is different from the SFS
292
297
  # specification, which stipulates an integer return value.
298
+ #
299
+ # Although implementations are free to attempt to handle
300
+ # another_geometry values that do not share the same factory as
301
+ # this geometry, strictly speaking, the result of comparing objects
302
+ # of different factories is undefined.
293
303
 
294
304
  def disjoint?(another_geometry_)
295
- raise Error::UnsupportedCapability, "Method Geometry#disjoint? not defined."
305
+ raise Error::UnsupportedOperation, "Method Geometry#disjoint? not defined."
296
306
  end
297
307
 
298
308
 
@@ -305,9 +315,14 @@ module RGeo
305
315
  #
306
316
  # Returns a boolean value. Note that this is different from the SFS
307
317
  # specification, which stipulates an integer return value.
318
+ #
319
+ # Although implementations are free to attempt to handle
320
+ # another_geometry values that do not share the same factory as
321
+ # this geometry, strictly speaking, the result of comparing objects
322
+ # of different factories is undefined.
308
323
 
309
324
  def intersects?(another_geometry_)
310
- raise Error::UnsupportedCapability, "Method Geometry#intersects? not defined."
325
+ raise Error::UnsupportedOperation, "Method Geometry#intersects? not defined."
311
326
  end
312
327
 
313
328
 
@@ -320,9 +335,14 @@ module RGeo
320
335
  #
321
336
  # Returns a boolean value. Note that this is different from the SFS
322
337
  # specification, which stipulates an integer return value.
338
+ #
339
+ # Although implementations are free to attempt to handle
340
+ # another_geometry values that do not share the same factory as
341
+ # this geometry, strictly speaking, the result of comparing objects
342
+ # of different factories is undefined.
323
343
 
324
344
  def touches?(another_geometry_)
325
- raise Error::UnsupportedCapability, "Method Geometry#touches? not defined."
345
+ raise Error::UnsupportedOperation, "Method Geometry#touches? not defined."
326
346
  end
327
347
 
328
348
 
@@ -335,9 +355,14 @@ module RGeo
335
355
  #
336
356
  # Returns a boolean value. Note that this is different from the SFS
337
357
  # specification, which stipulates an integer return value.
358
+ #
359
+ # Although implementations are free to attempt to handle
360
+ # another_geometry values that do not share the same factory as
361
+ # this geometry, strictly speaking, the result of comparing objects
362
+ # of different factories is undefined.
338
363
 
339
364
  def crosses?(another_geometry_)
340
- raise Error::UnsupportedCapability, "Method Geometry#crosses? not defined."
365
+ raise Error::UnsupportedOperation, "Method Geometry#crosses? not defined."
341
366
  end
342
367
 
343
368
 
@@ -350,9 +375,14 @@ module RGeo
350
375
  #
351
376
  # Returns a boolean value. Note that this is different from the SFS
352
377
  # specification, which stipulates an integer return value.
378
+ #
379
+ # Although implementations are free to attempt to handle
380
+ # another_geometry values that do not share the same factory as
381
+ # this geometry, strictly speaking, the result of comparing objects
382
+ # of different factories is undefined.
353
383
 
354
384
  def within?(another_geometry_)
355
- raise Error::UnsupportedCapability, "Method Geometry#within? not defined."
385
+ raise Error::UnsupportedOperation, "Method Geometry#within? not defined."
356
386
  end
357
387
 
358
388
 
@@ -365,9 +395,14 @@ module RGeo
365
395
  #
366
396
  # Returns a boolean value. Note that this is different from the SFS
367
397
  # specification, which stipulates an integer return value.
398
+ #
399
+ # Although implementations are free to attempt to handle
400
+ # another_geometry values that do not share the same factory as
401
+ # this geometry, strictly speaking, the result of comparing objects
402
+ # of different factories is undefined.
368
403
 
369
404
  def contains?(another_geometry_)
370
- raise Error::UnsupportedCapability, "Method Geometry#contains? not defined."
405
+ raise Error::UnsupportedOperation, "Method Geometry#contains? not defined."
371
406
  end
372
407
 
373
408
 
@@ -380,9 +415,14 @@ module RGeo
380
415
  #
381
416
  # Returns a boolean value. Note that this is different from the SFS
382
417
  # specification, which stipulates an integer return value.
418
+ #
419
+ # Although implementations are free to attempt to handle
420
+ # another_geometry values that do not share the same factory as
421
+ # this geometry, strictly speaking, the result of comparing objects
422
+ # of different factories is undefined.
383
423
 
384
424
  def overlaps?(another_geometry_)
385
- raise Error::UnsupportedCapability, "Method Geometry#overlaps? not defined."
425
+ raise Error::UnsupportedOperation, "Method Geometry#overlaps? not defined."
386
426
  end
387
427
 
388
428
 
@@ -402,9 +442,14 @@ module RGeo
402
442
  #
403
443
  # Returns a boolean value. Note that this is different from the SFS
404
444
  # specification, which stipulates an integer return value.
445
+ #
446
+ # Although implementations are free to attempt to handle
447
+ # another_geometry values that do not share the same factory as
448
+ # this geometry, strictly speaking, the result of comparing objects
449
+ # of different factories is undefined.
405
450
 
406
451
  def relate(another_geometry_, intersection_pattern_matrix_)
407
- raise Error::UnsupportedCapability, "Method Geometry#relate not defined."
452
+ raise Error::UnsupportedOperation, "Method Geometry#relate not defined."
408
453
  end
409
454
 
410
455
 
@@ -417,9 +462,14 @@ module RGeo
417
462
  # === Notes
418
463
  #
419
464
  # Returns a floating-point scalar value.
465
+ #
466
+ # Although implementations are free to attempt to handle
467
+ # another_geometry values that do not share the same factory as
468
+ # this geometry, strictly speaking, the result of measuring the
469
+ # distance between objects of different factories is undefined.
420
470
 
421
471
  def distance(another_geometry_)
422
- raise Error::UnsupportedCapability, "Method Geometry#distance not defined."
472
+ raise Error::UnsupportedOperation, "Method Geometry#distance not defined."
423
473
  end
424
474
 
425
475
 
@@ -435,7 +485,7 @@ module RGeo
435
485
  # Returns an object that supports the Geometry interface.
436
486
 
437
487
  def buffer(distance_)
438
- raise Error::UnsupportedCapability, "Method Geometry#buffer not defined."
488
+ raise Error::UnsupportedOperation, "Method Geometry#buffer not defined."
439
489
  end
440
490
 
441
491
 
@@ -449,7 +499,7 @@ module RGeo
449
499
  # Returns an object that supports the Geometry interface.
450
500
 
451
501
  def convex_hull
452
- raise Error::UnsupportedCapability, "Method Geometry#convex_hull not defined."
502
+ raise Error::UnsupportedOperation, "Method Geometry#convex_hull not defined."
453
503
  end
454
504
 
455
505
 
@@ -461,9 +511,14 @@ module RGeo
461
511
  # === Notes
462
512
  #
463
513
  # Returns an object that supports the Geometry interface.
514
+ #
515
+ # Although implementations are free to attempt to handle
516
+ # another_geometry values that do not share the same factory as
517
+ # this geometry, strictly speaking, the result of performing
518
+ # operations on objects of different factories is undefined.
464
519
 
465
520
  def intersection(another_geometry_)
466
- raise Error::UnsupportedCapability, "Method Geometry#intersection not defined."
521
+ raise Error::UnsupportedOperation, "Method Geometry#intersection not defined."
467
522
  end
468
523
 
469
524
 
@@ -475,9 +530,14 @@ module RGeo
475
530
  # === Notes
476
531
  #
477
532
  # Returns an object that supports the Geometry interface.
533
+ #
534
+ # Although implementations are free to attempt to handle
535
+ # another_geometry values that do not share the same factory as
536
+ # this geometry, strictly speaking, the result of performing
537
+ # operations on objects of different factories is undefined.
478
538
 
479
539
  def union(another_geometry_)
480
- raise Error::UnsupportedCapability, "Method Geometry#union not defined."
540
+ raise Error::UnsupportedOperation, "Method Geometry#union not defined."
481
541
  end
482
542
 
483
543
 
@@ -489,9 +549,14 @@ module RGeo
489
549
  # === Notes
490
550
  #
491
551
  # Returns an object that supports the Geometry interface.
552
+ #
553
+ # Although implementations are free to attempt to handle
554
+ # another_geometry values that do not share the same factory as
555
+ # this geometry, strictly speaking, the result of performing
556
+ # operations on objects of different factories is undefined.
492
557
 
493
558
  def difference(another_geometry_)
494
- raise Error::UnsupportedCapability, "Method Geometry#difference not defined."
559
+ raise Error::UnsupportedOperation, "Method Geometry#difference not defined."
495
560
  end
496
561
 
497
562
 
@@ -503,9 +568,14 @@ module RGeo
503
568
  # === Notes
504
569
  #
505
570
  # Returns an object that supports the Geometry interface.
571
+ #
572
+ # Although implementations are free to attempt to handle
573
+ # another_geometry values that do not share the same factory as
574
+ # this geometry, strictly speaking, the result of performing
575
+ # operations on objects of different factories is undefined.
506
576
 
507
577
  def sym_difference(another_geometry_)
508
- raise Error::UnsupportedCapability, "Method Geometry#sym_difference not defined."
578
+ raise Error::UnsupportedOperation, "Method Geometry#sym_difference not defined."
509
579
  end
510
580
 
511
581
 
@@ -77,7 +77,7 @@ module RGeo
77
77
  # Returns an integer.
78
78
 
79
79
  def num_geometries
80
- raise Error::UnsupportedCapability, "Method GeometryCollection#num_geometries not defined."
80
+ raise Error::UnsupportedOperation, "Method GeometryCollection#num_geometries not defined."
81
81
  end
82
82
 
83
83
 
@@ -91,7 +91,7 @@ module RGeo
91
91
  # if the given n is out of range.
92
92
 
93
93
  def geometry_n(n_)
94
- raise Error::UnsupportedCapability, "Method GeometryCollection#geometry_n not defined."
94
+ raise Error::UnsupportedOperation, "Method GeometryCollection#geometry_n not defined."
95
95
  end
96
96
 
97
97
 
@@ -117,7 +117,7 @@ module RGeo
117
117
  # include the Enumerable mixin.
118
118
 
119
119
  def each(&block_)
120
- raise Error::UnsupportedCapability, "Method GeometryCollection#each not defined."
120
+ raise Error::UnsupportedOperation, "Method GeometryCollection#each not defined."
121
121
  end
122
122
 
123
123
 
@@ -68,7 +68,7 @@ module RGeo
68
68
  # Returns an integer.
69
69
 
70
70
  def num_points
71
- raise Error::UnsupportedCapability, "Method LineString#num_points not defined."
71
+ raise Error::UnsupportedOperation, "Method LineString#num_points not defined."
72
72
  end
73
73
 
74
74
 
@@ -82,7 +82,7 @@ module RGeo
82
82
  # if the given n is out of range.
83
83
 
84
84
  def point_n(n_)
85
- raise Error::UnsupportedCapability, "Method LineString#point_n not defined."
85
+ raise Error::UnsupportedOperation, "Method LineString#point_n not defined."
86
86
  end
87
87
 
88
88
 
@@ -90,7 +90,7 @@ module RGeo
90
90
  # support the Point interface.
91
91
 
92
92
  def points
93
- raise Error::UnsupportedCapability, "Method LineString#points not defined."
93
+ raise Error::UnsupportedOperation, "Method LineString#points not defined."
94
94
  end
95
95
 
96
96
 
@@ -86,7 +86,7 @@ module RGeo
86
86
  # Returns a floating-point scalar value.
87
87
 
88
88
  def length
89
- raise Error::UnsupportedCapability, "Method MultiCurve#length not defined."
89
+ raise Error::UnsupportedOperation, "Method MultiCurve#length not defined."
90
90
  end
91
91
 
92
92
 
@@ -101,7 +101,7 @@ module RGeo
101
101
  # specification, which stipulates an integer return value.
102
102
 
103
103
  def is_closed?
104
- raise Error::UnsupportedCapability, "Method MultiCurve#is_closed? not defined."
104
+ raise Error::UnsupportedOperation, "Method MultiCurve#is_closed? not defined."
105
105
  end
106
106
 
107
107
 
@@ -77,7 +77,7 @@ module RGeo
77
77
  # Returns a floating-point scalar value.
78
78
 
79
79
  def area
80
- raise Error::UnsupportedCapability, "Method MultiSurface#area not defined."
80
+ raise Error::UnsupportedOperation, "Method MultiSurface#area not defined."
81
81
  end
82
82
 
83
83
 
@@ -91,7 +91,7 @@ module RGeo
91
91
  # Returns an object that supports the Point interface.
92
92
 
93
93
  def centroid
94
- raise Error::UnsupportedCapability, "Method MultiSurface#centroid not defined."
94
+ raise Error::UnsupportedOperation, "Method MultiSurface#centroid not defined."
95
95
  end
96
96
 
97
97
 
@@ -104,7 +104,7 @@ module RGeo
104
104
  # Returns an object that supports the Point interface.
105
105
 
106
106
  def point_on_surface
107
- raise Error::UnsupportedCapability, "Method MultiSurface#point_on_surface not defined."
107
+ raise Error::UnsupportedOperation, "Method MultiSurface#point_on_surface not defined."
108
108
  end
109
109
 
110
110
 
@@ -73,7 +73,7 @@ module RGeo
73
73
  # Returns a floating-point scalar value.
74
74
 
75
75
  def x
76
- raise Error::UnsupportedCapability, "Method Point#x not defined."
76
+ raise Error::UnsupportedOperation, "Method Point#x not defined."
77
77
  end
78
78
 
79
79
 
@@ -86,7 +86,7 @@ module RGeo
86
86
  # Returns a floating-point scalar value.
87
87
 
88
88
  def y
89
- raise Error::UnsupportedCapability, "Method Point#y not defined."
89
+ raise Error::UnsupportedOperation, "Method Point#y not defined."
90
90
  end
91
91
 
92
92
 
@@ -94,10 +94,10 @@ module RGeo
94
94
  # scalar value.
95
95
  #
96
96
  # This method may not be available if the point's factory does
97
- # not support the <tt>z_coordinate</tt> capability.
97
+ # not support Z coordinates.
98
98
 
99
99
  def z
100
- raise Error::UnsupportedCapability, "Method Point#z not defined."
100
+ raise Error::UnsupportedOperation, "Method Point#z not defined."
101
101
  end
102
102
 
103
103
 
@@ -105,10 +105,10 @@ module RGeo
105
105
  # scalar value.
106
106
  #
107
107
  # This method may not be available if the point's factory does
108
- # not support the <tt>m_coordinate</tt> capability.
108
+ # not support M coordinates.
109
109
 
110
110
  def m
111
- raise Error::UnsupportedCapability, "Method Point#m not defined."
111
+ raise Error::UnsupportedOperation, "Method Point#m not defined."
112
112
  end
113
113
 
114
114