changeset 1911:a80d33a3bcca

Added a Facet attribute for WMSLayerFacets that determines if a facet (WMS layer) is queryable via WMS GetFeatureInfo request. flys-artifacts/trunk@3271 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 16 Nov 2011 15:28:29 +0000
parents 61baa34af1d4
children ae8da3c61f9b
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WMSDBLayerFacet.java flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WMSLayerFacet.java
diffstat 3 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Wed Nov 16 14:50:19 2011 +0000
+++ b/flys-artifacts/ChangeLog	Wed Nov 16 15:28:29 2011 +0000
@@ -1,3 +1,13 @@
+2011-11-16  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/model/WMSLayerFacet.java:
+	  Added a method isQueryable() that determines if a layer is queryable via
+	  WMS GetFeatureInfo request. This method returns false as default.
+
+	* src/main/java/de/intevation/flys/artifacts/model/WMSDBLayerFacet.java:
+	  Override isQueryable(). All WMSDBLayerFacets are queryable via WMS
+	  GetFeatureInfo request.
+
 2011-11-16  Felix Wolfsteller <felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/WQKmsInterpolArtifact.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WMSDBLayerFacet.java	Wed Nov 16 14:50:19 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WMSDBLayerFacet.java	Wed Nov 16 15:28:29 2011 +0000
@@ -96,5 +96,11 @@
     public String getLabelItem() {
         return labelItem;
     }
+
+
+    @Override
+    public boolean isQueryable() {
+        return true;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WMSLayerFacet.java	Wed Nov 16 14:50:19 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/WMSLayerFacet.java	Wed Nov 16 15:28:29 2011 +0000
@@ -131,10 +131,17 @@
         ec.addAttr(facet, "extent", extent != null
             ? GeometryUtils.jtsBoundsToOLBounds(extent)
             : "", true);
+        ec.addAttr(facet, "queryable", String.valueOf(isQueryable()), true);
 
         return facet;
     }
 
+
+    public boolean isQueryable() {
+        return false;
+    }
+
+
     @Override
     public Facet deepCopy() {
         WMSLayerFacet copy = new WMSLayerFacet();

http://dive4elements.wald.intevation.org