Sha256: 4110b9905265f32ed6f5cee4455b0daa1e786bf7bdae4c281799000961d1a807

Contents?: true

Size: 1.05 KB

Versions: 18

Compression:

Stored size: 1.05 KB

Contents

require 'spec_helper'
require_relative 'shared_examples'

describe Frodo::Properties::Geography::LineString do
  let(:klass) { Frodo::Properties::Geography::LineString }
  let(:property_name) { 'Boundary' }
  let(:srid)  { 4326 }
  let(:coordinates)     { [[100.0, 0.0], [101.0, 1.0]] }
  let(:property_as_text) { "geography'SRID=4326;LineString(100.0 0.0,101.0 1.0)'" }
  let(:property_as_json) { {
    type: 'LineString',
    coordinates: [
      [100.0, 0.0],
      [101.0, 1.0]
    ],
    crs: {
      type: 'name',
      properties: { name: 'EPSG:4326' }
    }
  } }
  let(:property_as_xml) { <<-END }
    <data:Boundary metadata:type="Edm.GeographyLineString">
      <gml:LineString gml:srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
        <gml:pos>100.0 0.0</gml:pos>
        <gml:pos>101.0 1.0</gml:pos>
      </gml:LineString>
    </data:Boundary>
  END
  let(:new_value) { [[0.0, 100.0], [1.0, 101.0]] }
  let(:new_value_as_text) { "geography'SRID=0;LineString(0.0 100.0,1.0 101.0)'" }

  it_behaves_like 'a geographic property', 'Edm.GeographyLineString'
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
frodo-0.12.8 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.12.7 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.12.6 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.12.5 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.12.4 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.12.2 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.12.1 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.12.0 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.11.0 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.10.8 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.10.7 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.10.6 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.10.5 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.10.4 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.10.3 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.10.2 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.10.1 spec/frodo/properties/geography/line_string_spec.rb
frodo-0.10.0 spec/frodo/properties/geography/line_string_spec.rb