changeset 361:c0357bd00666

Fixed LAF creator. TODO use koordinatenart and external koordinates.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 05 Sep 2013 17:36:28 +0200
parents f3c58d3c4bc7
children b199946e9654
files src/main/java/de/intevation/lada/data/exporter/LAFCreator.java
diffstat 1 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/data/exporter/LAFCreator.java	Thu Sep 05 17:24:10 2013 +0200
+++ b/src/main/java/de/intevation/lada/data/exporter/LAFCreator.java	Thu Sep 05 17:36:28 2013 +0200
@@ -192,12 +192,11 @@
             QueryBuilder<SKoordinatenArt> kaBuilder =
                 new QueryBuilder<SKoordinatenArt>(
                     readonlyRepo.getEntityManager(), SKoordinatenArt.class);
-            kaBuilder.and("kdaId", ort.get(0).getKdaId());
-            Response kaResp = readonlyRepo.filter(kaBuilder.getQuery());
-            List<SKoordinatenArt> kas = (List<SKoordinatenArt>)kaResp.getData();
-            String koord = kas.get(0).getKoordinatenart() + " ";
-            koord += ort.get(0).getKoordXExtern() + " ";
-            koord += ort.get(0).getKoordYExtern();
+            String koord = "";
+            koord += ort.get(0).getLatitude() + " ";
+            koord += ort.get(0).getLongitude() + " ";
+            koord += "UTM (WGS84)";
+            //TODO: use table koordinatenart and koord*extern!
             laf += lafLine("ORT_KOORDINATEN_S", koord);
             laf += lafLine("ORT_GEMEINDESCHLUESSEL", ort.get(0).getGemId());
         }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)