protocol
gpx_protocol
GPX 1.1 parser, generator, and validator protocol.
logtalk_load(gpx(loader))staticPublic predicates
parse/2
Parses a GPX 1.1 document from the given source (file(Path), stream(Stream), codes(List), chars(List), or atom(Atom)) into a native GPX term.
staticparse(Source,GPX)parse(++compound,--compound) - one_or_errorSource is not a ground term:instantiation_errorSource is a ground term but not a valid source:domain_error(gpx_source,Source)domain_error(gpx,Source)generate/2
Generates a GPX 1.1 document to the given sink (file(Path), stream(Stream), codes(List), chars(List), or atom(Atom)) from a native GPX term.
staticgenerate(Sink,GPX)generate(+compound,++compound) - one_or_errorSink is a variable:instantiation_errorSink is neither a variable nor a valid sink:domain_error(gpx_sink,Sink)GPX is not ground:instantiation_errorGPX is ground but not a valid native GPX term:domain_error(gpx,GPX)validate/1
True iff the argument is a valid native GPX 1.1 term.
staticvalidate(GPX)validate(@term) - zero_or_one_or_errorGPX is a variable:instantiation_errorvalidate/2
Validates a native GPX 1.1 term, returning all detected errors as reason terms whose final argument is the failing path. List indexes in paths are zero-based.
staticvalidate(GPX,Errors)validate(@term,-list(compound)) - one_or_errorGPX is a variable:instantiation_error
invalid_gpx_term(Path): The term is not a supported native GPX term.
invalid_creator(Path): The required creator is not an atom.
invalid_properties(Path): A properties argument is not a list.
invalid_list(Path): A repeated GPX value is not represented by a list.
invalid_value(Value, Path): A value does not satisfy the required GPX type or range.
invalid_date_time(Value, Path): A value is not an atom in the XML Schema 1.0
dateTimelexical space.invalid_year(Value, Path): A value is not an atom in the XML Schema 1.0
gYearlexical space.invalid_bounds(Path): The minimum latitude is greater than the maximum latitude.
invalid_extensions(Path): The extension nodes are not valid non-GPX namespaced XML elements.
duplicate_property(Name, Path): A property occurs more than once in the enclosing GPX term.
unknown_property(Property, Path): The property is not supported by the enclosing GPX term.
xml_to_gpx/2
Converts an XML parser document term into a native GPX 1.1 term.
staticxml_to_gpx(XML,GPX)xml_to_gpx(+compound,-compound) - one_or_errorXML is not a ground term:instantiation_errorXML is a ground term but not a valid GPX 1.1 XML document term:domain_error(gpx,XML)gpx_to_xml/2
Converts a native GPX 1.1 term into an XML parser document term.
staticgpx_to_xml(GPX,XML)gpx_to_xml(+compound,-compound) - one_or_errorGPX is not a ground term:instantiation_errorGPX is a ground term but not a valid native GPX term:domain_error(gpx,GPX)Protected predicates
(none)
Private predicates
(none)
Operators
(none)