comparison src/main/java/de/intevation/lada/validation/rules/ort/CoordinatesInVE.java @ 1291:d48e1636fb0b

Map warning to existing client field and introduce new code.
author Tom Gottfried <tom@intevation.de>
date Wed, 08 Feb 2017 18:32:09 +0100
parents bbfb7c3b5dd8
children
comparison
equal deleted inserted replaced
1290:14876c62f692 1291:d48e1636fb0b
60 vg.and("gemId", gemId); 60 vg.and("gemId", gemId);
61 List<Verwaltungsgrenze> vgs = repository.filterPlain( 61 List<Verwaltungsgrenze> vgs = repository.filterPlain(
62 vg.getQuery(), "stamm"); 62 vg.getQuery(), "stamm");
63 if (vgs == null || vgs.isEmpty()) { 63 if (vgs == null || vgs.isEmpty()) {
64 Violation violation = new Violation(); 64 Violation violation = new Violation();
65 violation.addWarning("verwaltungsgrenze", 600); 65 violation.addWarning("gemId", 650);
66 return violation; 66 return violation;
67 } 67 }
68 68
69 Point p = ort.getGeom(); 69 Point p = ort.getGeom();
70 if (p == null) { 70 if (p == null) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)