Sha256: 4d503ebec15f2115712e5a391ce01e57d274e5499963c39ef9d7b2ff3680986e

Contents?: true

Size: 279 Bytes

Versions: 7

Compression:

Stored size: 279 Bytes

Contents

require 'gdal-ruby/ogr'

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

7 entries across 7 versions & 2 rubygems

Version Path
gdal3-3.0.1 spec/gdal_spec.rb
gdal3-3.0.0 spec/gdal_spec.rb
gdal-3.0.0 spec/gdal_spec.rb
gdal-2.0.0 spec/gdal_spec.rb
gdal-1.0.0 spec/gdal_spec.rb
gdal-0.0.7 spec/gdal_spec.rb
gdal-0.0.6 spec/gdal_spec.rb