comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/FloodMapState.java @ 4994:63617e142dfe

Quick-fix for floodmaps. Use the correct projection for DGM. * Added projection for DGM to floodmap.xml. * Use DGM projection to create axis.shp and qps.shp. * Write DGM projection to wsplgen layer mapfile.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 15 Feb 2013 10:56:08 +0100
parents dc0d37715e16
children a9243df307b1 9c529b9de6b5
comparison
equal deleted inserted replaced
4990:eee722bc85da 4994:63617e142dfe
608 } 608 }
609 609
610 610
611 protected void setAxis(FLYSArtifact artifact, File dir, WSPLGENJob job) { 611 protected void setAxis(FLYSArtifact artifact, File dir, WSPLGENJob job) {
612 String river = artifact.getDataAsString("river"); 612 String river = artifact.getDataAsString("river");
613 String srid = FLYSUtils.getRiverSrid(artifact); 613 String srid = FLYSUtils.getRiverDGMSrid(river);
614 String srs = "EPSG:" + srid; 614 String srs = "EPSG:" + srid;
615 615 logger.debug("srs: " + srs);
616 List<RiverAxis> axes = RiverAxis.getRiverAxis(river); 616 List<RiverAxis> axes = RiverAxis.getRiverAxis(river);
617 if (axes == null || axes.isEmpty()) { 617 if (axes == null || axes.isEmpty()) {
618 logger.warn("Could not find river axis for: '" + river + "'"); 618 logger.warn("Could not find river axis for: '" + river + "'");
619 return; 619 return;
620 } 620 }
647 } 647 }
648 648
649 649
650 protected void setPro(FLYSArtifact artifact, File dir, WSPLGENJob job) { 650 protected void setPro(FLYSArtifact artifact, File dir, WSPLGENJob job) {
651 String river = artifact.getDataAsString("river"); 651 String river = artifact.getDataAsString("river");
652 String srid = FLYSUtils.getRiverSrid(artifact); 652 String srid = FLYSUtils.getRiverDGMSrid(river);
653 String srs = "EPSG:" + srid; 653 String srs = "EPSG:" + srid;
654 654
655 List<CrossSectionTrack> cst = 655 List<CrossSectionTrack> cst =
656 CrossSectionTrack.getCrossSectionTrack(river, WSPLGEN_QPS_NAME); 656 CrossSectionTrack.getCrossSectionTrack(river, WSPLGEN_QPS_NAME);
657 657

http://dive4elements.wald.intevation.org