diff gnv/src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp @ 671:fbbf2ffde11f

Integrated a Switch will be load different Geometries into the Requestbody of an Mapviewercall. gnv/trunk@797 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Fri, 19 Mar 2010 08:41:47 +0000
parents 83ff52574604
children 28a0628b11b0
line wrap: on
line diff
--- a/gnv/src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp	Wed Mar 17 13:31:38 2010 +0000
+++ b/gnv/src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp	Fri Mar 19 08:41:47 2010 +0000
@@ -1,3 +1,17 @@
+<%
+String geometry = "POINT (6.3333 56.5)";
+String geometrytype = request.getParameter("gt");
+if(geometrytype != null){
+    if (geometrytype.equals("POINT")){
+        geometry = "POINT (6.3333 56.5)";
+    }else if (geometrytype.equals("LINESTRING")){
+        geometry = "LINESTRING (0.4911 56.2489,10.4464 58.1608,12.2321 56.4127,13.1250 54.8832,15.4018 54.5008,19.6875 56.4127,20.6250 59.0349,28.1250 60.2640)";
+    }else if (geometrytype.equals("POLYGON")){
+        geometry = "POLYGON ((-1.5763 58.3616, 0.7526 53.8428, 4.2686 53.1972, 7.9217 54.1441, 7.6020 56.2959, 11.5747 57.2857, 0.4788 58.4908, 4.2686 58.8996, 0.0219 58.5768, -1.5763 58.3616))";
+    }
+}
+%>
+
 <div id="basefilter" style="left:310px;position:absolute;width:350px">
     <form action="<%=response.encodeURL("extcall.do")%>" method="post">
         <fieldset>
@@ -36,10 +50,13 @@
                             <mapservice id='BSH_IMS_Prediction_Model_Salinity' type='arcims' url='http://foo.bar.de'>
                                 <Modeldata />
                             </mapservice>
+                            <mapservice id='BSH_IMS_CONTIS_Resources' type='arcims' url='http://foo.bar.de'>
+                                <Contis />
+                            </mapservice>
                         </mapservices> 
                         <location>
                             <srs>EPSG:4324</srs>
-                            <data>POINT(8.6 56.0)</data>
+                            <data><%=geometry%></data>
                         </location>
                     </gnviewer>
              </textarea>

http://dive4elements.wald.intevation.org