OSM-0.4.1: Parse OpenStreetMap files

Data.Geo.OSM.OSM

Description

The osm element of a OSM file, which is the root element. http://wiki.openstreetmap.org/wiki/API_v0.6/DTD

Synopsis

Documentation

data OSM Source

The osm element of a OSM file, which is the root element.

osmSource

Arguments

:: String

The version attribute.

-> Maybe String

The generator attribute.

-> Maybe (Either Bound Bounds)

The bound or bounds elements.

-> 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.

interactOSMIOSource

Arguments

:: FilePath

The OSM file to read.

-> (OSM -> IO OSM)

The function to execute on the XML that is 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.

interactsOSMIOSource

Arguments

:: FilePath

The OSM file to read.

-> [OSM -> IO OSM]

The function to execute on the XML that is 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.

interactOSMIO'Source

Arguments

:: Attributes

The options for reading the OSM file.

-> FilePath

The OSM file to read.

-> (OSM -> IO OSM)

The function to execute on the XML that is 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.

interactsOSMIO'Source

Arguments

:: Attributes

The options for reading the OSM file.

-> FilePath

The OSM file to read.

-> [OSM -> IO OSM]

The function to execute on the XML that is 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.

interactOSMSource

Arguments

:: FilePath

The OSM file to read.

-> (OSM -> OSM)

The function to execute on the XML that is 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.

interactsOSMSource

Arguments

:: FilePath

The OSM file to read.

-> [OSM -> OSM]

The function to execute on the XML that is 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.

interactOSM'Source

Arguments

:: Attributes

The options for reading the OSM file.

-> FilePath

The OSM file to read.

-> (OSM -> OSM)

The function to execute on the XML that is 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.

interactsOSM'Source

Arguments

:: Attributes

The options for reading the OSM file.

-> FilePath

The OSM file to read.

-> [OSM -> OSM]

The functions to execute on the XML that is 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.