geojson v1.0.1 Release Notes
-
- Corrected an issue with the
Polygon
(here)- Introduced the
LinearRing
datatype to handle the LinearRings described in the spec.- Valid JSON for a LinearRing contains at least 4 points (this is checked, parsing fails if the list is too short) and the last element should match the first, but this isnt checked due to performance issues with the current implementation (though its a resolvable issue)).
- A
LinearRing
can be converted to a List withfromLinearRing
or you can just fold/traverse over it. - Creating a
LinearRing
can be done with one of these:-
makeLinearRing :: a -> a -> a -> [a] -> LinearRing a
-
fromList
andfromListWithEqCheck
, which will return aValidate
result (see the type sigs) and Data.Validation
-
- Introduced the
- Corrected an issue with the