Sha256: 0d7c9a11f696c1b3a3296e418cef29b9d242083d146528904fa341b265fe31ad
Contents?: true
Size: 270 Bytes
Versions: 3
Compression:
Stored size: 270 Bytes
Contents
require 'gdal' describe "Gdal" do it "converts WKT to GeoJSON" do valid_wkt = 'POINT (30 10)' valid_json = '{ "type": "Point", "coordinates": [ 30.0, 10.0 ] }' Gdal::Ogr.create_geometry_from_wkt(valid_wkt).export_to_json.should eq(valid_json) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gdal-0.0.4 | spec/gdal_spec.rb |
gdal-0.0.3 | spec/gdal_spec.rb |
gdal-0.0.2 | spec/gdal_spec.rb |