changeset 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 b89b31293772
children e9d54c989110
files gnv/ChangeLog gnv/src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp
diffstat 2 files changed, 27 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gnv/ChangeLog	Wed Mar 17 13:31:38 2010 +0000
+++ b/gnv/ChangeLog	Fri Mar 19 08:41:47 2010 +0000
@@ -1,3 +1,12 @@
+2010-03-19  Tim Englich  <tim.englich@intevation.de>
+
+	* src/main/webapp/WEB-INF/jsp/includes/display_mapviewercall_inc.jsp: 
+	  Integrated a Switch will be load different Geometries into the 
+	  Requestbody of an Mapviewercall.
+	  You cann add gt=POINT , gt=LINESTRING or gt=POLYGON to the URL to switch 
+	  between the different Geometries.
+	  The Values of the Geometries are the same as used in the GUI of the GNV.
+
 2010-03-17  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue208 First steps for exporting artifacts.
--- 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