[Lada-commits] [PATCH] Handle unknown and not yet implemented Koordinatenart

Wald Commits scm-commit at wald.intevation.org
Thu Dec 8 11:09:08 CET 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1481191742 -3600
# Node ID f5bedfc7bcc662711beb84d03b8d795c41b6681e
# Parent  b22ffbf88a430612e38694c3a002b822b36ee742
Handle unknown and not yet implemented Koordinatenart.

diff -r b22ffbf88a43 -r f5bedfc7bcc6 src/main/java/de/intevation/lada/factory/OrtFactory.java
--- a/src/main/java/de/intevation/lada/factory/OrtFactory.java	Tue Dec 06 14:52:57 2016 +0100
+++ b/src/main/java/de/intevation/lada/factory/OrtFactory.java	Thu Dec 08 11:09:02 2016 +0100
@@ -59,7 +59,12 @@
                         ort.getKoordXExtern().substring(2, 8);
                     yCoord = ort.getKoordYExtern();
                     break;
-            default: break;
+            default: ReportItem err = new ReportItem();
+                err.setCode(612);
+                err.setKey("kdaId");
+                err.setValue(ort.getKdaId().toString());
+                errors.add(err);
+                return;
         }
         try {
             CoordinateReferenceSystem src = CRS.decode(epsg);


More information about the Lada-commits mailing list