Skip to content

Commit

Permalink
bump ring_area
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Apr 30, 2024
1 parent 663986e commit e687d7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
github: geocrystal/geo_bearing
ring_area:
github: geocrystal/ring_area
version: ">= 0.2.1"
geojson:
github: geocrystal/geojson

Expand Down
3 changes: 2 additions & 1 deletion spec/geo/polygon_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ describe Geo::Polygon do

polygon = Geo::Polygon.new(coords)

it { polygon.area.should eq(7748891609977.457) }
it { polygon.area.should be_a(RingArea::Area) }
it { polygon.area.to_meters.should eq(7748891609977.457) }
end

describe "#to_geojson" do
Expand Down

0 comments on commit e687d7a

Please sign in to comment.