comparison backend/src/main/java/org/dive4elements/river/importer/sinfo/importitem/InfrastructureKmLineImport.java @ 9659:75bd347147ad

Importer (s/u-info) extensions: infrastructures: detecting, logging, cancelling in case of wrong column titles, detecting, logging and skipping lines with duplicate km+bank
author mschaefer
date Mon, 23 Mar 2020 15:37:37 +0100
parents 50416a0df385
children
comparison
equal deleted inserted replaced
9658:d86c7cb68b41 9659:75bd347147ad
47 47
48 public void setHeight(final double height) { 48 public void setHeight(final double height) {
49 this.height = height; 49 this.height = height;
50 } 50 }
51 51
52 public ImportAttribute getBankAttribute() {
53 return this.bankAttribute;
54 }
55
52 @Override 56 @Override
53 protected InfrastructureValue queryValueItem(final Session session, final Infrastructure parent) { 57 protected InfrastructureValue queryValueItem(final Session session, final Infrastructure parent) {
54 final Query query = session.createQuery("FROM InfrastructureValue WHERE (infrastructure=:parent) AND (attribute=:bank)" 58 final Query query = session.createQuery("FROM InfrastructureValue WHERE (infrastructure=:parent) AND (attribute=:bank)"
55 + " AND (station BETWEEN (:station-0.0001) AND (:station+0.0001))"); 59 + " AND (station BETWEEN (:station-0.0001) AND (:station+0.0001))");
56 query.setParameter("parent", parent); 60 query.setParameter("parent", parent);

http://dive4elements.wald.intevation.org