diff gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java @ 745:d194939ecbaf

Improvement: Values of Type Geometry which are Points will be prepared as Regions for DB-Query. gnv-artifacts/trunk@785 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 16 Mar 2010 12:53:37 +0000
parents 0563389138bb
children 93489a0c1328
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Tue Mar 16 10:29:16 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Tue Mar 16 12:53:37 2010 +0000
@@ -468,7 +468,7 @@
                 } else if (type.equalsIgnoreCase("date")) {
                     requestValue = this
                             .prepareInputData4DateDBQuery(requestValue);
-                } else if (type.equalsIgnoreCase("coordinate")){
+                } else if (type.equalsIgnoreCase("coordinate") || (type.equalsIgnoreCase("geometry") && requestValue.toLowerCase().startsWith("point"))){
                     requestValue = this
                     .prepareInputData4RegionDBQuery(requestValue);
                 }

http://dive4elements.wald.intevation.org