The osm
element of a OSM file, which is the root element. http://wiki.openstreetmap.org/wiki/API_v0.6/DTD
- data OSM
- osm :: String -> Maybe String -> Maybe (Either Bound Bounds) -> OSMChildren -> OSM
- readOsmFile :: FilePath -> IO [OSM]
- readOsmFiles :: [FilePath] -> IO [OSM]
- interactOSMIO :: (OSM -> IO OSM) -> FilePath -> FilePath -> IO ()
- interactsOSMIO :: Foldable t => t (OSM -> IO OSM) -> FilePath -> FilePath -> IO ()
- interactOSMIO' :: (OSM -> IO OSM) -> Attributes -> FilePath -> Attributes -> FilePath -> IO ()
- interactsOSMIO' :: Foldable t => t (OSM -> IO OSM) -> Attributes -> FilePath -> Attributes -> FilePath -> IO ()
- interactOSM :: (OSM -> OSM) -> FilePath -> FilePath -> IO ()
- interactsOSM :: Foldable t => t (OSM -> OSM) -> FilePath -> FilePath -> IO ()
- interactOSM' :: (OSM -> OSM) -> Attributes -> FilePath -> Attributes -> FilePath -> IO ()
- interactsOSM' :: Foldable t => t (OSM -> OSM) -> Attributes -> FilePath -> Attributes -> FilePath -> IO ()
Documentation
The osm
element of a OSM file, which is the root element.
:: String | The |
-> Maybe String | The |
-> Maybe (Either Bound Bounds) | The |
-> OSMChildren | The child elements. |
-> OSM |
Constructs a osm with a version, bound or bounds, and node attributes and way or relation elements.
readOsmFile :: FilePath -> IO [OSM]Source
Reads an OSM file into a list of OSM
values removing whitespace.
readOsmFiles :: [FilePath] -> IO [OSM]Source
Reads 0 or more OSM files into a list of OSM
values removing whitespace.
:: (OSM -> IO OSM) | The function to execute on the XML that is read. |
-> FilePath | The OSM file to read. |
-> FilePath | The OSM file to write. |
-> IO () |
Reads a OSM file removing whitespace, executes the given function on the XML, then writes the given file with indentation.
:: Foldable t | |
=> t (OSM -> IO OSM) | The function to execute on the XML that is read. |
-> FilePath | The OSM file to read. |
-> FilePath | The OSM file to write. |
-> IO () |
Reads a OSM file removing whitespace, executes the given functions on the XML, then writes the given file with indentation.
:: (OSM -> IO OSM) | The function to execute on the XML that is read. |
-> Attributes | The options for reading the OSM file. |
-> FilePath | The OSM file to read. |
-> Attributes | The options for writing the OSM file. |
-> FilePath | The OSM file to write. |
-> IO () |
Reads a OSM file, executes the given function on the XML, then writes the given file.
:: Foldable t | |
=> t (OSM -> IO OSM) | The function to execute on the XML that is read. |
-> Attributes | The options for reading the OSM file. |
-> FilePath | The OSM file to read. |
-> Attributes | The options for writing the OSM file. |
-> FilePath | The OSM file to write. |
-> IO () |
Reads a OSM file, executes the given functions on the XML, then writes the given file.
:: (OSM -> OSM) | The function to execute on the XML that is read. |
-> FilePath | The OSM file to read. |
-> FilePath | The OSM file to write. |
-> IO () |
Reads a OSM file removing whitespace, executes the given function on the XML, then writes the given file with indentation.
:: Foldable t | |
=> t (OSM -> OSM) | The function to execute on the XML that is read. |
-> FilePath | The OSM file to read. |
-> FilePath | The OSM file to write. |
-> IO () |
Reads a OSM file removing whitespace, executes the given functions on the XML, then writes the given file with indentation.
:: (OSM -> OSM) | The function to execute on the XML that is read. |
-> Attributes | The options for reading the OSM file. |
-> FilePath | The OSM file to read. |
-> Attributes | The options for writing the OSM file. |
-> FilePath | The OSM file to write. |
-> IO () |
Reads a OSM file, executes the given function on the XML, then writes the given file.
:: Foldable t | |
=> t (OSM -> OSM) | The functions to execute on the XML that is read. |
-> Attributes | The options for reading the OSM file. |
-> FilePath | The OSM file to read. |
-> Attributes | The options for writing the OSM file. |
-> FilePath | The OSM file to write. |
-> IO () |
Reads a OSM file, executes the given functions on the XML, then writes the given file.