rgeo 0.3.20 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +7 -0
  2. data/ext/geos_c_impl/extconf.rb +0 -30
  3. data/ext/geos_c_impl/factory.c +0 -32
  4. data/ext/geos_c_impl/factory.h +0 -33
  5. data/ext/geos_c_impl/geometry.c +20 -33
  6. data/ext/geos_c_impl/geometry.h +0 -32
  7. data/ext/geos_c_impl/geometry_collection.c +0 -32
  8. data/ext/geos_c_impl/geometry_collection.h +0 -32
  9. data/ext/geos_c_impl/line_string.c +0 -32
  10. data/ext/geos_c_impl/line_string.h +0 -32
  11. data/ext/geos_c_impl/main.c +0 -32
  12. data/ext/geos_c_impl/point.c +0 -33
  13. data/ext/geos_c_impl/point.h +0 -32
  14. data/ext/geos_c_impl/polygon.c +0 -32
  15. data/ext/geos_c_impl/polygon.h +0 -32
  16. data/ext/geos_c_impl/preface.h +0 -32
  17. data/ext/proj4_c_impl/extconf.rb +0 -30
  18. data/ext/proj4_c_impl/main.c +0 -33
  19. data/lib/rgeo.rb +0 -36
  20. data/lib/rgeo/cartesian.rb +0 -30
  21. data/lib/rgeo/cartesian/analysis.rb +0 -30
  22. data/lib/rgeo/cartesian/bounding_box.rb +0 -30
  23. data/lib/rgeo/cartesian/calculations.rb +0 -30
  24. data/lib/rgeo/cartesian/factory.rb +0 -30
  25. data/lib/rgeo/cartesian/feature_classes.rb +0 -30
  26. data/lib/rgeo/cartesian/feature_methods.rb +0 -30
  27. data/lib/rgeo/cartesian/interface.rb +0 -30
  28. data/lib/rgeo/coord_sys.rb +0 -30
  29. data/lib/rgeo/coord_sys/cs/entities.rb +0 -30
  30. data/lib/rgeo/coord_sys/cs/factories.rb +0 -30
  31. data/lib/rgeo/coord_sys/cs/wkt_parser.rb +0 -30
  32. data/lib/rgeo/coord_sys/proj4.rb +1 -49
  33. data/lib/rgeo/coord_sys/srs_database/active_record_table.rb +0 -30
  34. data/lib/rgeo/coord_sys/srs_database/interface.rb +0 -30
  35. data/lib/rgeo/coord_sys/srs_database/proj4_data.rb +0 -30
  36. data/lib/rgeo/coord_sys/srs_database/sr_org.rb +0 -30
  37. data/lib/rgeo/coord_sys/srs_database/url_reader.rb +0 -30
  38. data/lib/rgeo/error.rb +0 -30
  39. data/lib/rgeo/feature.rb +0 -30
  40. data/lib/rgeo/feature/curve.rb +0 -30
  41. data/lib/rgeo/feature/factory.rb +0 -30
  42. data/lib/rgeo/feature/factory_generator.rb +0 -30
  43. data/lib/rgeo/feature/geometry.rb +1 -31
  44. data/lib/rgeo/feature/geometry_collection.rb +0 -30
  45. data/lib/rgeo/feature/line.rb +0 -30
  46. data/lib/rgeo/feature/line_string.rb +0 -30
  47. data/lib/rgeo/feature/linear_ring.rb +0 -30
  48. data/lib/rgeo/feature/mixins.rb +0 -30
  49. data/lib/rgeo/feature/multi_curve.rb +0 -30
  50. data/lib/rgeo/feature/multi_line_string.rb +0 -30
  51. data/lib/rgeo/feature/multi_point.rb +0 -30
  52. data/lib/rgeo/feature/multi_polygon.rb +0 -30
  53. data/lib/rgeo/feature/multi_surface.rb +0 -30
  54. data/lib/rgeo/feature/point.rb +0 -30
  55. data/lib/rgeo/feature/polygon.rb +0 -30
  56. data/lib/rgeo/feature/surface.rb +0 -30
  57. data/lib/rgeo/feature/types.rb +0 -30
  58. data/lib/rgeo/geographic.rb +0 -30
  59. data/lib/rgeo/geographic/factory.rb +0 -30
  60. data/lib/rgeo/geographic/interface.rb +2 -32
  61. data/lib/rgeo/geographic/proj4_projector.rb +0 -30
  62. data/lib/rgeo/geographic/projected_feature_classes.rb +0 -30
  63. data/lib/rgeo/geographic/projected_feature_methods.rb +7 -32
  64. data/lib/rgeo/geographic/projected_window.rb +5 -39
  65. data/lib/rgeo/geographic/simple_mercator_projector.rb +11 -41
  66. data/lib/rgeo/geographic/spherical_feature_classes.rb +0 -30
  67. data/lib/rgeo/geographic/spherical_feature_methods.rb +2 -32
  68. data/lib/rgeo/geographic/spherical_math.rb +0 -30
  69. data/lib/rgeo/geos.rb +0 -30
  70. data/lib/rgeo/geos/capi_factory.rb +8 -38
  71. data/lib/rgeo/geos/capi_feature_classes.rb +0 -29
  72. data/lib/rgeo/geos/ffi_factory.rb +0 -30
  73. data/lib/rgeo/geos/ffi_feature_classes.rb +0 -30
  74. data/lib/rgeo/geos/ffi_feature_methods.rb +0 -30
  75. data/lib/rgeo/geos/interface.rb +5 -49
  76. data/lib/rgeo/geos/utils.rb +0 -30
  77. data/lib/rgeo/geos/zm_factory.rb +0 -30
  78. data/lib/rgeo/geos/zm_feature_classes.rb +0 -30
  79. data/lib/rgeo/geos/zm_feature_methods.rb +0 -30
  80. data/lib/rgeo/impl_helper.rb +0 -30
  81. data/lib/rgeo/impl_helper/basic_geometry_collection_methods.rb +0 -30
  82. data/lib/rgeo/impl_helper/basic_geometry_methods.rb +0 -30
  83. data/lib/rgeo/impl_helper/basic_line_string_methods.rb +0 -30
  84. data/lib/rgeo/impl_helper/basic_point_methods.rb +0 -30
  85. data/lib/rgeo/impl_helper/basic_polygon_methods.rb +0 -30
  86. data/lib/rgeo/impl_helper/math.rb +0 -30
  87. data/lib/rgeo/impl_helper/utils.rb +0 -30
  88. data/lib/rgeo/version.rb +1 -50
  89. data/lib/rgeo/wkrep.rb +0 -30
  90. data/lib/rgeo/wkrep/wkb_generator.rb +0 -30
  91. data/lib/rgeo/wkrep/wkb_parser.rb +0 -30
  92. data/lib/rgeo/wkrep/wkt_generator.rb +0 -30
  93. data/lib/rgeo/wkrep/wkt_parser.rb +0 -30
  94. data/lib/rgeo/yaml.rb +0 -30
  95. data/test/common/factory_tests.rb +0 -30
  96. data/test/common/geometry_collection_tests.rb +0 -30
  97. data/test/common/line_string_tests.rb +0 -30
  98. data/test/common/multi_line_string_tests.rb +0 -30
  99. data/test/common/multi_point_tests.rb +0 -30
  100. data/test/common/multi_polygon_tests.rb +0 -30
  101. data/test/common/point_tests.rb +0 -30
  102. data/test/common/polygon_tests.rb +0 -30
  103. data/test/coord_sys/tc_active_record_table.rb +2 -32
  104. data/test/coord_sys/tc_ogc_cs.rb +0 -30
  105. data/test/coord_sys/tc_proj4.rb +1 -31
  106. data/test/coord_sys/tc_proj4_srs_data.rb +3 -33
  107. data/test/coord_sys/tc_sr_org.rb +2 -32
  108. data/test/coord_sys/tc_url_reader.rb +4 -34
  109. data/test/geos_capi/tc_factory.rb +0 -30
  110. data/test/geos_capi/tc_geometry_collection.rb +0 -30
  111. data/test/geos_capi/tc_line_string.rb +0 -30
  112. data/test/geos_capi/tc_misc.rb +37 -31
  113. data/test/geos_capi/tc_multi_line_string.rb +0 -30
  114. data/test/geos_capi/tc_multi_point.rb +0 -30
  115. data/test/geos_capi/tc_multi_polygon.rb +0 -30
  116. data/test/geos_capi/tc_parsing_unparsing.rb +0 -30
  117. data/test/geos_capi/tc_point.rb +0 -30
  118. data/test/geos_capi/tc_polygon.rb +12 -30
  119. data/test/geos_capi/tc_zmfactory.rb +0 -30
  120. data/test/geos_ffi/tc_factory.rb +0 -30
  121. data/test/geos_ffi/tc_geometry_collection.rb +0 -30
  122. data/test/geos_ffi/tc_line_string.rb +0 -30
  123. data/test/geos_ffi/tc_misc.rb +0 -30
  124. data/test/geos_ffi/tc_multi_line_string.rb +0 -30
  125. data/test/geos_ffi/tc_multi_point.rb +0 -30
  126. data/test/geos_ffi/tc_multi_polygon.rb +0 -30
  127. data/test/geos_ffi/tc_parsing_unparsing.rb +0 -30
  128. data/test/geos_ffi/tc_point.rb +0 -30
  129. data/test/geos_ffi/tc_polygon.rb +0 -30
  130. data/test/geos_ffi/tc_zmfactory.rb +0 -30
  131. data/test/projected_geographic/tc_factory.rb +0 -30
  132. data/test/projected_geographic/tc_geometry_collection.rb +0 -30
  133. data/test/projected_geographic/tc_line_string.rb +0 -30
  134. data/test/projected_geographic/tc_multi_line_string.rb +0 -30
  135. data/test/projected_geographic/tc_multi_point.rb +0 -30
  136. data/test/projected_geographic/tc_multi_polygon.rb +0 -30
  137. data/test/projected_geographic/tc_point.rb +0 -30
  138. data/test/projected_geographic/tc_polygon.rb +0 -30
  139. data/test/simple_cartesian/tc_calculations.rb +0 -30
  140. data/test/simple_cartesian/tc_factory.rb +0 -30
  141. data/test/simple_cartesian/tc_geometry_collection.rb +0 -30
  142. data/test/simple_cartesian/tc_line_string.rb +0 -30
  143. data/test/simple_cartesian/tc_multi_line_string.rb +0 -30
  144. data/test/simple_cartesian/tc_multi_point.rb +0 -30
  145. data/test/simple_cartesian/tc_multi_polygon.rb +0 -30
  146. data/test/simple_cartesian/tc_point.rb +0 -30
  147. data/test/simple_cartesian/tc_polygon.rb +0 -30
  148. data/test/simple_mercator/tc_factory.rb +0 -30
  149. data/test/simple_mercator/tc_geometry_collection.rb +0 -30
  150. data/test/simple_mercator/tc_line_string.rb +0 -30
  151. data/test/simple_mercator/tc_multi_line_string.rb +0 -30
  152. data/test/simple_mercator/tc_multi_point.rb +0 -30
  153. data/test/simple_mercator/tc_multi_polygon.rb +0 -30
  154. data/test/simple_mercator/tc_point.rb +0 -30
  155. data/test/simple_mercator/tc_polygon.rb +0 -30
  156. data/test/simple_mercator/tc_window.rb +8 -30
  157. data/test/spherical_geographic/tc_calculations.rb +0 -30
  158. data/test/spherical_geographic/tc_factory.rb +0 -30
  159. data/test/spherical_geographic/tc_geometry_collection.rb +0 -30
  160. data/test/spherical_geographic/tc_line_string.rb +0 -30
  161. data/test/spherical_geographic/tc_multi_line_string.rb +0 -30
  162. data/test/spherical_geographic/tc_multi_point.rb +0 -30
  163. data/test/spherical_geographic/tc_multi_polygon.rb +0 -30
  164. data/test/spherical_geographic/tc_point.rb +11 -30
  165. data/test/spherical_geographic/tc_polygon.rb +0 -30
  166. data/test/tc_cartesian_analysis.rb +0 -30
  167. data/test/tc_cartesian_bbox.rb +0 -30
  168. data/test/tc_mixins.rb +0 -30
  169. data/test/tc_oneoff.rb +0 -30
  170. data/test/tc_types.rb +0 -30
  171. data/test/wkrep/tc_wkb_generator.rb +0 -30
  172. data/test/wkrep/tc_wkb_parser.rb +0 -30
  173. data/test/wkrep/tc_wkt_generator.rb +0 -30
  174. data/test/wkrep/tc_wkt_parser.rb +0 -30
  175. metadata +94 -47
  176. data/History.rdoc +0 -351
  177. data/README.rdoc +0 -184
  178. data/Spatial_Programming_With_RGeo.rdoc +0 -451
  179. data/Version +0 -1
@@ -1,351 +0,0 @@
1
- === 0.3.20 / 2012-12-08
2
-
3
- * Distances computed by the spherical factory were incorrect when covering more than 90 degrees of the globe. Fixed. (reported by exoth)
4
-
5
- === 0.3.19 / 2012-09-20
6
-
7
- * The Geos factories, as well as the projected geographic convenience factories such as simple_mercator, now support the :uses_lenient_assertions option.
8
- * RGeo::Geographic::ProjectedWindow#height was incorrectly aliased to x_span rather than y_span. Fixed.
9
-
10
- === 0.3.18 / 2012-09-19
11
-
12
- * The coordinate system WKT parser now recognizes the nonstandard "EXTENSION" node. This node is not part of the WKT, but it is present in some data sets, including the coordinate systems shipped with Proj 4.8, so we now support it.
13
- * Updated some of the other test cases to work with the specific data that ships with Proj 4.8.
14
- * New APIs to access the underlying version of Geos and Proj.
15
-
16
- === 0.3.17 / 2012-08-21
17
-
18
- * Geos-based implementations crashed when an operation resulted in an empty point, e.g. taking the centroid of an empty MultiPolygon on recent versions of Geos. Fixed. Such operations now return the empty GeometryCollection for the time being, to match the behavior of older versions of Geos. (Reported by Ben Hughes)
19
-
20
- === 0.3.16 / 2012-08-19
21
-
22
- * Added /usr/lib64 to the list of libraries searched. (Thanks to hunterae)
23
- * Re-added Geos::Factory as an alias of Geos::CAPIFactory, for compatibility with old serializations.
24
-
25
- === 0.3.15 / 2012-08-02
26
-
27
- * The class shuffle in 0.3.14 broke RGeo::Geos.is_geos? and similar. Fixed.
28
-
29
- === 0.3.14 / 2012-07-08
30
-
31
- * Compatibility note: The class names for some of the factory and feature implementations, as well as the superclass relationships, have changed in this release. These class names and hierarchy are internal, and clients should not depend on them. That is, RGeo types are generally duck-types. If you need to interrogate type, see the documentation for the ::RGeo::Feature::Type module.
32
- * The gemspec no longer includes the timestamp in the version, so that bundler can pull from github. (Reported by corneverbruggen)
33
- * Mixins were not being added to GEOS features with both Z and M coordinate. Fixed.
34
- * Mixins are added last to feature objects, so they should override anything added by other modules such as Enumerable. (Reported by Ben Hughes)
35
- * Some object hashes were not consistent with equality. Fixed. Hashes should now be consistent with representational equivalence (i.e. the eql? method). Therefore, it should now be possible to use RGeo factories and features as hash keys.
36
-
37
- === 0.3.13 / 2012-05-04
38
-
39
- * The spherical factory and the simple cartesian factory now support buffers around points (but not around other types). Accordingly, those factories now take the :buffer_resolution property argument.
40
- * The :uses_lenient_assertions and parser/generator arguments to RGeo::Geographic.spherical_factory did not have their advertised effect. Fixed.
41
- * The parser/generator arguments to projected geographic factories did not have their advertised effect. Fixed.
42
-
43
- === 0.3.12 / 2012-04-24
44
-
45
- * Geos::FFIFactory collection constructors sometimes modified arguments in place, which caused problems for the ZMFactory among other things. Fixed.
46
-
47
- === 0.3.11 / 2012-04-14
48
-
49
- * Geometry#buffer crashed in the geos capi factory. Fixed.
50
-
51
- === 0.3.10 / 2012-04-12
52
-
53
- * Implemented subdivision and other analysis features on Cartesian::BoundingBox.
54
- * Operators +, -, and * were not implemented in the ffi-geos factory. Fixed.
55
-
56
- === 0.3.9 / 2012-04-10
57
-
58
- * Implemented LineString#length and MultiLineString#length for simple cartesian and simple spherical factories.
59
- * Added Cartesian::BoundingBox.create_from_points.
60
- * Serialization was broken for some 3d geometries when running libgeos 3.2.x (3.3.x was unaffected). Fixed.
61
- * Fixed an exception when creating adding a geometry to a Cartesian::BoundingBox when a cast is necessary.
62
- * Added configuration for Travis CI.
63
-
64
- === 0.3.8 / 2012-03-23
65
-
66
- * When using the spherical factory, some negative longitudes might get perturbed slightly due to floating point errors. Fixed. (Reported by Pete Deffendol)
67
- * Fixed a bunch of warnings, and turned on warnings during testing.
68
-
69
- === 0.3.7 / 2012-03-12
70
-
71
- * Marshal and YAML serialization now fully implemented for geometries.
72
- * The spatial predicates for objects using the 4D (ZM) Geos factory almost always returned false because they weren't casting correctly. Fixed.
73
- * Proj#canonical_str and the Geos implementations of Geometry#as_text were returning strings encoded as "ASCII-8BIT", which was causing strange binary output in YAML serialization, among other things. Now fixed. These strings are now encoded as "US-ASCII".
74
- * YAML serialization for 4D (ZM) Geos factories didn't preserve coordinate systems. Fixed.
75
-
76
- === 0.3.6 / 2012-03-06
77
-
78
- * Geometry#relate? was incorrectly spelled "Geometry#relate" in the Feature::Geometry module and in some (but not all) implementations, leading to various types of method not found errors. Fixed. We'll keep #relate as a deprecated alias for the time being.
79
- * Cloning a Geos CAPI factory caused a segfault. Fixed.
80
- * Parsing a "well-known" format string using the ffi-geos implementation returned the low-level ffi-geos object rather than the RGeo feature if the generator was set to :geos. Fixed.
81
- * GeometryCollection#each now returns an Enumerator if no block is given.
82
- * Pure Ruby factories (simple_spherical, simple_cartesian) now support a :uses_lenient_assertions option, which disables assertion checking on LinearRing, Polygon, and MultiPolygon construction, since those checks can be expensive for large geometries.
83
- * Fixed Rails 3.2 deprecation warning in SRSDatabase::ActiveRecordTable.
84
- * Fixed an issue with the ActiveRecordTable tests on ActiveRecord 3.2.
85
- * Further work towards YAML and mashal serialization support. Factories are now done, but geometries are not. I'm working actively on geometry serialization; it should be in place in the next release.
86
-
87
- === 0.3.5 / 2012-02-27
88
-
89
- * Reworked the terminology on equivalence levels. The documentation now names the three levels "spatial", "representational", and "objective" equivalence.
90
- * Some geometry implementations didn't implement the == operator, resulting in various problems, including inability to set ActiveRecord attributes when using an implementation (such as simple_spherical polygons) that doesn't provide spatial equivalence tests. Fixed. The interfaces now specify that all implementations must implement the == operator and the eql? method, and should degrade to stronger forms of equivalence if weaker forms are not available. (Reported by Phil Murray.)
91
- * Added Geometry#rep_equals? to test representational equivalence without the fallback behavior of Geometry#eql?
92
-
93
- === 0.3.4 / 2012-02-21
94
-
95
- * The FFI-GEOS implementation now uses prepared geometries.
96
- * Fixed a segfault that sometimes happened when passing a non-GEOS geometry as an argument to a GEOS function under Ruby 1.8.7. (Reported by Greg Hazel.)
97
- * A few minor optimizations in the C extension for GEOS.
98
-
99
- === 0.3.3 / 2011-12-19
100
-
101
- * Recognizes MultiPoint WKTs in which individual points are not contained in parens. This is technically incorrect syntax, but apparently there are examples in the wild so we are now supporting it. (Reported by J Smith.)
102
- * The Geos CAPI implementation sometimes returned the wrong result from GeometryCollection#geometry_n. Fixed.
103
- * Fixed a hang when validating certain projected linestrings. (Patch contributed by Toby Rahilly.)
104
- * Several rdoc updates (including a contribution by Andy Allan).
105
- * Separated declarations and code in the C extensions to avert warnings on some compilers.
106
-
107
- === 0.3.2 / 2011-08-11
108
-
109
- * Some objects can now be serialized and deserialized via Marshal or YAML. Supported objects include OGC coordinate systems, Proj4 coordinate systems, and WKRep parsers/generators. Factories and geometries will be supported shortly.
110
- * The GEOS CAPI implementation can now use prepared geometries to speed up certain operations. The GEOS FFI implementation will do the same shortly.
111
- * Calling dup on a Proj4 object caused a segfault. Fixed.
112
- * Fixed an exception in RGeo::Cartesian::BoundingBox#to_geometry. (Thanks to Travis Dempsey.)
113
- * WKTGenerator generated incorrect tag names for subtypes of LineString. Fixed.
114
- * Installation automatically finds the KyngChaos GEOS and Proj4 frameworks for Mac OS X. (Thanks to benchi.)
115
-
116
- === 0.3.1 / 2011-05-24
117
-
118
- * Running a == operator comparison between a geometry and a non-geometry caused an exception for some implementations. Fixed. (Reported by Daniel Hackney.)
119
- * Clarified the specifications for operators on geometry objects.
120
-
121
- === 0.3.0 / 2011-05-23
122
-
123
- * RGeo can now use GEOS via the ffi-geos gem, in addition to RGeo's built-in C integration. The ffi-geos integration is experimental right now, since ffi-geos is still in early beta. In particular, I do not recommend using it in JRuby yet (as of JRuby 1.6.1), because an apparent JRuby bug (JRUBY-5813) causes intermittent segfaults. However, once the issue is resolved (soon, I hope, since I've already submitted a patch to the JRuby team), we should have GEOS functional on JRuby.
124
- * It is now possible to add methods to geometry objects "globally". This was not possible previously because there is no global base class; however, there is now a mechanism to specify mixins that all implementations are expected to include.
125
- * Added RGeo::Feature::Type.supertype and each_immediate_subtype.
126
- * POSSIBLE INCOMPATIBLE CHANGE: Taking the boundary of a GEOS GeometryCollection now returns nil. It used to return an empty GeometryCollection, regardless of the contents of the original collection. GeometryCollection subclasses like MultiPoint, however, do have proper boundaries.
127
- * Renamed the lenient_multi_polygon_assertions GEOS factory parameter to uses_lenient_multi_polygon_assertions. The older name will continue to work.
128
- * The GEOS buffer_resolution and uses_lenient_multi_polygon_assertions options are now exposed via properties.
129
- * The RGeo::Feature::Polygon module incorrectly included Enumerable. Fixed.
130
- * Several of the implementations included some extraneous (and nonfunctional) methods because they included the wrong modules. Fixed.
131
-
132
- === 0.2.9 / 2011-04-25
133
-
134
- * INCOMPATIBLE CHANGE: mutator methods for the configurations of the WKRep parsers and generators have been removed. Create a new parser/generator if you need to change behavior.
135
- * POSSIBLE INCOMPATIBLE CHANGE: The GEOS implementation now uses WKRep (by default) instead of the native GEOS WKB/WKT parsers and generators. This is because of some issues with the GEOS 3.2.2 implementation: namely, that the GEOS WKT generator suffers from some floating-point roundoff issues due to its "fixed point" output, and that the GEOS WKT parser fails to recognize names not in all caps, in violation of the version 1.2 update of the SFS. (Thanks to sharpone74 for report GH-4.)
136
- * WKRep::WKTGenerator injects some more whitespace to make output more readable and more in line with the examples in the SFS.
137
- * It is now possible to configure the WKT/WKB parsers/generators for each of the implementations, by passing the configuration hash to the factory constructor. In addition, it is also possible to configure the GEOS factory to use the native GEOS WKT/WKB implementation instead of RGeo::WKRep (that is, to restore the behavior of RGeo <= 0.2.8).
138
- * The WKB parser auto-detects and interprets hex strings.
139
-
140
- === 0.2.8 / 2011-04-11
141
-
142
- * A .gemspec file is now available for gem building and bundler git integration.
143
-
144
- === 0.2.7 / 2011-04-09
145
-
146
- * POSSIBLE INCOMPATIBLE CHANGE: GeometryCollection#geometry_n, Polygon#interior_ring_n, and LineString#point_n, in some implementations, allowed negative indexes (which counted backwards from the end of the collection as per Ruby arrays). This was contrary to the SFS interface, and so the behavior has been removed. However, GeometryCollection#[], because it is supposed to model Ruby arrays, now explicitly DOES allow negative indexes. This means GeometryCollection#[] is no longer exactly the same as GeometryCollection#geometry_n. These clarifications have also been made in the RDoc.
147
- * The GEOS implementations of GeometryCollection#geometry_n and Polygon#interior_ring_n segfaulted when given an index out of bounds. Bounds Check Fail fixed. (Reported by sharpone74.)
148
-
149
- === 0.2.6 / 2011-03-31
150
-
151
- * Ring direction analysis raised an exception if any of the line segments were zero length. Fixed. (Reported by spara.)
152
-
153
- === 0.2.5 / 2011-03-21
154
-
155
- * Line segment intersection tests in the simple cartesian implementations were failing for a few cases involving collinear segments. Fixed. (Reported by Dimitry Solovyov.)
156
- * Argument hash RDocs should be more readable.
157
-
158
- === 0.2.4 / 2010-12-31
159
-
160
- * Several bugs were preventing the low-level Proj4 transform functions from working at all. Fixed. (Reported by mRg.)
161
- * The GEOS factories over-optimized projection casts, sometimes resulting in proj4 transformations not getting applied. Fixed. (Reported by mRg.)
162
- * Proj4 objects now have a flag to indicate whether geographic coordinate systems should be in radians. The (undocumented) radians option is no longer supported in transform_coords.
163
- * Disabled the spatialreference.org tests for the time being because the site seems to be offline.
164
-
165
- === 0.2.3 / 2010-12-19
166
-
167
- * The "simple mercator" geographic type incorrectly reported EPSG 3857 instead of EPSG 3785 for the projection. Dyslexia fixed.
168
- * Geographic types couldn't have their coord_sys set. Fixed.
169
- * You can now pass an :srs_database option when creating most factory types. This lets the factory look up its coordinate system using the given SRID.
170
- * There are now explicit methods you can call to obtain FactoryGenerator objects; you should not need to call <tt>method</tt>.
171
- * Wrote RDocs for all the CoordSys::CS and CoordSys::SRSDatabase classes.
172
-
173
- === 0.2.2 / 2010-12-15
174
-
175
- The main theme for this release was support for spatial reference system databases. The basic functionality is done and ready for experimentation. However, documentation is still in progress, and we're still working on some ideas to make coordinate system management more seamless by integrating the SRS databases with FactoryGenerator.
176
-
177
- * Implemented OGC coordinate system objects, including most of the CS package of the OGC Coordinate Transform spec, and a parser for the WKT.
178
- * Defined interfaces for spatial reference system database access. Implemented a database based on ActiveRecord and backed by spatial_ref_sys tables; one based on the data files shared by the proj4 library; one based on retrieving data from spatialreference.org, and one based on retrieving data from arbitrary URLs.
179
- * Renamed RGeo::Feature::Type::Instance marker module to RGeo::Feature::Instance. The old name is aliased for backward compatibility but is deprecated.
180
- * Added a few more directories to the default lookup path for geos and proj4.
181
-
182
- === 0.2.1 / 2010-12-09
183
-
184
- * Now compatible with Rubinius (version 1.1 or later).
185
- * Now partially compatible with JRuby (1.5 or later). A bunch of tests fail because GEOS and Proj4 are not available, hence there is no projection support and no complete Cartesian implementation. But at least RGeo loads and the basic operations work.
186
- * Some minor optimizations in the GEOS glue code.
187
-
188
- === 0.2.0 / 2010-12-07
189
-
190
- This is the first public alpha version of RGeo. With this version, we are soft-locking the API interfaces and will try to retain backwards compatibility from this point. Incompatible API changes may still be done, but only if considered necessary.
191
-
192
- With this release, RGeo has been split into a core library and a set of optional modules. The following modules remain in the core "rgeo" gem:
193
- * RGeo::Feature
194
- * RGeo::CoordSys
195
- * RGeo::Geos
196
- * RGeo::Cartesian
197
- * RGeo::Geographic
198
- * RGeo::WKRep
199
-
200
- The following modules have been spun off into separate gems:
201
- * RGeo::GeoJSON has been spun off into the "rgeo-geojson" gem.
202
- * RGeo::Shapefile has been spun off into the "rgeo-shapefile" gem.
203
- * RGeo::ActiveRecord has been spun off into the "rgeo-activerecord" gem.
204
-
205
- The ActiveRecord adapters have been spun off into gems according to the recommended ActiveRecord naming scheme:
206
- * The <b>mysqlspatial</b> adapter is now in the gem "activerecord-mysqlspatial-adapter".
207
- * The <b>mysql2spatial</b> adapter is now in the gem "activerecord-mysql2spatial-adapter".
208
- * The <b>spatialite</b> adapter is now in the gem "activerecord-spatialite-adapter".
209
- * The <b>postgis</b> adapter is now in the gem "activerecord-postgis-adapter".
210
-
211
- Any additional modules likely will be distributed similarly as separate gems.
212
-
213
- Other changes in this version:
214
- * API CHANGE: Renamed UnsupportedCapability to UnsupportedOperation since we've done away with the "capability" concept.
215
- * Proj4 integration wasn't building into the right location on a gem install. Fixed.
216
- * Various updates to the rdocs.
217
- * Minor updates to the Spatial Programming paper.
218
-
219
- === 0.1.22 / 2010-12-05
220
-
221
- This should be the last pre-alpha development version. The next version planned is the 0.2 alpha release.
222
-
223
- * API CHANGE: Renamed Geography module to Geographic.
224
- * API CHANGE: Renamed Factory#has_capability? to Factory#property to generalize the API.
225
- * API CHANGE: Factory#proj4 and Factory#coord_sys are now required methods.
226
- * The ZM Geos factory didn't properly handle proj4. Fixed.
227
- * The proj4-based projected geographic factory now extracts the cooresponding geographic coordinate system from the projection, rather than always using WGS84.
228
- * Initial draft of Spatial Programming paper.
229
-
230
- === 0.1.21 / 2010-12-03
231
-
232
- * API CHANGE: Added "_factory" to the end of the Geography toplevel interface methods, for consistency with the rest of the API.
233
- * API CHANGE: Simplified initializer API for WKTParser and WKBParser.
234
- * API CHANGE: Removed ActiveRecord::Base.rgeo_default_factory, and provided a reasonable default rgeo_factory_generator.
235
- * Removed deprecated pluralized names RGeo::Features and RGeo::Errors.
236
- * First pass implementation of the ActiveRecord adapters for SpatiaLite and PostGIS.
237
- * Fixed problems with Proj4 equivalence testing.
238
- * Several more minor fixes and documentation updates.
239
-
240
- === 0.1.20 / 2010-11-30
241
-
242
- * API CHANGE: Methods that raised MethodUnimplemented now raise UnsupportedCapability instead. Removed MethodUnimplemented.
243
- * API CHANGE: Renamed RGeo::Features to RGeo::Feature, RGeo::Errors to RGeo::Error, and RGeo::ImplHelpers to RGeo::ImplHelper. The old pluralized names are aliased to the new names for now for backward compatibility, though they are deprecated and will be removed shortly.
244
- * Renamed the tests directory to test. Generally speaking, I'm getting rid of pluralized names.
245
- * Added RGeo::CoordSys::Proj4 representing a proj4 coordinate system. It uses the proj4 library.
246
- * Added Factory#proj4 as an optional method indicated by the :proj4 capability.
247
- * All existing geometry implementations now support proj4.
248
- * You can now cause casting to transform between proj4 projections by specifying the :project parameter.
249
- * A Geography implementation with an arbitrary projection backed by proj4 is now available.
250
-
251
- === 0.1.19 / 2010-11-23
252
-
253
- * The GEOS implementation now supports ZM (4-dimensional data), via a wrapper since the underlying GEOS library doesn't support 4d data natively.
254
- * Added a BoundingBox tool to the Cartesian module.
255
- * Fleshed out a few more methods of SimpleCartesian and SimpleSpherical.
256
- * The simple Cartesian point implementation included a bit more leakage from the Geography implementations (pole equivalence, lat/lon methods). Fixed.
257
- * Under certain circumstances, collections and polygons using GEOS could lose their Z or M coordinates. Fixed.
258
- * There were some cases when implementations based on ImplHelpers were pulling in the wrong methods. Fixed.
259
- * Taking the envelope of an empty GEOS collection yielded an illegal object that could cause a crash. Fixed. It now yields an empty collection.
260
- * Taking the boundary of an empty GEOS collection yielded nil. Fixed. It now yields an empty collection.
261
-
262
- === 0.1.18 / 2010-11-22
263
-
264
- * API CHANGE: GeoJSON defaults to no JSON parser rather than to the JSON library. GeoJSON also fails better when attempting to use a JSON parser that isn't installed.
265
- * Added a decorator tool for FactoryGenerator
266
- * Added an analysis module for Cartesian geometries, and implemented an algorithm for determining whether a ring is clockwise or counterclockwise. (We needed this to interpret shapefiles.)
267
- * First pass implementation of shapefile reading. It passes a basic test suite I borrowed from shapelib, but I haven't yet done an exhaustive test on every case.
268
- * The simple Cartesian implementation mistakenly clamped x and y to lat/lon limits. Fixed.
269
-
270
- === 0.1.17 / 2010-11-20
271
-
272
- * Implemented ActiveRecord adapters that cover MySQL Spatial for the mysql and mysql2 gems. SpatiaLite and PostGIS adapters are coming later.
273
- * Added and documented FactoryGenerator.
274
- * API CHANGE: WKRep parsers now take FactoryGenerator rather than the ad-hoc factory_from_srid.
275
- * API CHANGE: Factory#override_cast now takes its optional flags in a hash so it can be extended more cleanly in the future.
276
-
277
- === 0.1.16 / 2010-11-18
278
-
279
- * Test coverage for WKB generator and parser; fixed a few bugs.
280
- * Eliminated the hard dependency on the JSON gem, and allow configuration of GeoJSON with an alternate JSON parser such as YAJL or ActiveSupport.
281
- * API CHANGE: geo factory is now a hash option in GeoJSON, and is now optional.
282
- * GeoJSON now handles Z and M coordinates, according to the capabilities of the geo factory.
283
- * GeoJSON feature objects can now handle null geometry and null properties, per the spec.
284
- * Factory::cast now optionally lets you pass the parameters as a hash.
285
-
286
- === 0.1.15 / 2010-11-08
287
-
288
- * Cleanup, fixes, documentation, and partial test coverage in the WKT/WKB implementations.
289
- * Implemented autoload for the various modules.
290
- * A few minor fixes.
291
-
292
- === 0.1.14 / 2010-11-04
293
-
294
- * Introduced capability checking API.
295
- * Standardized API and semantics for handling of points with Z and/or M coordinates.
296
- * Fixed several problems with Z coordinates in GEOS.
297
- * Fixed exceptions and wrong values returned from GEOS LineString#start_point and LineString#end_point.
298
- * Fixed crash in GEOS LineString#point_n when the index was out of bounds.
299
- * Fixed GEOS line string closed test.
300
- * Implemented support for Z and M coordinates in GEOS, SimpleCartesian, SimpleMercator, and SimpleSpherical. GEOS and SimpleMercator support Z or M but not both at once, because the underlying GEOS library supports only 3 dimensions. SimpleCartesian and SimpleSpherical can support both at once.
301
- * Implemented parsers and generators for WKT/WKB and EWKT/EWKB in Ruby, providing full support for all generally used cases including 3 and 4 dimensional data and embedded SRIDs. This implementation is used by default by all feature implementations except GEOS, which continues to use its own internal WKT/WKB implementation unless the Ruby implementation is invoked explicitly.
302
-
303
- === 0.1.13 / 2010-10-26
304
-
305
- * Reworked the way casting is done. Casting has two dimensions: factory casting and type casting, either or both of which can be done at once. Implemented a standard casting algorithm to handle these cases, and an override mechanism for factories that want to do some of their own casting. Removed Factory#cast and Geometry#cast, and implemented a global Features::cast entry point instead.
306
- * All factory and relational methods now perform auto-casting on inputs.
307
- * Removed the "auto-flattening" behavior of Factory#multi_point, Factory#multi_line_string, and Factory#multi_polygon because it seemed overkill for factory methods. These methods now just attempt to auto-cast the immediate objects.
308
- * Filled out more test cases for SimpleSpherical.
309
- * Provided SimpleCartesian as a fallback implementation in case Geos is not available. SimpleCartesian is like SimpleSpherical in that some operations are not provided, but it is pure ruby and doesn't depend on external libraries.
310
- * Improved feature type checking facilities.
311
- * Documentation updates.
312
-
313
- === 0.1.12 / 2010-10-23
314
-
315
- * API CHANGE: Factory#coerce renamed to Factory#cast. I think this should be the final name for this function.
316
- * Some new tests and a lot of fixes in SimpleMercator and SimpleSpherical.
317
- * Implemented a few more pieces of SimpleSpherical. Notably, LineString#is_simple? (which should now allow LinearRing to work).
318
- * Classes that included Features::Geometry had their === operator erroneously overridden. Fixed.
319
- * A few more documentation updates.
320
-
321
- === 0.1.11 / 2010-10-21
322
-
323
- * API CHANGE: Factory#convert renamed to Factory#coerce.
324
- * Some implementations that inherit from RGeo::Features::Geometry (e.g. the Geography implementations) raised Unimplemented from operator implementations because they had aliased the wrong methods. Fixed.
325
- * Geos coercer didn't properly coerce "contained" elements in a compound geometry. Fixed.
326
- * The SimpleMercator and SimpleSpherical factories failed to properly check and coerce inputs into the typed collection methods. Fixed.
327
- * The options for the SimpleMercator factory were not documented and didn't work. Fixed.
328
- * A bunch of additional test cases and minor fixes for SimpleMercator and SimpleSpherical.
329
-
330
- === 0.1.10 / 2010-10-19
331
-
332
- Initial public release. This release is considered pre-alpha quality and is being released for experimentation and feedback. We are using it in production in a limited capacity at GeoPage, but we do not yet recommend general production deployment because there are a number of known bugs and incomplete areas, and many features and APIs are still in flux.
333
-
334
- Status:
335
-
336
- * GEOS-based Cartesian implementation is tested and should be fairly stable.
337
- * GeoJSON parsers and generators are tested and should be fairly stable.
338
- * Parts of SimpleMercator implementation are fairly stable, but test coverage of more advanced features is still lacking.
339
- * SimpleSpherical implementation is under construction and not yet available.
340
- * Rails (ActiveRecord or ActiveModel) integration is pending.
341
- * Several other integration features, including possible SimpleGeo integration, are pending.
342
-
343
- Changes since 0.1.9:
344
-
345
- * Eliminated a few (harmless) compiler warnings when compiling the GEOS bridge under Ruby 1.9.2 on Snow Leopard.
346
- * Modified file headers, copyright notices, and README files for public release.
347
- * Changed name from "gp_rgeo" to "rgeo" for public release.
348
-
349
- === 0.1.9
350
-
351
- This and earlier versions were tested internally at GeoPage, Inc. but not publicly released.
@@ -1,184 +0,0 @@
1
- == RGeo
2
-
3
- RGeo is a geospatial data library for Ruby.
4
-
5
- === Summary
6
-
7
- RGeo is a key component for writing location-aware applications in the
8
- Ruby programming language. At its core is an implementation of the
9
- industry standard OGC Simple Features Specification, which provides data
10
- representations of geometric objects such as points, lines, and polygons,
11
- along with a set of geometric analysis operations. This makes it ideal
12
- for modeling geolocation data. It also supports a suite of optional add-on
13
- modules that provide various geolocation-related services.
14
-
15
- Use the core *rgeo* gem to:
16
-
17
- * Represent spatial and geolocation data objects such as points, lines,
18
- and polygons in your Ruby application.
19
- * Perform standard spatial analysis operations such as finding
20
- intersections, creating buffers, and computing lengths and areas.
21
- * Correctly handle spherical geometry, and compute geographic projections
22
- for map display and data analysis.
23
- * Read and write location data in the WKT and WKB representations used by
24
- spatial databases.
25
-
26
- Several optional modules are currently available:
27
-
28
- * Generate and interpret GeoJSON data for communication with common
29
- location-based web services using the <b>rgeo-geojson</b> gem.
30
- * Read GIS datasets from ESRI shapefiles using the <b>rgeo-shapefile</b>
31
- gem.
32
- * Extend ActiveRecord to handle spatial data in MySQL Spatial, SpatiaLite,
33
- and PostGIS using RGeo's spatial ActiveRecord adapters. These are
34
- available via the gems:
35
- * <b>activerecord-mysql2spatial-adapter</b>
36
- * <b>activerecord-spatialite-adapter</b>
37
- * <b>activerecord-postgis-adapter</b>
38
- * and more to come...
39
-
40
- Need help? Join the rgeo-users google group at:
41
- http://groups.google.com/group/rgeo-users
42
-
43
- === Dependencies
44
-
45
- RGeo is known to work with the following Ruby implementations:
46
-
47
- * Standard "MRI" Ruby 1.8.7 or later. (1.9.2 or later preferred.)
48
- * Rubinius 1.1 or later.
49
- * Partial support for JRuby 1.6.3 or later. The FFI implementation of
50
- GEOS is available (ffi-geos gem required) but CAPI is not.
51
- Proj4 support is expected in the future.
52
-
53
- Some features also require the following:
54
-
55
- * GEOS 3.2 or later is highly recommended. (3.3.3 or later preferred.)
56
- Some functions will not be available without it.
57
- This C/C++ library may be available via your operating system's package
58
- manager, or you can download it from http://trac.osgeo.org/geos
59
- * Proj 4.7 or later is also recommended. This library is needed if you
60
- want to translate coordinates between geographic projections. It also
61
- may be available via your operating system's package manager, or from
62
- http://trac.osgeo.org/proj
63
- * On some platforms, you should install the ffi-geos gem (version 0.0.6
64
- or later recommended.) JRuby requires this gem to link properly with
65
- Geos, and Windows builds probably do as well.
66
-
67
- Note: The build system assumes a unix-like environment. Windows builds
68
- may be possible, but not likely "out of the box". I have heard that
69
- some Windows users have had success getting the ffi-geos implementation
70
- working, after suitably installing the Geos library. However, since I'm
71
- not a Windows user myself, I can't provide any direct support for this
72
- configuration.
73
-
74
- === Installation
75
-
76
- Install RGeo as a gem:
77
-
78
- gem install rgeo
79
-
80
- Note: By default, the gem installation looks for the GEOS library in the
81
- following locations: <tt>/usr/local</tt>, <tt>/usr/local/geos</tt>,
82
- <tt>/opt/local</tt>, <tt>/opt/geos</tt>, <tt>/opt</tt>, <tt>/usr</tt>,
83
- and <tt>/Library/Frameworks/GEOS.framework/unix</tt>. In other words,
84
- MacPorts, Homebrew, the Kyngchaos port, and building from source to
85
- /usr/local are supported out of the box.
86
-
87
- If GEOS has been installed in a different location, you must provide its
88
- installation prefix directory using the "--with-geos-dir" option. This
89
- option must be preceded by "<tt>--</tt>" to separate it, as a build
90
- switch, from the switches interpreted by the gem command. For example:
91
-
92
- gem install rgeo -- --with-geos-dir=/path/to/my/geos/installation
93
-
94
- Similarly, the gem installation looks for the Proj4 library in the
95
- following locations by default: <tt>/usr/local</tt>,
96
- <tt>/usr/local/proj</tt>, <tt>/usr/local/proj4</tt>, <tt>/opt/local</tt>,
97
- <tt>/opt/proj</tt>, <tt>/opt/proj4</tt>, <tt>/opt</tt>, <tt>/usr</tt>,
98
- and <tt>/Library/Frameworks/PROJ.framework/unix</tt>.
99
-
100
- If Proj4 is installed in a different location, you must provide its
101
- installation prefix directory using the "--with-proj-dir" option.
102
-
103
- === To-do list
104
-
105
- The RGeo suite of tools is evolving rapidly. The current to-do list for
106
- the core library includes:
107
-
108
- * Better error handling and reporting.
109
- * JRuby support for Proj4.
110
- * GDAL integration including coordinate system interpretation.
111
- * Ellipsoidal geography implementation, possibly utilizing geographiclib.
112
- * Windows build support.
113
-
114
- Each of the current add-on modules also has its own feature roadmap, and
115
- we are planning on introducing more add-on modules, including:
116
-
117
- * Raster support via GDAL.
118
- * GeoRSS and KML format support.
119
- * Custom spatial indexes.
120
- * Possible additional ActiveRecord adapters (esp. JDBC-based adapters).
121
- * Integration with third-party APIs.
122
-
123
- === Development and support
124
-
125
- Documentation is available at http://dazuma.github.com/rgeo/rdoc
126
-
127
- Source code is hosted on Github at http://github.com/dazuma/rgeo
128
-
129
- Contributions are welcome. Fork the project on Github.
130
-
131
- Build status: {<img src="https://secure.travis-ci.org/dazuma/rgeo.png" />}[http://travis-ci.org/dazuma/rgeo]
132
-
133
- Report bugs on Github issues at http://github.org/dazuma/rgeo/issues
134
-
135
- Support available on the rgeo-users google group at http://groups.google.com/group/rgeo-users
136
-
137
- Contact the author at dazuma at gmail dot com.
138
-
139
- === Acknowledgments
140
-
141
- RGeo is written by Daniel Azuma (http://www.daniel-azuma.com).
142
-
143
- Development is supported by Pirq (http://www.pirq.com).
144
-
145
- Continuous integration service provided by Travis-CI (http://travis-ci.org).
146
-
147
- RGeo calls the GEOS library to handle most Cartesian geometric
148
- calculations, and the Proj4 library to handle projections and coordinate
149
- transformations. These libraries are maintained by the Open Source
150
- Geospatial Foundation; more information is available on OSGeo's web site
151
- (http://www.osgeo.org).
152
-
153
- JRuby support is made possible by the ffi-geos (and upcoming ffi-proj4)
154
- gems, by J Smith (http://github.com/dark-panda).
155
-
156
- === License
157
-
158
- Copyright 2010-2012 Daniel Azuma
159
-
160
- All rights reserved.
161
-
162
- Redistribution and use in source and binary forms, with or without
163
- modification, are permitted provided that the following conditions are met:
164
-
165
- * Redistributions of source code must retain the above copyright notice,
166
- this list of conditions and the following disclaimer.
167
- * Redistributions in binary form must reproduce the above copyright notice,
168
- this list of conditions and the following disclaimer in the documentation
169
- and/or other materials provided with the distribution.
170
- * Neither the name of the copyright holder, nor the names of any other
171
- contributors to this software, may be used to endorse or promote products
172
- derived from this software without specific prior written permission.
173
-
174
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
175
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
176
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
177
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
178
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
179
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
180
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
181
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
182
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
183
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
184
- POSSIBILITY OF SUCH DAMAGE.