changeset 1211:f5bedfc7bcc6

Handle unknown and not yet implemented Koordinatenart.
author Tom Gottfried <tom@intevation.de>
date Thu, 08 Dec 2016 11:09:02 +0100
parents b22ffbf88a43
children 6f206d8eab7e
files src/main/java/de/intevation/lada/factory/OrtFactory.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)