Sha256: f21e3faddea0324e14e65cf08c024574cff34da7002e59781c18ee029994d7f5

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

require 'gdal/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

1 entries across 1 versions & 1 rubygems

Version Path
gdal-0.0.5 spec/gdal_spec.rb