Mercurial > dive4elements > gnv-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
670:b89b31293772 | 671:fbbf2ffde11f |
---|---|
1 <% | |
2 String geometry = "POINT (6.3333 56.5)"; | |
3 String geometrytype = request.getParameter("gt"); | |
4 if(geometrytype != null){ | |
5 if (geometrytype.equals("POINT")){ | |
6 geometry = "POINT (6.3333 56.5)"; | |
7 }else if (geometrytype.equals("LINESTRING")){ | |
8 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)"; | |
9 }else if (geometrytype.equals("POLYGON")){ | |
10 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))"; | |
11 } | |
12 } | |
13 %> | |
14 | |
1 <div id="basefilter" style="left:310px;position:absolute;width:350px"> | 15 <div id="basefilter" style="left:310px;position:absolute;width:350px"> |
2 <form action="<%=response.encodeURL("extcall.do")%>" method="post"> | 16 <form action="<%=response.encodeURL("extcall.do")%>" method="post"> |
3 <fieldset> | 17 <fieldset> |
4 <legend>Kartenviewer Request</legend> | 18 <legend>Kartenviewer Request</legend> |
5 <textarea id="mapviewer" class="mapviewer" name="document" rows="25" cols="80"> | 19 <textarea id="mapviewer" class="mapviewer" name="document" rows="25" cols="80"> |
34 <SST/> | 48 <SST/> |
35 </mapservice> | 49 </mapservice> |
36 <mapservice id='BSH_IMS_Prediction_Model_Salinity' type='arcims' url='http://foo.bar.de'> | 50 <mapservice id='BSH_IMS_Prediction_Model_Salinity' type='arcims' url='http://foo.bar.de'> |
37 <Modeldata /> | 51 <Modeldata /> |
38 </mapservice> | 52 </mapservice> |
53 <mapservice id='BSH_IMS_CONTIS_Resources' type='arcims' url='http://foo.bar.de'> | |
54 <Contis /> | |
55 </mapservice> | |
39 </mapservices> | 56 </mapservices> |
40 <location> | 57 <location> |
41 <srs>EPSG:4324</srs> | 58 <srs>EPSG:4324</srs> |
42 <data>POINT(8.6 56.0)</data> | 59 <data><%=geometry%></data> |
43 </location> | 60 </location> |
44 </gnviewer> | 61 </gnviewer> |
45 </textarea> | 62 </textarea> |
46 <input type="submit" name="btClick" value="Ausführen" /> | 63 <input type="submit" name="btClick" value="Ausführen" /> |
47 </fieldset> | 64 </fieldset> |