Skip to content

Commit

Permalink
Changed Polygon definition to be more in line with
Browse files Browse the repository at this point in the history
  • Loading branch information
amcvega committed May 7, 2014
1 parent 342b445 commit 8f0c4c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Data/Geospatial/GeoFeatureCollection.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ import Data.Text ( Text )
-- *-----------*
-- (124, -25) (127, -25)
--
-- >>> let lShapedGeoPoly = GeoPolygon lshapedPolyVertices
-- >>> let lShapedGeoPoly = GeoPolygon [lshapedPolyVertices]
-- >>> let lShapedPoly = Polygon lShapedGeoPoly
-- >>> let emptyPolyJSON = "{\"type\":\"Polygon\",\"coordinates\":[]}"
-- >>> let emptyGeoPoly = GeoPolygon emptyVertices
-- >>> let emptyGeoPoly = GeoPolygon [emptyVertices]
-- >>> let emptyPoly = Polygon emptyGeoPoly
--
-- Multi Polys
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Geospatial/Geometry/GeoPolygon.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import Control.Lens ( makeLenses )
import Control.Monad ( mzero )
import Data.Aeson ( FromJSON(..), ToJSON(..), Value(..), Object )

newtype GeoPolygon = GeoPolygon { _unGeoPolygon :: [GeoPositionWithoutCRS] } deriving (Show, Eq)
newtype GeoPolygon = GeoPolygon { _unGeoPolygon :: [[GeoPositionWithoutCRS]] } deriving (Show, Eq)

makeLenses ''GeoPolygon

Expand Down

0 comments on commit 8f0c4c0

Please sign in to comment.