class GeoScript::Geom::Point
Attributes
bounds[RW]
Public Class Methods
new(*coords)
click to toggle source
Calls superclass method
# File lib/geoscript/geom/point.rb, line 11 def initialize(*coords) if coords.first.kind_of? JTSPoint p = coords.first else c = Coordinate.new coords[0], coords[1] c.z = coords[2] if coords[2] p = GEOM_FACTORY.create_point c end super p.coordinate_sequence, GEOM_FACTORY end
Public Instance Methods
buffer(dist)
click to toggle source
Calls superclass method
GeoScript::Geom::buffer
# File lib/geoscript/geom/point.rb, line 22 def buffer(dist) Polygon.new super end
to_json()
click to toggle source
# File lib/geoscript/geom/point.rb, line 34 def to_json IO.write_json self end
to_wkb()
click to toggle source
# File lib/geoscript/geom/point.rb, line 30 def to_wkb IO.write_wkb self end
to_wkt()
click to toggle source
# File lib/geoscript/geom/point.rb, line 26 def to_wkt IO.write_wkt self end