comparison flys-artifacts/src/main/java/de/intevation/flys/utils/MapfileGenerator.java @ 2669:7a124cb11d8e

Added a PROJECTION section to all db mapserver layers. flys-artifacts/trunk@4355 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 08 May 2012 10:19:43 +0000
parents a78dafdd8590
children 453d2d0c4258
comparison
equal deleted inserted replaced
2668:53f42adf4505 2669:7a124cb11d8e
390 layerinfo.setData(WSPLGEN_RESULT_SHAPE); 390 layerinfo.setData(WSPLGEN_RESULT_SHAPE);
391 layerinfo.setTitle(Resources.getMsg(Resources.getLocale(context.getMeta()), 391 layerinfo.setTitle(Resources.getMsg(Resources.getLocale(context.getMeta()),
392 "floodmap.uesk", 392 "floodmap.uesk",
393 "Floodmap")); 393 "Floodmap"));
394 layerinfo.setStyle(style); 394 layerinfo.setStyle(style);
395 layerinfo.setSrid(wms.getSrid());
395 396
396 String name = MS_LAYER_PREFIX + wms.getName(); 397 String name = MS_LAYER_PREFIX + wms.getName();
397 398
398 Template template = getTemplateByName(WSPLGEN_LAYER_TEMPLATE); 399 Template template = getTemplateByName(WSPLGEN_LAYER_TEMPLATE);
399 if (template == null) { 400 if (template == null) {
456 lineInfo.setDirectory(uuid); 457 lineInfo.setDirectory(uuid);
457 lineInfo.setData(WSPLGEN_LINES_SHAPE); 458 lineInfo.setData(WSPLGEN_LINES_SHAPE);
458 lineInfo.setTitle("I18N_LINE_SHAPE"); 459 lineInfo.setTitle("I18N_LINE_SHAPE");
459 lineInfo.setGroup(group); 460 lineInfo.setGroup(group);
460 lineInfo.setGroupTitle(groupTitle); 461 lineInfo.setGroupTitle(groupTitle);
462 lineInfo.setSrid(wms.getSrid());
461 463
462 String nameLines = MS_LAYER_PREFIX + wms.getName() + "-lines"; 464 String nameLines = MS_LAYER_PREFIX + wms.getName() + "-lines";
463 465
464 Template tpl = getTemplateByName(SHP_LAYER_TEMPLATE); 466 Template tpl = getTemplateByName(SHP_LAYER_TEMPLATE);
465 if (tpl == null) { 467 if (tpl == null) {
501 polygonInfo.setDirectory(uuid); 503 polygonInfo.setDirectory(uuid);
502 polygonInfo.setData(WSPLGEN_POLYGONS_SHAPE); 504 polygonInfo.setData(WSPLGEN_POLYGONS_SHAPE);
503 polygonInfo.setTitle("I18N_POLYGON_SHAPE"); 505 polygonInfo.setTitle("I18N_POLYGON_SHAPE");
504 polygonInfo.setGroup(group); 506 polygonInfo.setGroup(group);
505 polygonInfo.setGroupTitle(groupTitle); 507 polygonInfo.setGroupTitle(groupTitle);
508 polygonInfo.setSrid(wms.getSrid());
506 509
507 String namePolygons = MS_LAYER_PREFIX + wms.getName() + "-polygons"; 510 String namePolygons = MS_LAYER_PREFIX + wms.getName() + "-polygons";
508 511
509 Template tpl = getTemplateByName(SHP_LAYER_TEMPLATE); 512 Template tpl = getTemplateByName(SHP_LAYER_TEMPLATE);
510 if (tpl == null) { 513 if (tpl == null) {
565 info.setDirectory(uuid); 568 info.setDirectory(uuid);
566 info.setData(WSPLGEN_USER_SHAPE); 569 info.setData(WSPLGEN_USER_SHAPE);
567 info.setTitle("I18N_USER_SHAPE"); 570 info.setTitle("I18N_USER_SHAPE");
568 info.setGroup(group); 571 info.setGroup(group);
569 info.setGroupTitle(groupTitle); 572 info.setGroupTitle(groupTitle);
573 info.setSrid(wms.getSrid());
570 574
571 String nameUser = MS_LAYER_PREFIX + wms.getName(); 575 String nameUser = MS_LAYER_PREFIX + wms.getName();
572 576
573 Template tpl = getTemplateByName(SHP_LAYER_TEMPLATE); 577 Template tpl = getTemplateByName(SHP_LAYER_TEMPLATE);
574 if (tpl == null) { 578 if (tpl == null) {
612 layerinfo.setStyle(style); 616 layerinfo.setStyle(style);
613 layerinfo.setExtent(GeometryUtils.jtsBoundsToOLBounds(wms.getExtent())); 617 layerinfo.setExtent(GeometryUtils.jtsBoundsToOLBounds(wms.getExtent()));
614 layerinfo.setConnection(wms.getConnection()); 618 layerinfo.setConnection(wms.getConnection());
615 layerinfo.setConnectionType(wms.getConnectionType()); 619 layerinfo.setConnectionType(wms.getConnectionType());
616 layerinfo.setLabelItem(wms.getLabelItem()); 620 layerinfo.setLabelItem(wms.getLabelItem());
621 layerinfo.setSrid(wms.getSrid());
617 622
618 String name = MS_LAYER_PREFIX + wms.getName(); 623 String name = MS_LAYER_PREFIX + wms.getName();
619 624
620 Template template = getTemplateByName(DB_LAYER_TEMPLATE); 625 Template template = getTemplateByName(DB_LAYER_TEMPLATE);
621 if (template == null) { 626 if (template == null) {

http://dive4elements.wald.intevation.org