Class: Geos::LineString
- Inherits:
-
Object
- Object
- Geos::LineString
- Defined in:
- lib/geos/yaml/syck.rb,
lib/geos/line_string.rb
Instance Method Summary collapse
- #as_geojson(options = {}) ⇒ Object (also: #to_geojsonable)
- #as_json(options = {}) ⇒ Object (also: #to_jsonable)
Instance Method Details
#as_geojson(options = {}) ⇒ Object Also known as: to_geojsonable
9 10 11 |
# File 'lib/geos/line_string.rb', line 9 def as_geojson( = {}) self.coord_seq.to_geojsonable() end |
#as_json(options = {}) ⇒ Object Also known as: to_jsonable
4 5 6 |
# File 'lib/geos/line_string.rb', line 4 def as_json( = {}) self.coord_seq.as_json() end |