[PATCH 2 of 2] debug
Wald Commits
scm-commit at wald.intevation.org
Thu Jan 21 14:07:46 CET 2021
# HG changeset patch
# User dnt_bjoernsen <d.tironi at bjoernsen.de>
# Date 1611234444 -3600
# Thu Jan 21 14:07:24 2021 +0100
# Node ID 0c837405948408da60142559b4f342338d05af53
# Parent 20456a3c92e2d62ac2a172251b465886f92536fa
debug
diff -r 20456a3c92e2 -r 0c8374059484 artifacts/doc/conf/backend-db.xml
--- a/artifacts/doc/conf/backend-db.xml Thu Jan 21 13:22:37 2021 +0100
+++ b/artifacts/doc/conf/backend-db.xml Thu Jan 21 14:07:24 2021 +0100
@@ -5,7 +5,7 @@
<password>d4e</password>
<dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
<driver>org.postgresql.Driver</driver>
- <url>jdbc:postgresql://localhost:63333/d4e2</url>
+ <url>jdbc:postgresql://localhost:5432/d4e</url>
<validation-query>select 1 from rivers</validation-query>
<max-wait>30000</max-wait>
</backend-database>
diff -r 20456a3c92e2 -r 0c8374059484 artifacts/doc/conf/seddb-db.xml
--- a/artifacts/doc/conf/seddb-db.xml Thu Jan 21 13:22:37 2021 +0100
+++ b/artifacts/doc/conf/seddb-db.xml Thu Jan 21 14:07:24 2021 +0100
@@ -5,7 +5,7 @@
<password>seddb</password>
<dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
<driver>org.postgresql.Driver</driver>
- <url>jdbc:postgresql://localhost:63333/seddb2</url>
+ <url>jdbc:postgresql://localhost:5432/seddb</url>
<validation-query>select 1 from gewaesser</validation-query>
<max-wait>30000</max-wait>
<!--
diff -r 20456a3c92e2 -r 0c8374059484 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java Thu Jan 21 13:22:37 2021 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/map/LegendWindow.java Thu Jan 21 14:07:24 2021 +0100
@@ -110,6 +110,9 @@
final String legend = at.getAttr("legend");
// TEST: final Image img = new Image("/images/FLYS_Donau.png"); (funktioniert!),
// ebenso FLYSResources.getTest();
+ String attr = at.getAttr("url");
+ String attr2 = at.getAttr("layers");
+
if (legend != null && !"".equals(legend)) {
final String imgUrl = URL.encode(GWT.getHostPageBaseURL() + "images/wms_legend/" + legend);
@@ -119,9 +122,11 @@
return image;
}
- final String imgUrl = MapUtils.getLegendGraphicUrl(at.getAttr("url"), at.getAttr("layers"));
+
+ final String imgUrl = MapUtils.getLegendGraphicUrl(attr, attr2);
final Image image = new Image(imgUrl);
+ com.smartgwt.client.util.SC.say(imgUrl);
new MyLoadHandler(row, ((Image) image));
// Image image = new Image(imgUrl);
// Widget widget = image.asWidget();
More information about the Dive4Elements-commits
mailing list