diff gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerOutputState.java @ 729:d23ad22bcfe7

Integrated lookup of the Geometry which was put to the Artifact during the Instantiation gnv-artifacts/trunk@767 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 15 Mar 2010 09:23:56 +0000
parents f6630d0203da
children cae93c709548
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerOutputState.java	Fri Mar 12 11:36:38 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerOutputState.java	Mon Mar 15 09:23:56 2010 +0000
@@ -177,13 +177,28 @@
                                                   where,
                                                   geometryWKT};
                     }else{
-                        // TODO: Look into the presetting for an WKT
+                        //Look into the presetting for an WKT
+                        InputData geometryWKTData = this.preSettings.get("geometry");
+                        if (geometryWKTData != null){
+                            queryValues = new String[]{columns,
+                                                       table,
+                                                       where,
+                                                       geometryWKTData.getValue()};
+                        }else{
+                            queryValues = new String[]{columns,table,where};
+                        }
+                    }
+                }else{
+                    //Look into the presetting for an WKT
+                    InputData geometryWKTData = this.preSettings.get("geometry");
+                    if (geometryWKTData != null){
+                        queryValues = new String[]{columns,
+                                                   table,
+                                                   where,
+                                                   geometryWKTData.getValue()};
+                    }else{
                         queryValues = new String[]{columns,table,where};
                     }
-                }else{
-                    // TODO: Look into the presetting for an WKT
-                    queryValues = new String[]{columns,table,where};
-                    
                 }
             }
             

http://dive4elements.wald.intevation.org