lib/postgis_functions/common.rb in nofxx-postgis_adapter-0.3.4 vs lib/postgis_functions/common.rb in nofxx-postgis_adapter-0.3.8
- old
+ new
@@ -683,16 +683,9 @@
#
#
module PointFunctions
#
- # Some nice getters
- #
- def x; @x ||= self[get_column_name].x; end
- def y; @y ||= self[get_column_name].y; end
- def z; @z ||= self[get_column_name].z; end
-
- #
# Returns a float between 0 and 1 representing the location of the closest point
# on LineString to the given Point, as a fraction of total 2d line length.
#
# You can use the returned location to extract a Point (ST_Line_Interpolate_Point)
# or a substring (ST_Line_Substring).