Safe Haskell | None |
---|
Support for parsing and manipulating GeoJSON 1.0 <http://geojson.org/geojson-spec.html>.
- data FeatureCollection = FeatureCollection {}
- data Feature = Feature {
- boundingBox :: Maybe Value
- geometry :: Geometry
- properties :: Value
- identifier :: Maybe Value
- data Geometry
- data PointGeometry = PointGeometry {
- coordinates :: [Scientific]
- data MultiPointGeometry = MultiPointGeometry {
- points :: [PointGeometry]
- data LineStringGeometry = LineStringGeometry {
- lineString :: [PointGeometry]
- data MultiLineStringGeometry = MultiLineStringGeometry {}
- data PolygonGeometry = PolygonGeometry {
- exterior :: [PointGeometry]
- holes :: [[PointGeometry]]
- data MultiPolygonGeometry = MultiPolygonGeometry {
- polygons :: [PolygonGeometry]
- readGeoJSON :: FilePath -> IO (Maybe FeatureCollection)
Types
data FeatureCollection Source
A GeoJSON feature collection object <http://geojson.org/geojson-spec.html#feature-collection-objects>.
A GeoJSON feature object <http://geojson.org/geojson-spec.html#feature-objects>.
Feature | |
|
A GeoJSON geometry object <http://geojson.org/geojson-spec.html#geometry-objects>.
Point PointGeometry | A GeoJSON |
MultiPoint MultiPointGeometry | A GeoJSON |
LineString LineStringGeometry | A GeoJSON |
MultiLineString MultiLineStringGeometry | A GeoJSON |
Polygon PolygonGeometry | A GeoJSON |
MultiPolygon MultiPolygonGeometry | A GeoJSON |
GeometryCollection [Geometry] | A GeoJSON |
data PointGeometry Source
GeoJSON Point
geometry <http://geojson.org/geojson-spec.html#point>.
data MultiPointGeometry Source
GeoJSON MultiPoint
geometry <http://geojson.org/geojson-spec.html#multipoint>.
data LineStringGeometry Source
GeoJSON LineString
geometry <http://geojson.org/geojson-spec.html#linestring>.
data MultiLineStringGeometry Source
GeoJSON MultiLineString
geometry <http://geojson.org/geojson-spec.html#multilinestring>.
data PolygonGeometry Source
GeoJSON Polygon
geometry <http://geojson.org/geojson-spec.html#polygon>.
PolygonGeometry | |
|
data MultiPolygonGeometry Source
GeoJSON MultiPolygon
geometry <http://geojson.org/geojson-spec.html#multipolygon>.
Functions
:: FilePath | The path to the file to be read. |
-> IO (Maybe FeatureCollection) | An action for reading and parsing the file as a feature collection. |
Read and parse a GeoJSON file.