# HG changeset patch # User Sascha L. Teichmann # Date 1551127899 -3600 # Node ID 27cc04bbda46a3cc1e7729fd34e94706cc38067b # Parent dbdc50d9e0f8197fb5259ba9531753e076c5d074 Bail out if the EPSG codes of the datasets don't match. Need to implement a transformation slow pass to make this work. diff -r dbdc50d9e0f8 -r 27cc04bbda46 cmd/octreediff/main.go --- 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()