Copyright | (c) Azavea 2017 |
---|---|
License | BSD3 |
Maintainer | Colin Woodbury <colingw@gmail.com> |
Safe Haskell | Safe |
Language | Haskell2010 |
- data Node = Node {}
- data Way = Way {
- _nodeRefs :: [Int]
- _winfo :: Maybe Info
- _wtags :: Map ByteString ByteString
- data Relation = Relation {
- _members :: [Member]
- _rinfo :: Maybe Info
- _rtags :: Map ByteString ByteString
- data Info = Info {}
- data Member = Member {}
- data MemType
- memtype :: Int -> MemType
- newtype Blob = Blob {
- bytes :: Either ByteString (Int, ByteString)
- data Block = Block {}
OpenStreetMap Elements
An OpenStreetMap Node element. Represents a single point in 2D space.
An OpenStreetMap Way element. Made up of Node
s, and represents
some line on the earth, or a Polygon if its first and last Nodes are the same.
Way | |
|
An OpenStreetMap Relation element. These are logical groups of Nodes, Ways, and other Relations. They can represent large multipolygons, or more abstract non-polygonal objects like bus route networks.
Relation | |
|
Non-geographic Element
metadata. The OSM database is a wild place, so
many of these fields may be missing for older Elements.
Equivalent to the member tag, found in OSM Relation
s.
Is a Member
entry referencing a Node, a Way, or a Relation?
memtype :: Int -> MemType Source #
A bridge between the Int-based enum value for MemType
is protobuf and
a more useful Haskell type.
Helper Types
Bytes parsed out of an OSMData
section. Either non-compressed (Left) or
compressed (Right) with its post-decompression size.
Blob | |
|