Skip to content

Commit

Permalink
uncommented the partial instance for now
Browse files Browse the repository at this point in the history
  • Loading branch information
noinia committed Aug 15, 2024
1 parent b7bb550 commit ad13f0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hgeometry/geojson/src/HGeometry/GeoJSON.hs
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ instance HasOuterBoundary GeoPolygon where
outerBoundaryEdgeAt (_,j) = reIndexEdge
$ firstRing <.> outerBoundaryEdgeAt j <. edge'

instance Polygon_ GeoPolygon GeoPositionWithoutCRS' Double where
area pg = case toNonEmptyOf (_Wrapped.from _Seq1Seq.traverse1._RingAsSimplePolygon') pg of
outer :| inners -> area outer - sum (map area inners)
-- instance Polygon_ GeoPolygon GeoPositionWithoutCRS' Double where
-- area pg = case toNonEmptyOf (_Wrapped.from _Seq1Seq.traverse1._RingAsSimplePolygon') pg of
-- outer :| inners -> area outer - sum (map area inners)

-- ccwPredecessorOf (i,j) = withRing i <.> ccwPredecessorOf j <. singular _GeoPositionWithoutCRS
-- ccwSuccessorOf (i,j) = withRing i <.> ccwSuccessorOf j <. singular _GeoPositionWithoutCRS
Expand Down

0 comments on commit ad13f0c

Please sign in to comment.