Mercurial > gemma
changeset 2468:27cc04bbda46 octree-diff
Bail out if the EPSG codes of the datasets don't match.
Need to implement a transformation slow pass to make this work.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 25 Feb 2019 21:51:39 +0100 |
parents | dbdc50d9e0f8 |
children | 1312953defab |
files | cmd/octreediff/main.go |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd/octreediff/main.go Mon Feb 25 21:49:07 2019 +0100 +++ b/cmd/octreediff/main.go Mon Feb 25 21:51:39 2019 +0100 @@ -16,6 +16,7 @@ import ( "context" "database/sql" + "errors" "flag" "fmt" "log" @@ -123,6 +124,10 @@ return secondErr } + if first.EPSG != second.EPSG { + return errors.New("EPSG codes mismatch. Needs transformation slow pass.") + } + log.Printf("loading took %v\n", time.Since(start)) setin := time.Now()