module TheGeomGeoJSON
Constants
- Dirty
- EXAMPLES
- VERSION
Public Class Methods
ewkb_to_geojson(ewkb)
click to toggle source
# File lib/the_geom_geojson.rb, line 10 def ewkb_to_geojson(ewkb) parser = RGeo::WKRep::WKBParser.new nil, support_ewkb: true JSON.dump RGeo::GeoJSON.encode(parser.parse(ewkb)) end