graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.SQL.GeoJSON

Documentation

data Position Source #

Constructors

Position !Double !Double !(Maybe Double) 

Instances

Instances details
Eq Position Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Show Position Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

FromJSON Position Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

parseJSON :: Value -> Parser Position

parseJSONList :: Value -> Parser [Position]

ToJSON Position Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

toJSON :: Position -> Value

toEncoding :: Position -> Encoding

toJSONList :: [Position] -> Value

toEncodingList :: [Position] -> Encoding

withParsedArray :: FromJSON a => String -> (Vector a -> Parser b) -> Value -> Parser b Source #

newtype Point Source #

Constructors

Point 

Fields

Instances

Instances details
Eq Point Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

(==) :: Point -> Point -> Bool #

(/=) :: Point -> Point -> Bool #

Show Point Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

showsPrec :: Int -> Point -> ShowS #

show :: Point -> String #

showList :: [Point] -> ShowS #

FromJSON Point Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

parseJSON :: Value -> Parser Point

parseJSONList :: Value -> Parser [Point]

ToJSON Point Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

toJSON :: Point -> Value

toEncoding :: Point -> Encoding

toJSONList :: [Point] -> Value

toEncodingList :: [Point] -> Encoding

ToWKT Point Source # 
Instance details

Defined in Hasura.SQL.WKT

newtype MultiPoint Source #

Constructors

MultiPoint 

Fields

Instances

Instances details
Eq MultiPoint Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Show MultiPoint Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

FromJSON MultiPoint Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

parseJSON :: Value -> Parser MultiPoint

parseJSONList :: Value -> Parser [MultiPoint]

ToJSON MultiPoint Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

toJSON :: MultiPoint -> Value

toEncoding :: MultiPoint -> Encoding

toJSONList :: [MultiPoint] -> Value

toEncodingList :: [MultiPoint] -> Encoding

ToWKT MultiPoint Source # 
Instance details

Defined in Hasura.SQL.WKT

data LineString Source #

Constructors

LineString 

Instances

Instances details
Eq LineString Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Show LineString Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

FromJSON LineString Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

parseJSON :: Value -> Parser LineString

parseJSONList :: Value -> Parser [LineString]

ToJSON LineString Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

toJSON :: LineString -> Value

toEncoding :: LineString -> Encoding

toJSONList :: [LineString] -> Value

toEncodingList :: [LineString] -> Encoding

ToWKT LineString Source # 
Instance details

Defined in Hasura.SQL.WKT

newtype MultiLineString Source #

Constructors

MultiLineString 

Instances

Instances details
Eq MultiLineString Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Show MultiLineString Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

FromJSON MultiLineString Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

parseJSON :: Value -> Parser MultiLineString

parseJSONList :: Value -> Parser [MultiLineString]

ToJSON MultiLineString Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

toJSON :: MultiLineString -> Value

toEncoding :: MultiLineString -> Encoding

toJSONList :: [MultiLineString] -> Value

toEncodingList :: [MultiLineString] -> Encoding

ToWKT MultiLineString Source # 
Instance details

Defined in Hasura.SQL.WKT

data LinearRing Source #

Constructors

LinearRing 

Instances

Instances details
Eq LinearRing Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Show LinearRing Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

FromJSON LinearRing Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

parseJSON :: Value -> Parser LinearRing

parseJSONList :: Value -> Parser [LinearRing]

ToJSON LinearRing Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

toJSON :: LinearRing -> Value

toEncoding :: LinearRing -> Encoding

toJSONList :: [LinearRing] -> Value

toEncodingList :: [LinearRing] -> Encoding

newtype Polygon Source #

Constructors

Polygon 

Fields

Instances

Instances details
Eq Polygon Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

(==) :: Polygon -> Polygon -> Bool #

(/=) :: Polygon -> Polygon -> Bool #

Show Polygon Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

FromJSON Polygon Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

parseJSON :: Value -> Parser Polygon

parseJSONList :: Value -> Parser [Polygon]

ToJSON Polygon Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

toJSON :: Polygon -> Value

toEncoding :: Polygon -> Encoding

toJSONList :: [Polygon] -> Value

toEncodingList :: [Polygon] -> Encoding

ToWKT Polygon Source # 
Instance details

Defined in Hasura.SQL.WKT

newtype MultiPolygon Source #

Constructors

MultiPolygon 

Fields

Instances

Instances details
Eq MultiPolygon Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Show MultiPolygon Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

FromJSON MultiPolygon Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

parseJSON :: Value -> Parser MultiPolygon

parseJSONList :: Value -> Parser [MultiPolygon]

ToJSON MultiPolygon Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

toJSON :: MultiPolygon -> Value

toEncoding :: MultiPolygon -> Encoding

toJSONList :: [MultiPolygon] -> Value

toEncodingList :: [MultiPolygon] -> Encoding

ToWKT MultiPolygon Source # 
Instance details

Defined in Hasura.SQL.WKT

data CRSNameProps Source #

Constructors

CRSNameProps 

Fields

data CRSLinkProps Source #

Constructors

CRSLinkProps 

Fields

data GeometryWithCRS Source #

Constructors

GeometryWithCRS 

Fields

Instances

Instances details
Eq GeometryWithCRS Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Show GeometryWithCRS Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

FromJSON GeometryWithCRS Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

parseJSON :: Value -> Parser GeometryWithCRS

parseJSONList :: Value -> Parser [GeometryWithCRS]

ToJSON GeometryWithCRS Source # 
Instance details

Defined in Hasura.SQL.GeoJSON

Methods

toJSON :: GeometryWithCRS -> Value

toEncoding :: GeometryWithCRS -> Encoding

toJSONList :: [GeometryWithCRS] -> Value

toEncodingList :: [GeometryWithCRS] -> Encoding

ToWKT GeometryWithCRS Source # 
Instance details

Defined in Hasura.SQL.WKT

encToCoords :: ToJSON a => Text -> a -> Maybe CRS -> Value Source #