Skip to content
Snippets Groups Projects
Verified Commit 778f07d5 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Error if DATX version is not supported

parent 427679fe
No related branches found
No related tags found
No related merge requests found
......@@ -370,6 +370,9 @@ function read_datx(io::IO)
seek(io, max(0, position(io) - length(comment_marker)))
det_id = read(io, Int32)
version = parse(Int, _readstring(io)[2:end])
if !(version supported_versions)
error("DATX version $version is not supported yet. Supported versions are: $(join(supported_versions, ' '))")
end
validity = DateRange(unix2datetime(read(io, Float64)), unix2datetime(read(io, Float64)))
_readstring(io) # says "UTM", ignoring
wgs = _readstring(io)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment