Method: Charta::KML.point_to_ewkt
- Defined in:
- lib/charta/kml.rb
.point_to_ewkt(kml) ⇒ Object
64 65 66 67 |
# File 'lib/charta/kml.rb', line 64 def point_to_ewkt(kml) return 'POINT EMPTY' if kml.css('coordinates').nil? 'POINT(' + kml.css('coordinates').collect { |coords| coords.content.split ',' }.flatten.join(' ') + ')' end |